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 = ""; }
Comments
Post a Comment