I have a grid with another grid inside the client detail. Each grid gets it data using ajax calls.
In the second grid I need to display various buttons against each row based on a value in a status field (let's call that StatusID)
The number of buttons varies from none to 5. I was thinking to put them all inside 1 column.
How can I achieve this ?
I am using the fluent grid declaration
After playing with it for a while I noticed this :
In my second grid ( aka the grid inside the ClientDetailTemplateID, i cannot use the bound values whatever I do
My column looks like this :
columns.Bound(p => p.PublishStatusID).ClientTemplate("#= PublishStatusID #");
As you can see this is just a test to get the value to display before I move on to building a button. I am getting an error telling me that PublishStatusID does not exist. In fact none of the bound properties can be accessed at all except for the one which is basically the key passed by the parent grid.
The data in the grid itself displays fine, but I cannot access it whatever I do in a ClientTemplate
The controller is setup to return data for the grid :
public JsonResult GetSomeData([DataSourceRequest] DataSourceRequest request, int someID)
and it returns this.Json(model.ToDataSourceResult(request), JsonRequestBehavior.AllowGet);
What's going on ?
In the second grid I need to display various buttons against each row based on a value in a status field (let's call that StatusID)
The number of buttons varies from none to 5. I was thinking to put them all inside 1 column.
How can I achieve this ?
I am using the fluent grid declaration
After playing with it for a while I noticed this :
In my second grid ( aka the grid inside the ClientDetailTemplateID, i cannot use the bound values whatever I do
My column looks like this :
columns.Bound(p => p.PublishStatusID).ClientTemplate("#= PublishStatusID #");
As you can see this is just a test to get the value to display before I move on to building a button. I am getting an error telling me that PublishStatusID does not exist. In fact none of the bound properties can be accessed at all except for the one which is basically the key passed by the parent grid.
The data in the grid itself displays fine, but I cannot access it whatever I do in a ClientTemplate
The controller is setup to return data for the grid :
public JsonResult GetSomeData([DataSourceRequest] DataSourceRequest request, int someID)
and it returns this.Json(model.ToDataSourceResult(request), JsonRequestBehavior.AllowGet);
What's going on ?