Hi I am using PivotGrid V2 and binding to local data ( json array ), the data contain a field called CompletedDate ( format 16/4/2022 18:00), what I would like to do is create a pivot grid that contain the month name columns as below, is this possible
Year: 2022 | |||||||||||||
Jan | Feb | March | April | May | June | July | Aug | Sep | Oct | Dec | |||
Status | Reviewed | 1 | 4 | 1 | 9 | 33 | 4 | 5 | 26 | 5 | 22 | 33 | 134 |
Awating Review | 3 | 6 | 6 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 23 | |
4 | 10 | 1 | 1 | 34 | 5 | 6 | 27 | 6 | 23 | 34 | 151 |
Thanks
I am resetting the grid's state like this:
const $grid = $gridRoot.find('.xifacts-simple-grid');
const grid = $grid.data('kendoGrid');
grid.dataSource.filter({});
grid.dataSource.sort({});
grid.dataSource.pageSize(5);
grid.clearSelection();
grid.dataSource.page(1);
All is good, the grid state is correctly reset (it goes to page 1) - but it still shows the old page that was selected.
Same for the Items/Page.
Here is a gif for the issue:
Hello ! i am using a telerik grid in order to display my data, when i go to edit the rows i want it to update my database however all the demos i have seen are using URLs as part of the CRUD function, i use a sql database so urls will not work. Is there an alternative method?
Kind regards
Hi I cannot find a 'Count' aggregate in the new Pivot grid , the previous version did have it ?
Also will there be support to provide a 'Percentage' measure
Thanks
Hi there,
We face a few filter-related issues when exploring Pivot grid V2 and using the default configuration options.
1. When Kendo pivotGridconfiguratorV2 is not displayed we miss the opportunity to apply filters (that works in the legacy Pivot grid). Can you suggest a workaround or a config option?
2. When a filter is programmatically applied and the configurator is displayed, in the respective field dropdown this is still not reflected (prefilled), so the user wouldn't know a filter is already acting. That also works in the legacy Pivot.
3. For certain field types (e.g. number) the option to apply field filter is not provided at all, even when we have one programmatically applied already, only 'Include fields...'
Please, provide guidance on the issues above.
Thank you,
Georgi
Hello,
Do you know a solution to prevent labels from ending up outside the chartarea?
For example a possibility to automatically resize the plotarea? ( i would like to keep 'position: "outsideEnd"')
Here : https://dojo.telerik.com/ObitALOK
Thank you
Hello,
I have date control outside gannt chart. According to date change it should change day / Week view in Gannt chart.
It is working fine for futhure dates.
I have requirement for Past dates also it should change day / Week accordingly.
Please can you help.
Update
This should be a UI for ASP.NET Core question, so I Reposted it here
Scenario:
I am trying to enable and disable CheckBoxGroup items,
and it dependes on whether if the categories of the item has values.
For example, If there are two categorie, which are animals and fruits.
If I recieved no datas of fruits, I'll disabled the CheckBoxGroup item "fruits".
What I've tried so far
I search through documents and found this tutorial of the BindTo() method,
However, I got an error message saying "Cannot convert from System.Collections.Generic.List<MyCheckBoxItemModel> to string []
Questions
1. According to the method, how can I convert List<model> to string[] in my .cshtml ?
2. (Extension Question) In the tutorial, I'm awared that in the "InputGroupItemModel" there was a "Enabled" attribute.
Is it mean that if passed it to the front end and attached it with the BindTo() method, the CheckBoxGroup will automatically enable or disable the checkbox item?
(I'll show my code below)
Code
CheckBoxItemDto.cs
public class CheckBoxItemDto
{
//public IDictionary<string, object> HtmlAttributes { get; set; }
//public string CssClass { get; set; }
public bool? Enabled { get; set; }
//public bool? Encoded { get; set; }
public string Label { get; set; }
public string Value { get; set; }
}
CheckBoxItemViewModel.cs
public class CheckBoxItemViewModel
{
public List<CheckBoxItemDto> Items { get; set; }
public string[] CheckBoxGroupValue { get; set; }
}
MyViewModel.cs
public class EqInstsDataViewModel
{
public IEnumerable<MyOtherViewModel> MyOtherViewModel { get; set; }
public CheckBoxItemViewModel CheckBoxItemViewModel { get; set; }
}
Controller
public IActionResult GetChartPartialView()
{
try
{
List<CheckBoxItemDto> checkBoxItemDto = GetCheckBoxItem(); //Get CheckBox Items
CheckBoxItemViewModel checkBoxItem = new CheckBoxItemViewModel() { Items = checkBoxItemDto };
MyViewModel myViewModel = new MyViewModel() { Items = checkBoxItem }
return PartialView("~/Views/Shared/_MyPartialView.cshtml", myViewModel);
}
catch (Exception ex)
{
return Json(ex.Message);
}
}
public List<CheckBoxItem> GetCheckBoxItem()
{
try
{
#region CheckBoxItems
var itemsList = new List<CheckBoxItemDto>()
{
new CheckBoxItemDto()
{
Label = "Animals",
Value = "1",
Enabled = true
},
new CheckBoxItemDto()
{
Label = "Friuts",
Value = "2",
Enabled = false
} ,
};
#endregion
return itemList;
}
catch(Exception)
{
throw;
}
}
_MyPartialView.cshtml
@(Html.Kendo().CheckBoxGroup()
.Name("MyCheckBox")
.BindTo(Model.CheckBoxItemViewModel.Items) //Cannot convert from List<CheckBoxItemDto> to string[]
.Value(Model.CheckBoxItemViewModel.CheckBoxGroupValue)
.Layout("horizontal")
)