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

Rad Grid and Preview

3 Answers 54 Views
Grid
This is a migrated thread and some comments may be shown as answers.
kollam2003
Top achievements
Rank 1
kollam2003 asked on 18 Mar 2009, 01:25 PM
Hai,
I we want to see the preview of all items in a row inside the grid itself, what can we do?
Like when we click the Edit button we see it in text boxes
Plz Help.

Kollam2003

3 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 1
answered on 19 Mar 2009, 05:56 AM
Hello Kollam2003,

You can either use NestedViewTemplates to display a preview of the columns in the grid row. Refer the following help document for more information on NestedViewTemplates:
NestedView template

Or you can display a pop up window probably on clicking a button, to display all the cells in a row as shown in the demo below. You can also replace the textboxes in the window, in the example with labels.
Window Editing

-Princy.
0
kollam2003
Top achievements
Rank 1
answered on 19 Mar 2009, 11:26 AM
If we use NestedView template & if some users should not be shown the details in the nested template, can we hide the nested view template from code behind
0
kollam2003
Top achievements
Rank 1
answered on 19 Mar 2009, 11:35 AM
Thanks Princy, I have found it from ur post itself
http://www.telerik.com/community/forums/aspnet-ajax/grid/selected-row-template.aspx

// To hide the expandcolumn 
  protected void RadGrid1_ColumnCreated(object sender, GridColumnCreatedEventArgs e) 
    { 
        if (e.Column.UniqueName == "ExpandColumn"
            e.Column.Visible = false
    } 
 protected void RadGrid1_ItemCommand(object source, GridCommandEventArgs e) 
    { 
        if (e.CommandName == "RowClick"
        { 
            GridDataItem dataItem = (GridDataItem)e.Item; 
            dataItem.Expanded = !dataItem.Expanded; 
 
        } 
    } 
  



Tags
Grid
Asked by
kollam2003
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 1
kollam2003
Top achievements
Rank 1
Share this question
or