Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
127 views
Hi,
I have a single level hierarchical grid with 3 detail tables. The Master grid is having the paging and sorting enabled. My requirement is when the user adds a new record in the master table, I want that record to be selected and it's node to be opened(expanded). This should work even if the sort is enable for any of the column.

To select and Open the newly entered node, I tried using RadGrid1.SelectedIndexes.Add( j, 0) method in the prerender event of the rad grid control. but it doesn't seem to work.

Please help.

Thanks,
Rajiv
Rajiv
Top achievements
Rank 1
 answered on 26 Nov 2008
1 answer
165 views

Hi,
when we are using client side binding of DetailTables in RaDgrid following issues we found

1.Unable toassign multiple datakeynames for ClientDataKeyNames, when we tried its throwing error
2. Unable to Hide and show the Expand and Collpase buttons on RadGrid1_ItemDataBound
3. Unable to find the control in the detailtables

Thanks,
Sridevi.

Shinu
Top achievements
Rank 2
 answered on 26 Nov 2008
1 answer
69 views
I was trying various ways to change style at print time. Setting media to print didn't get me what i wanted. When debugging in Firefox i noticed that the grid control has a toggleCssClass method but i can't find any doc on it. Does this mean i can change CssClass in Javascript so it can be set before i print the page and then reset ti after print?
Vlad
Telerik team
 answered on 26 Nov 2008
1 answer
191 views
Hi..
Can an onchange event be added to a RadGrid - inorder to monitor changes?
Is there another event that is more appropriate? To monitor Insert/Updates/ Deletes?
thanks
Princy
Top achievements
Rank 2
 answered on 26 Nov 2008
3 answers
2.2K+ views
With a standard Gridview I can do like this:

  
        foreach (GridViewRow row in GridView1.Rows)
            {

            Label lblAmount = (Label)row.FindControl("lblAmount") as Label;


How do I resolve it with a RadGrid? I'm lost and new with this..
Princy
Top achievements
Rank 2
 answered on 26 Nov 2008
2 answers
138 views
Like the sum, count, max,  etc. of every column, how can I access this values coz I need them for something else.
Thanks
Albert
Top achievements
Rank 1
 answered on 26 Nov 2008
1 answer
168 views
Hi,
I have a RadGrid and a button on a page. I bind the grid to a datatable on the button click event.
The problem I face is once I sort certain column in certain order by clicking on the column header, It maintains this state even after I bind the grid to a new datasource. So how do i remove the old sort order on the grid and reset the grid to it's actual state while I rebind the grid to a new datasource.

thnx
madhu
Shinu
Top achievements
Rank 2
 answered on 26 Nov 2008
1 answer
78 views
in edit mode when updating it's writing null values for columns that are readonly.
Thanks
Shinu
Top achievements
Rank 2
 answered on 26 Nov 2008
1 answer
101 views
Hey there,

I have several GridBoundColumns that are set to hidden.  They only display in the edit form view, but I would like them to show up when I export to Excel, PDF and Word.  I've tried the following, but I'm not even sure if it's the right approach:

foreach (GridColumn gc in mlRadGrid.MasterTableView.Columns) 
     gc.Visible = true

Any help would be much appreciated!

-Derek
Shinu
Top achievements
Rank 2
 answered on 26 Nov 2008
1 answer
114 views
Hi

I am using the example code Collapse group and it throws an ArgumentOutOfRageExceptiopn (Specified argument was out of the range of valid values).  I believe it is the Controls(0).  My Grouping is static, defined in Asp code.  It works with out this code.  I have Telerik Asp.Net AJAX 2008 3 1105 dll's.

Partial Class Dispatcher_MismatchedReport
    Inherits System.Web.UI.Page
    '
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        If (Not (IsPostBack)) Then
            CollapseAll()
        End If
    End Sub ' Page_Load
    '
    Private Sub CollapseAll()
        Dim item As GridItem
        For Each item In RadGrid1.MasterTableView.Controls(0).Controls
            If TypeOf item Is GridGroupHeaderItem Then
                item.Expanded = False
            End If
        Next item
    End Sub ' CollapseAll
    '
End Class

 

 

Phil
Top achievements
Rank 2
 answered on 26 Nov 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?