We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Issue related to Grid height and width

Thread ID:





100941 Sep 14,2011 04:25 PM UTC Sep 15,2011 09:53 AM UTC ASP.NET Web Forms (Classic) 1
Tags: GridGroupingControl
Asked On September 14, 2011 04:25 PM UTC

i have use syncfusion grid in razor view, but when page(partial view in that i have written the grid code) is render first time at that time height and width property is not set to the grid.when i have navigate to another record by using .EnablePaging() property at that time page is Render ones again at that time it set height and width property to grid.
i have also attach a sample application.please go through it.(click "Grid Demo" link for grid sample)


Eswari S [Syncfusion]
Replied On September 15, 2011 09:53 AM UTC

Hi Shivkumar,

Thank you for your interest in Syncfusion products.

Step #1 : We suspect that the cause of the issue would be the incorrect scripts rendering in _Layout.cshtml . Please refer to the following code snippets:


. . .
. . .
// jquery scripts should be rendered before all scripts. since the controls css and properties are from jquery scripts

Step #2: In order to work with paging actions, create a post method for action and bind the data source to grid as given in the below code.


public ActionResult Grid(PagingParams args)
List lst = new List();
lst.Add(new CustomerClass("Name1", "Address1"));
lst.Add(new CustomerClass("Name1", "Address1"));
. . .

IEnumerable data = lst;
return data.GridActions();


Step #3 : Instead of adding reference to each view page,it is enough to add the reference in Views web.config file.Please refer to the following code snippets:

[ Views\web.config ]

. . .
. . .

For your convenience, we have modified your sample and the same can be downloaded from the following link :


Also, we would request you to check the following online UG link :


Please try this and let us know if you need any further assistance.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon