Trying to get the radgrid onclientclick to work, this way works but have sinceed changed to put variable into it but since then not working but it follows from telerik web site. I would liek to chane to pass in varable that then pulls things into popup if variable is greater than 0.
This works.
This does not
here is the fucntion with and without the variable.
This works along with one that passes no variable.
This works.
<CommandItemTemplate> <asp:LinkButton ID="lnkAdd" runat="server" Text="ADD ADMIN" OnClientClick="addAdminWin(); return false;"></asp:LinkButton> </CommandItemTemplate>This does not
<telerik:GridTemplateColumn> <ItemTemplate> <asp:LinkButton ID="lnkEdit" runat="server" Text="Edit" OnClientClick='<%# String.Format("addAdminWin({0}); return false;", Eval("intAdminId"))%>'></asp:LinkButton> </ItemTemplate></telerik:GridTemplateColumn>here is the fucntion with and without the variable.
<script type="text/javascript"> function addAdminWin(adminid) { var addAdmin = $find("<%= AddAdmin.ClientID %>"); var HFId = $find("<%= HFId.ClientID %>"); HFId.val = adminid addAdmin.show(); } </script>This works along with one that passes no variable.
<script type="text/javascript"> function addAdminWin() { var addAdmin = $find("<%= AddAdmin.ClientID %>"); addAdmin.show(); } </script>