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

[Solved] Need custom formatting of cells in radgrid

2 Answers 136 Views
Grid
This is a migrated thread and some comments may be shown as answers.
sai raghavendra sudha besta
Top achievements
Rank 1
sai raghavendra sudha besta asked on 25 Aug 2009, 08:56 AM
Hi,

i am new to telerik controls, and i am stuck with a problem.

i need to have a radgrid in which for certain columns on mouseover i need to show an image (something like a tooltip).
when i click on that image i update all the cells in that column with the value in this particular cell. 
Even this kind of behavior is limited to only 4 or 5 columns in the grid which has 10 to 16 columns.

i can find the way to format a column , and set the display style to image but i cannot find anything which is similar to what i need.
please help me out on this as i am stuck with this.

thank you for your help,
Sai.

2 Answers, 1 is accepted

Sort by
0
Schlurk
Top achievements
Rank 2
answered on 25 Aug 2009, 07:07 PM
I'm unsure of what you need to do with each of the columns that you need to edit etc. But a nice and easy way to access a column would be:
RadGrid1.MasterTableView.GetColumn("name"); 

Where the "name" could come from your  tooltip, and then from there you do what you want with the column. Again, I'm not sure what kind of behavior you need but that's at least a way to grab a column object that you are looking for.
0
sai raghavendra sudha besta
Top achievements
Rank 1
answered on 26 Aug 2009, 04:05 AM
Hi,
Thank you for the reply,
what i need is on mousehover, i need to show an icon on the cell, which is like changing the style of the mouse pointer, but this icon should also be able to handle the click event.
so when someone clicks on the icon of that particular cell cell, i need to ask for confirmation of the action using a popup window and then i need to get the value for that particular cell and update DB and grid with the values from that cell.

by using this RadGrid1.MasterTableView.GetColumn("name"); i could get the column name, but not actually the cell value and the cell that raised the event and the value in that cell.

the following article explains about selecting cells,
                                         http://www.telerik.com/help/aspnet-ajax/grdselectingcells.html
i need something like this and along with it, i also need the extra functionality of the showing the icon and handling the click event of the icon.
i am trying to attach an image which could explain the functionality, but for some reason i am not able to do so.

please let me know if you need any more clarification, and thank you for your help




Tags
Grid
Asked by
sai raghavendra sudha besta
Top achievements
Rank 1
Answers by
Schlurk
Top achievements
Rank 2
sai raghavendra sudha besta
Top achievements
Rank 1
Share this question
or