I have a radgrid bound to a database containing geographical data:
Location (ex. "London")
Latitude
Longitude
The grid displays the Location field, and in a NestedViewTemplate, I display a Google Map with a marker set at the latitude/longitude coordinate.
To only allow one item to be expanded at a time, I have enabled "Single Expand" according to this article:
http://www.telerik.com/help/aspnet-ajax/grdsingleexpandinhierarchicalgrid.html
What I'd like:
1. To be able to collapse the single expanded item. Right now I can't do that. Here is my current ItemCommand eventhandler:
2. To ajaxify the grid to prevent full-page refreshes when I expand a new item. Right now it fires an "access is denied" error if I try to ajaxify using a radAjaxManager.
A simple project that replicates my problem can be downloaded from http://www.stmtest.net/GoogleMapsGrid.zip
Note: Telerik dll's are not included in the /bin folder in .zip
Any ideas appreciated,
Jeppe Jespersen
Denmark
Location (ex. "London")
Latitude
Longitude
The grid displays the Location field, and in a NestedViewTemplate, I display a Google Map with a marker set at the latitude/longitude coordinate.
To only allow one item to be expanded at a time, I have enabled "Single Expand" according to this article:
http://www.telerik.com/help/aspnet-ajax/grdsingleexpandinhierarchicalgrid.html
What I'd like:
1. To be able to collapse the single expanded item. Right now I can't do that. Here is my current ItemCommand eventhandler:
| If e.CommandName = "ExpandCollapse" Then |
| For Each item As GridItem In e.Item.OwnerTableView.Items |
| If item.Expanded = True Then |
| item.Expanded = False |
| End If |
| Next |
| End If |
2. To ajaxify the grid to prevent full-page refreshes when I expand a new item. Right now it fires an "access is denied" error if I try to ajaxify using a radAjaxManager.
A simple project that replicates my problem can be downloaded from http://www.stmtest.net/GoogleMapsGrid.zip
Note: Telerik dll's are not included in the /bin folder in .zip
Any ideas appreciated,
Jeppe Jespersen
Denmark