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. Image for the cookie policy date

Client side model not clear

I have not found any reference of the client side model for the grouping grid. I also tried the example from Show/Hide Columns section:

========================================

Client-Side Show / Hide Column
On the client-side, columns can be shown or hidden using the following APIs.

• ShowColumn(columnindex)
• HideColumn(columnindex)

Please refer the below code snippet which illustrates this.

[JScript]

var gridTable = GetEGridTable( $get('<%= GridGroupingControl1.ClientID %>') );
gridTable.HideColumn( val );
gridTable.ShowColumn( val );
========================================

I see that my gridTable is "undefined" while the div is in place and has the right name.
I could not find the library used for GetEGridTable function.
You can find sample project and screen shot attached.
Thank you.


ClientsideColumnHideShow_a6eed60e.rar

3 Replies

SD Sandhya D Syncfusion Team October 29, 2013 01:12 PM UTC

Hi Mustafa,

Thank you for your interest in syncfusion products.

Your query "Client side model not clear"  can be achieved by setting datasource to the grid.

Please refer the code below.

[Default.aspx.cs]:

protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
List<MyClass> list = new List<MyClass>();
//Empty records;
this.GridGroupingControl1.DataSource = list;
}
}

We have attached sample for your reference . Please get back to us if you need further assistance.

Regards
Sandhya D


   



ClientsideColumnHideShow_a6eed60e_(1)_22037823.zip


MH Mustafa Hacibekir November 7, 2013 01:43 PM UTC

It's working now. Thanks for the clue. 



ES Eswari S Syncfusion Team November 8, 2013 04:45 AM UTC

Hi Mustafa,

 

Thanks for your update.

 

We are happy to hear that you issue has been resolved.

 

Please let us know if you have any queries.

 

Regards,

Eswari S


Loader.
Live Chat Icon For mobile
Up arrow icon