- Home
- Forum
- ASP.NET MVC (Classic)
- QueryCellInfo?
QueryCellInfo?
Does anyone have an example of using the "QueryCellInfo" property in the grid from the view definition?
We were forced to move from using the "GridPropertiesModel" do define our grid in order to use the built-in hierarchical grid. With the "GridPropertiesModel" it was simple matter of assigning the address of the desired function.
We were forced to move from using the "GridPropertiesModel" do define our grid in order to use the built-in hierarchical grid. With the "GridPropertiesModel" it was simple matter of assigning the address of the desired function.
SIGN IN To post a reply.
4 Replies
GC
Greg Clouston
August 31, 2011 02:10 PM UTC
I found an example in the online help (http://help.syncfusion.com/ug_93/User%20Interface/ASP.NET%20MVC/Grid/index.htm). The example works some of the time. The problem I have found with the example is that it only works on the initial load of the grid. After each grid event (paging) the code in the "QueryCellInfo" doesn't fire.
Is there anyway I can set the "QueryCellInfo" via "GridPropertiesModel" and use the hierarchical grid at the same time?
Is there anyway I can set the "QueryCellInfo" via "GridPropertiesModel" and use the hierarchical grid at the same time?
SN
Sridhar N
Syncfusion Team
September 6, 2011 03:29 AM UTC
Hi Greg,
Thanks for your interest in Syncfusion products.
We have answered your query in your incident #84336. Could you please follow up in the incident.
Please let us know your concerns.
Regards,
Sridhar N
Thanks for your interest in Syncfusion products.
We have answered your query in your incident #84336. Could you please follow up in the incident.
Please let us know your concerns.
Regards,
Sridhar N
SE
sekhar
March 11, 2013 01:49 PM UTC
http://www.syncfusion.com/support/forums/grid-mvc/100730..
Please find my query at above link.
I need to look into incident #84336 for my problem.
Please Assisy
ES
Eswari S
Syncfusion Team
March 12, 2013 10:14 AM UTC
Hi Sekhar,
Thank you for using Syncfusion products.
We have prepared the sample for the mentioned requirement in the forum. Please find the sample from the following link:
http://www.syncfusion.com/downloads/Support/DirectTrac/84336/Hierarchy MVC-846022335.zip
Please refer to the following code snippets:
[AcceptVerbs(HttpVerbs.Post)]public ActionResult Hierarchy(PagingParams args)
{var data = (IList<Data>)System.Web.HttpContext.Current.Session["data"];
var result = data.GridActions<Data>() as GridHtmlActionResult<Data>;
//Querycell Event Need to hook on action [post] (like paging/sorting ,etc) result.GridModel.QueryCellInfo = QueryAction;return result;
} public void QueryAction(GridTableCell<Data> cell)
{if (cell.TableCellType == GridTableCellType.RecordFieldCell || cell.TableCellType == GridTableCellType.AlternateRecordFieldCell)
{if (cell.Column.MappingName == "Img")
{cell.Text = "<img style='height: 90px; width: 120px;' src='/Content/Images/" + cell.Text + ".png'>";
} } }
Please try this and let us know if you have any queries.
Regards,
Eswari S
SIGN IN To post a reply.
- 4 Replies
- 4 Participants
-
GC Greg Clouston
- Aug 30, 2011 07:49 PM UTC
- Mar 12, 2013 10:14 AM UTC