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
close icon

CellSelecting and CellSelected currentCell is null

I'm trying to get the current cell selected in both event CellSelecting and CellSelected but the value is null.

I'm working with Syncfusion v20.1.0.55.

<SfGrid @ref="_sfGrid"

            DataSource="@Sessions"

            AllowSelection="true"

            GridLines="GridLine.Both"

            EnableAltRow="false"

            Toolbar="ToolbarItems"

            ContextMenuItems="@(new List<ContextMenuItemModel>() { new ContextMenuItemModel { Text = "Create Session", Target = ".e-content", Id = "create-session" } })">

            <GridEvents TValue="SessionDto"

                ContextMenuItemClicked="OnContextMenuClick"

                QueryCellInfo="CustomizeCell"

                CellSelecting="CellSelectingHandler"

                CellSelected="CellSelectedHandler"

                OnToolbarClick="ToolbarClickHandler"

                OnActionBegin="ActionBeginHandler">

            </GridEvents>

            <GridSelectionSettings Mode="Syncfusion.Blazor.Grids.SelectionMode.Cell" Type="Syncfusion.Blazor.Grids.SelectionType.Multiple" CellSelectionMode="CellSelectionMode.Box"></GridSelectionSettings>

            <GridEditSettings AllowAdding="true" AllowEditing="true" AllowDeleting="true" Mode="EditMode.Dialog"></GridEditSettings>

            <GridColumns>

                <GridColumn Field=@nameof(Session.DateColumn) HeaderText="Date" TextAlign="TextAlign.Center" Width="80" CustomAttributes="@(new Dictionary<string, object>() { { "class", "e-column-date" } })"></GridColumn>

                <GridColumn Field=@nameof(Session.Hr00) HeaderText="00:00" TextAlign="TextAlign.Center">

                    <Template>

                        @{

                            //var session = context as Session;

                            //var key = session.Hr0.FirstOrDefault().Key;

                            //<p>@key</p>

                        }

                        <span class="e-check-large e-icons block-unchecked"></span>

                    </Template>

                </GridColumn>

                <GridColumn Field=@nameof(Session.Hr01) HeaderText="01:00" TextAlign="TextAlign.Center">

                    <Template>

                        <span class="e-check-large e-icons block-unchecked"></span>

                    </Template>

                </GridColumn>

                <GridColumn Field=@nameof(Session.Hr02) HeaderText="02:00" TextAlign="TextAlign.Center">

                    <Template>

                        <span class="e-check-large e-icons block-unchecked"></span>

                    </Template>

                </GridColumn>

                <GridColumn Field=@nameof(Session.Hr03) HeaderText="03:00" TextAlign="TextAlign.Center">

                    <Template>

                    </Template>

                </GridColumn>

                <GridColumn Field=@nameof(Session.Hr04) HeaderText="04:00" TextAlign="TextAlign.Center">

                    <Template>

                    </Template>

                </GridColumn>

                <GridColumn Field=@nameof(Session.Hr05) HeaderText="05:00" TextAlign="TextAlign.Center">

                    <Template>

                    </Template>

                </GridColumn>

                <GridColumn Field=@nameof(Session.Hr06) HeaderText="06:00" TextAlign="TextAlign.Center">

                    <Template>

                    </Template>

                </GridColumn>

                <GridColumn Field=@nameof(Session.Hr07) HeaderText="07:00" TextAlign="TextAlign.Center">

                    <Template>

                    </Template>

                </GridColumn>

                <GridColumn Field=@nameof(Session.Hr08) HeaderText="08:00" TextAlign="TextAlign.Center">

                    <Template>

                    </Template>

                </GridColumn>

                <GridColumn Field=@nameof(Session.Hr09) HeaderText="09:00" TextAlign="TextAlign.Center">

                    <Template>

                    </Template>

                </GridColumn>

                <GridColumn Field=@nameof(Session.Hr10) HeaderText="10:00" TextAlign="TextAlign.Center">

                    <Template>

                    </Template>

                </GridColumn>

                <GridColumn Field=@nameof(Session.Hr11) HeaderText="11:00" TextAlign="TextAlign.Center">

                    <Template>

                    </Template>

                </GridColumn>

                <GridColumn Field=@nameof(Session.Hr12) HeaderText="12:00" TextAlign="TextAlign.Center">

                    <Template>

                    </Template>

                </GridColumn>

                <GridColumn Field=@nameof(Session.Hr13) HeaderText="13:00" TextAlign="TextAlign.Center">

                    <Template>

                    </Template>

                </GridColumn>

                <GridColumn Field=@nameof(Session.Hr14) HeaderText="14:00" TextAlign="TextAlign.Center">

                    <Template>

                    </Template>

                </GridColumn>

                <GridColumn Field=@nameof(Session.Hr15) HeaderText="15:00" TextAlign="TextAlign.Center">

                    <Template>

                    </Template>

                </GridColumn>

                <GridColumn Field=@nameof(Session.Hr16) HeaderText="16:00" TextAlign="TextAlign.Center">

                    <Template>

                    </Template>

                </GridColumn>

                <GridColumn Field=@nameof(Session.Hr17) HeaderText="17:00" TextAlign="TextAlign.Center">

                    <Template>

                    </Template>

                </GridColumn>

                <GridColumn Field=@nameof(Session.Hr18) HeaderText="18:00" TextAlign="TextAlign.Center">

                    <Template>

                    </Template>

                </GridColumn>

                <GridColumn Field=@nameof(Session.Hr19) HeaderText="19:00" TextAlign="TextAlign.Center">

                    <Template>

                    </Template>

                </GridColumn>

                <GridColumn Field=@nameof(Session.Hr20) HeaderText="20:00" TextAlign="TextAlign.Center">

                    <Template>

                    </Template>

                </GridColumn>

                <GridColumn Field=@nameof(Session.Hr21) HeaderText="21:00" TextAlign="TextAlign.Center">

                    <Template>

                    </Template>

                </GridColumn>

                <GridColumn Field=@nameof(Session.Hr22) HeaderText="22:00" TextAlign="TextAlign.Center">

                    <Template>

                    </Template>

                </GridColumn>

                <GridColumn Field=@nameof(Session.Hr23) HeaderText="23:00" TextAlign="TextAlign.Center">

                    <Template>

                    </Template>

                </GridColumn>

            </GridColumns>

        </SfGrid>

Untitled.png


4 Replies

SP Sarveswaran Palani Syncfusion Team November 1, 2022 10:25 PM

Hi Javier,


Greetings from Syncfusion support,


Currently, we are validating your query. Further details will be updated on or before 4th Nov 2022.


Regards,

Sarveswaran PK



JL Javier Lamas Collejo November 2, 2022 10:35 AM

Hi  Sarveswaran, 

Thanks for answering me. I wait your answer

Regards,
Javier



SP Sarveswaran Palani Syncfusion Team November 3, 2022 12:22 PM

Hi Javier,


Greetings from Syncfusion support.


We have considered it as a usability improvement and logged a task  " CellSelecting and CellSelected EventHandler currentCell value is null’ . At the planning stage for every release cycle, we review all open features and identify features for implementation based on specific parameters including product vision, technological feasibility, and customer interest. And this improvement will be included in any of our upcoming releases.


You can now track the current status of your request, review the proposed resolution timeline, and contact us for any further inquiries through this link.


https://www.syncfusion.com/feedback/38878/cellselecting-and-cellselected-eventhandler-currentcell-value-is-null


You can also communicate with us regarding the open feature any time using our above feedback report page. We do not have immediate plan to implement this feature and it will be included in any of our upcoming releases. Please cast your vote to make it count. So that we will prioritize the improvement for every release based on demands.


Disclaimer: “Inclusion of this solution in the release may change due to other factors including but not limited to QA checks and works reprioritization”


Regards,

Sarveswaran PK



SG Suganya Gopinath Syncfusion Team November 7, 2022 10:50 PM

Hi Javier,

We are closing this ticket. You can communicate with us or track the status of the feature using the below feedback link.

https://www.syncfusion.com/feedback/38878/cellselecting-and-cellselected-eventhandler-currentcell-value-is-null

Regards, 

Suganya Gopinath.




Loader.
Live Chat Icon For mobile
Up arrow icon