Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
80
IgGrid Values Not Sorting
posted

Hi, below is the code i am using to sort, but it is not sorting, can anyone please help?

.Features(features =>
{
features.Paging().Type(OpType.Local).PageSize(10).PageCountLimit(100).ShowPageSizeDropDown(true).ShowPagerRecordsLabel(true).PrevPageLabelText("Prev").RecordCountKey("totalRecords");

features.Sorting().Type(OpType.Local).ColumnSettings(settings =>
{
settings.ColumnSetting().ColumnKey("CustomerValue").AllowSorting(true);
settings.ColumnSetting().ColumnKey("Value").AllowSorting(false);
settings.ColumnSetting().ColumnKey("UserName").AllowSorting(false);
settings.ColumnSetting().ColumnKey("EditedDate").AllowSorting(false);
settings.ColumnSetting().ColumnKey("Action").AllowSorting(false);
});
features.Tooltips()
.Visibility(TooltipsVisibility.Overflow)
.ColumnSettings(settings =>
{
settings.ColumnSetting().ColumnKey("CustomerValue").AllowTooltips(true);
settings.ColumnSetting().ColumnKey("Value").AllowTooltips(false);
settings.ColumnSetting().ColumnKey("UserName").AllowTooltips(false);
settings.ColumnSetting().ColumnKey("EditedDate").AllowTooltips(false);
settings.ColumnSetting().ColumnKey("Action").AllowTooltips(false);
})
.ShowDelay(100);

features.Updating().EnableAddRow(false)
.EditMode(GridEditMode.Row)
.StartEditTriggers(GridStartEditTriggers.Click)
.EnableDeleteRow(false)
.AddClientEvent("editRowStarting", "stopEditRow")
.ShowDoneCancelButtons(false)
.ColumnSettings(setting =>
{
setting.ColumnSetting().ColumnKey("CustomerValue").EditorType(ColumnEditorType.Text).Required(true).Validation(true);
setting.ColumnSetting().ColumnKey("Value").EditorType(ColumnEditorType.Combo).EditorOptions("mode: 'Combobox',dataSource: autoTerminationList,textKey: 'Text',valueKey: 'Text'").Required(true).Validation(true);
setting.ColumnSetting().ColumnKey("UserName").ReadOnly(true);
setting.ColumnSetting().ColumnKey("EditedDate").ReadOnly(true);
setting.ColumnSetting().ColumnKey("Action").ReadOnly(true);
});

  • 1320
    Offline posted

    Hello,

    I have prepared a sample, demonstrating igGrid with enabled Sorting behavior, however, on my side I am not able to reproduce the described behavior and the grid is sorted as expected.

    Please test the sample on your side and let me know how it behaves. If this is not an accurate demonstration of what you are trying to achieve please feel free to modify it and send it back to me along with steps to reproduce. Alternatively, if the behavior cannot be replicated please feel free to provide your own sample. Remove any external dependencies and code that is not directly related to the issue, zip your application and attach it in this case.

    Having a working sample on my side, which I can debug, is going to be very helpful in finding the root cause of this behavior.

    Thank you for your cooperation.

    Looking forward to hearing from you.

    Regards,
    Monika Kirkova,
    Infragistics

    igGridSort.zip