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

Info about DataBound event

Hi everyone, I would use the event DataBound to replace at code numbers some labels. With asp:GridView I use the following code:

        protected void dGrid_RowDataBound(Object sender, GridViewRowEventArgs e)
        {
            if (e.Row.RowType == DataControlRowType.DataRow)
            {
                IDictionary<ushort, string> ModelDescriptionNames = (IDictionary<ushort, string>)Application["ModelDescriptionNames"];
                e.Row.Cells[0].Text = ModelDescriptionNames[Convert.ToUInt16(e.Row.Cells[0].Text)];
            }
        }

It's possible a similar approach with Syncfusion grid?

Thanks in advance







1 Reply

SS Seeni Sakthi Kumar Seeni Raj Syncfusion Team April 20, 2017 05:59 AM UTC

Hi Matteo,  
 
Thanks for contacting Syncfusion Support.  
 
Usually, ejGrid a JavaScript will be rendered in the client-side. In the ASP.Net, the Grid will collect the required parameters and properties using some business classed defined within the Syncfusion Libraries. These properties were parsed to the JSON format which will render the controls using the referred scripts such as jQuery, jsrender and ej Scripts. 
 
So we cannot provide a server-end rowdatabound similar to the ASP Grid View. However, we have provided option to achieve your requirement using the client events of the Grid such as QueryCellInfo and RowDataBound. Refer to the following API References.  
 
 
We have already discussed about the formatting the cell using the queryCellInfo event.  
 
 
Regards,  
Seeni Sakthi Kumar S. 


Loader.
Live Chat Icon For mobile
Up arrow icon