Hi!
For my edit mode, I have a header template with a set of THs in a table, and an itemtemplate with a bunch of TDs. This code is being reused several times across the system, but in some cases a couple of columns need to get hidden. I have a page where I'm using javascript to hide these things when the THs and TDs are not in an EditMode template but are just shown in a normal radgrid, and the hiding is working fine.
However, I need the system to run the same javascript after I click the edit button and the HeaderTemplate and ItemTemplate are loaded to hide the columns that need to be hidden for each particular page. Any way to do this? I can't use IDs and runat="server" since the TDs can't have a unique ID as they're repeating, so I'm pretty sure this has to be done via a jQuery hide. Any ideas?
For my edit mode, I have a header template with a set of THs in a table, and an itemtemplate with a bunch of TDs. This code is being reused several times across the system, but in some cases a couple of columns need to get hidden. I have a page where I'm using javascript to hide these things when the THs and TDs are not in an EditMode template but are just shown in a normal radgrid, and the hiding is working fine.
However, I need the system to run the same javascript after I click the edit button and the HeaderTemplate and ItemTemplate are loaded to hide the columns that need to be hidden for each particular page. Any way to do this? I can't use IDs and runat="server" since the TDs can't have a unique ID as they're repeating, so I'm pretty sure this has to be done via a jQuery hide. Any ideas?