asp.net - access radcombobox within a grid using jquery -


i new jquery have gridview in using edititemtemplate footertemplate itemtemplate , emptydatatemplate insert update of records using radcombobox in grid values want access in client side using jquery

my markup follows

 <edititemtemplate> <telerik:radcombobox tabindex="2" id="rcbdept" runat="server" emptymessage="--select department--" allowcustomtext="true" enablescreenboundarydetection="false" width="100px" enabletextselection="false" filter="contains" onclientload="getcontrolid">  <itemtemplate>                                                                 <asp:checkbox runat="server" id="checkbox1" text='<%# databinder.eval(container.dataitem, "dept_name") %>' />                                                                <asp:hiddenfield id="hdncolumn" runat="server" />                                </itemtemplate>                                                        </telerik:radcombobox>                                                    </edititemtemplate> 

jquery function

function getcontrolid() {  var combo = $find("<%= rcbdept.clientid %>");             var items = combo.get_items();             var text = "";             var values = ""; } 

any highly appriciable, in advance.....

if radcombobox in edititemtemplate or itemtemplate: used trick

your this:

function getcontrolid() {     var rcbdeptid=$("[id$='rcbdept']").attr("id");     var comb0=$find(rcbdeptid);     var items = combo.get_items();     var text = "";     var values = ""; } 

attribute-ends-with-selector


Comments

Popular posts from this blog

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

javascript - addthis share facebook and google+ url -