This is a migrated thread and some comments may be shown as answers.

Need to hide TDs and THs by class once edit mode has loaded

3 Answers 42 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Brett
Top achievements
Rank 1
Brett asked on 11 Jan 2013, 04:30 PM
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?

3 Answers, 1 is accepted

Sort by
0
Brett
Top achievements
Rank 1
answered on 18 Jan 2013, 04:32 PM
Any Telerik peeps have ideas on this one?
0
Brett
Top achievements
Rank 1
answered on 24 Jan 2013, 08:22 PM
Bump. Anyone have ideas for this one?
0
Antonio Stoilkov
Telerik team
answered on 29 Jan 2013, 08:15 AM
Hello Brett,

I have answered your questions in the support ticket you have opened with the same question. There is more detailed information on the topic there so I suggest we continue our conversation there.

Greetings,
Antonio Stoilkov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Grid
Asked by
Brett
Top achievements
Rank 1
Answers by
Brett
Top achievements
Rank 1
Antonio Stoilkov
Telerik team
Share this question
or