Can not select another row

After select a row i try to select another row and chrome show this;.


6 Replies

VN Vignesh Natarajan Syncfusion Team October 3, 2018 06:16 AM UTC

Hi Athiwat, 
 
Thanks for using Syncfusion products. 
 
Before proceeding with your query,  we need the following details to analyze the issue at our end. 
 
  1. Share the Grid rendering code (aspx and Code behind)
  2. Have you enabled EnablePersistance in ejGrid?.
  3. Share the video demonstration of replication procedure of reported issue. (i.e.) when you are facing the issue on initial render selection of after postback action.
  4. Share the stack trace (please expand the script error of console window) of the reported issue.
 
Regards, 
Vignesh Natarajan 



AT Athiwat October 3, 2018 09:01 AM UTC

<ej:Grid ID="grdList"
                runat='server'
                MinWidth="600"
                EnablePersistence="true"
                EnableTheming="true"
                IsResponsive="true"
                AllowScrolling="true"
                AllowSorting="true"
                AllowMultiSorting="true"
                AllowResizing="true"
                AllowPaging="false"
                EnableTouch="true"
                GridLines="None"
                OnServerRecordDoubleClick="grdList_ServerRecordDoubleClick" 
                OnServerRecordClick="grdList_ServerRecordClick">
                <Columns>
                    <ej:Column Field="Code" HeaderText="รหัสธนาคาร" Width="50" TextAlign="Left"></ej:Column>
                    <ej:Column Field="NameTH" HeaderText="ชื่อธนาคาร" Width="150" TextAlign="Left"></ej:Column>
                    <ej:Column Field="StatusText" HeaderText="สถานะ" Width="20" TextAlign="Left"></ej:Column>
                </Columns>
                <ScrollSettings Height="410"
                    AutoHide="false"
                    EnableTouchScroll="true"
                    AllowVirtualScrolling="true"
                    VirtualScrollMode="Continuous" />
            </ej:Grid>


And Code Behind
     private BindGrid()
     {
            BankList = new Bank().GetList();
            grdList.DataSource = BankList;
            grdList.DataBind();

     }
          protected void grdList_ServerRecordClick(object sender, Syncfusion.JavaScript.Web.GridEventArgs e)
        {
            try
            {
                Dictionary<string, object> Record = e.Arguments["data"] as Dictionary<string, object>;
                Session["SelectedBank"] = Record.Where(a => a.Key == "Code").FirstOrDefault().Value.ToString();
                BindList();
                grdList.SelectedRowIndex = Convert.ToInt32(e.Arguments["rowIndex"]);
                btnEdit.Enabled = true;
                btnDummyDelete.Enabled = true;
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }

        protected void grdList_ServerRecordDoubleClick(object sender, Syncfusion.JavaScript.Web.GridEventArgs e)
        {
            try
            {
                Dictionary<string, object> Record = e.Arguments["data"] as Dictionary<string, object>;
                Session["SelectedBank"] = Record.Where(a => a.Key == "Code").FirstOrDefault().Value.ToString();
                grdList.SelectedRowIndex = Convert.ToInt32(e.Arguments["rowIndex"]);
                Edit();
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }

        protected void grdList_ServerRowSelected(object sender, Syncfusion.JavaScript.Web.GridEventArgs e)
        {
            try
            {
                Dictionary<string, object> Record = e.Arguments["data"] as Dictionary<string, object>;
                Session["SelectedBank"] = Record.Where(a => a.Key == "Code").FirstOrDefault().Value.ToString();
                Session["SelectedRowIndex"] = e.Arguments["rowIndex"];
                BindList();
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
          


VN Vignesh Natarajan Syncfusion Team October 4, 2018 08:57 AM UTC

Hi Athiwat, 


Thanks for the update. 


We have prepared a sample using your code example and we are able to reproduce the reported issue at our end. We have confirmed it a bug and logged a defect report “Not able to select the records after post back when VirtualScrolling is enabled”. The issue will be fixed and it will be included in our upcoming release 2018 Volume 3 Service pack 1 which is scheduled to be rolled out by the month end of October 2018. 

Till then we appreciate your patience. 

Regards, 
Vignesh Natarajan  



AT Athiwat October 4, 2018 09:09 AM UTC

Thank you, it work.


VN Vignesh Natarajan Syncfusion Team October 4, 2018 11:18 AM UTC

Hi Athiwat, 
 
 
Thanks for the update. 
 
 
Kindly check the website periodically regarding the release updates. 
 
 
Regards, 
Vignesh Natarajan 



VN Vignesh Natarajan Syncfusion Team December 21, 2018 08:39 AM UTC

Hi Athiwat, 

Sorry for the inconvenience caused.  

Due to some complexity of issue, we are unable to include the fix for the issue “Not able to select the records after post back when VirtualScrolling is enabled” in 2018 Volume 3 service pack 1. Issue will fixed and it will be included in our next release 2018 Volume 4 Service pack 1 which is scheduled to be rolled by the month of January 2019.  

Regards, 
Vignesh Natarajan 


Loader.
Up arrow icon