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

Is there a way to have additional values with folder/file items

2 Answers 64 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
murali
Top achievements
Rank 1
murali asked on 14 Jun 2010, 03:26 AM
Hi

Here i want to have some additional values apart from displaying columns . i need those values to control my context menu of the item.
Is there possibility to have values without displaying in the grid.

I dislike the idea of using the ajax check every item on item click and control the display the context menu. I want it do in client side. Is there any possiblity?

Thanks..

Regards

Murali 

2 Answers, 1 is accepted

Sort by
0
Petio Petkov
Telerik team
answered on 15 Jun 2010, 03:59 PM
Hello,

I modified the following online example:
http://demos.telerik.com/aspnet-ajax/fileexplorer/examples/customgridcolumns/defaultcs.aspx
which illustrates how to add custom columns. Here are the changes which I made:
1) In the RadFileExplorer1.Grid.ItemDataBound server-side event handler - the "Owners" column goes hidden by adding display:none to it. Using this approach- the column will exists on the client, but it will not be visible
2) The RadFileExplorer1.GridContextMenu.OnClientShowing client-side event is handled and an alert displays the corresponding value of the "Owner" column. The code is invoked when you try to open the ContextMenu.

Please find the attached example.


Kind regards,
Petio Petkov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
murali
Top achievements
Rank 1
answered on 21 Jun 2010, 05:56 AM
Thanks
Tags
FileExplorer
Asked by
murali
Top achievements
Rank 1
Answers by
Petio Petkov
Telerik team
murali
Top achievements
Rank 1
Share this question
or