asp.net - asp label visible false and true in telerik grid depends on combo box selected item -


depends on selected telerik combox item display label name , text box when im writing code in aspx page

<telerik:gridtemplatecolumn datafield="deductioncode"   visible="false" uniquename="deductioncode"  headertext="deductioncode">                                     <itemtemplate>                                         <asp:label runat="server" visible="false" id="lbldeductioncode"   text='<%# eval("deductioncode") %>'></asp:label>                                     </itemtemplate>                                     <edititemtemplate>                                         <telerik:radtextbox id="txtdeductioncode" visible = "false" runat="server" text='<%# bind("deductioncode") %>' maxlength="2"></telerik:radtextbox>                                         <asp:requiredfieldvalidator  controltovalidate="txtdeductioncode" id="rfvtxtdeductioncode" display="dynamic" runat="server" ></asp:requiredfieldvalidator>                                         <asp:regularexpressionvalidator id="revtxtdeductioncode"                                                 controltovalidate="txtdeductioncode"                                                validationexpression="^[a-za-z0-9'`-´\s]{2}$"                                                display="dynamic"                                                errormessage="please enter 2 charecters only"                                                                                                runat="server"                                               setfocusonerror="true" />                                      </edititemtemplate>                                 </telerik:gridtemplatecolumn>                           

when im trying write on page_load lbldeduction= false label name displaying error message..another way trying visible false , true in selectedindexed function on compiling time displaying error lbldeductioncode having null value texbox working fine visible false , true..only problem cant able label name visible false , after selected combox item label name visible true..

i found demo on telerik site can give head start implementation - take @ here.

dick


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -