Telerik Forums
UI for ASP.NET MVC Forum
5 answers
743 views

Hello,

I have a Telerik MVC Ajax grid. One each coloumn there is a column menu with sorting and the multicheck filters. I would like the multicheck filters to be sorted a-z.

The ColumnMenuInit event is calling the following code found in another question:

    var filterMultiCheck = e.container.find(".k-filterable").data("kendoFilterMultiCheck");
    if (filterMultiCheck != undefined) {
        filterMultiCheck.container.empty();
        filterMultiCheck.checkSource.sort({ field: e.field, dir: "asc" });
        filterMultiCheck.checkSource.data(filterMultiCheck.checkSource.view().toJSON());
        filterMultiCheck.createCheckBoxes();
    }

However, this isn't working. Any ideas?

Thank you

Lucy

Preslav
Telerik team
 answered on 19 Feb 2018
1 answer
419 views

Hello,
I have a Telerik MVC Ajax grid. I noticed that in the latest release you handle null values in the Multi check filter. It now shows 'null' in the filter. This is a very technical term and we would rather then word 'Blanks' to appear. Is there anyway I can achieve this?

Thank you
Lucy

Stefan
Telerik team
 answered on 19 Feb 2018
3 answers
953 views

We are using the below code for loading data in a Kendo dropdown inside a grid. The data is getting loaded, but after applying filter and selecting an item in the filter only the filter data is displayed in the dropdown. The dropdown is not getting refreshed to load the entire data. Please help

 

@(Html.Kendo().DropDownList()
            .Name("VehicleSegment") // The name of the widget should be the same as the name of the property.
            .DataValueField("VehicleSegmentID") // The value of the dropdown is taken from the ID property.
            .DataTextField("VehicleSegmentName") // The text of the items is taken from the EmployeeName property.
           .MinLength(3)
           //.OptionLabel("---Select Vehicle Segment ---")
          .HtmlAttributes(new { style = "width:100%" })
         .Template("#= VehicleSegmentID # | For: #= VehicleSegmentName #")
          .Height(290)
           //.Filter(FilterType.Contains)
           .Filter("contains")
          .DataSource(source =>
          {
              source.Custom()
                  .ServerFiltering(true)
                  .ServerPaging(true)
                  .PageSize(80)
                  .Type("aspnetmvc-ajax") //Set this type if you want to use DataSourceRequest and ToDataSourceResult instances
                  .Transport(transport =>
                  {
                      transport.Read("Virtualization_Read", "Program");
                  })
                  .Schema(schema =>
                  {
                      schema.Data("Data") //define the [data](http://docs.telerik.com/kendo-ui/api/javascript/data/datasource#configuration-schema.data) option
                            .Total("Total"); //define the [total](http://docs.telerik.com/kendo-ui/api/javascript/data/datasource#configuration-schema.total) option
                  });
          })
          .Virtual(v => v.ItemHeight(20).ValueMapper("valueMapper"))

Dimitar
Telerik team
 answered on 19 Feb 2018
1 answer
350 views

I have a Tooltip setup to display a grid of data when a span is clicked.  The span has 'data' elements which contain the parameters to be passed to the Action method on the Controller.  This all works pefertly fine in my development environment, however when I deploy to test or production the parameters being passed to the Action method are null.

My implementation follows this example:

https://demos.telerik.com/aspnet-mvc/tooltip/ajax#

When I try the demo at this link, it also does not display the content of the tooltip, just a blank tooltip.

So my question is why does this work for in my development environment but not my test or production environment?  Also, does the example on the demo site not work?

My code is as follows:

.CSHTML content
This is partial content, but enough to show what is setup:

            <div class="row skills-border skills-border-bottom">

                <h3>CMRP <span class="small" style="font-size: .5em">(Click on # for detail)</span></h3>


                <div class="col-md-6 col-lg-6">
                    @{
                        string cmrpValidClass = item.CMRPValidCount == 0 ? "label-danger" : "label-success";
                        string cmrpValidTextClass = item.CMRPValidCount == 0 ? "text-danger": "text-success" ;
                    }
                    <span class="label cmrpDetail @cmrpValidClass" data-group="@item.Category~~true" data-validcmrp="true">@Html.DisplayFor(x => item.CMRPValidCount)</span>

                    <h5 class="@cmrpValidTextClass"> @Html.DisplayNameFor(x => x.CMRPValidCount) </h5>

                </div>

                <div class="col-md-6 col-lg-6">
                    @{
                        string cmrpNotValidClass = item.CMRPNotValidCount == 0 ? "label-success" : "label-danger";
                        string cmrpNotValidTextClass = item.CMRPNotValidCount == 0 ? "text-success" : "text-danger";
                    }
                    <span class="label cmrpDetail @cmrpNotValidClass" data-group="@item.Category~~false" data-validcmrp="false">@Html.DisplayFor(x => item.CMRPNotValidCount)</span>

                    <h5 class="@cmrpNotValidTextClass hasTooltip" title="@cmrpNotValid"> @Html.DisplayNameFor(x => x.CMRPNotValidCount) </h5>

                </div>
            </div>
        </div>
    }
</div>
@(Html.Kendo().Tooltip()
      .For(".cmrpDetail")
      .ShowOn(TooltipShowOnEvent.Click)
      .LoadContentFrom("CMRPDetail", "CenterOfExcellence")
      .Position(TooltipPosition.Top)
      .Width(700)
      .Height(500)
      .Events(events =>
      {
          events.RequestStart("requestStart");
          events.Show("show");
      }))

 

<script>
    function show() {
        this.refresh();
    }
    function requestStart(e) {
        e.options.data = {
            id: e.target.data("group")
        }
    }

</script>

From CenterOfExcellenceController

        public ActionResult CMRPDetail(string id)
        {
            string[] parameters = id.Split(new []{"~~"}, StringSplitOptions.None);

            IEnumerable<CMRPDetailEntity> result = _mPractSkillsBo.GetCMRPDetailByGroup(parameters[0], bool.Parse(parameters[1]));

            return PartialView("CMRPDetail", result);
        }

 

The Routes

        public static void RegisterRoutes(RouteCollection routes)
        {
            routes.IgnoreRoute("{resource}.axd/{*pathInfo}");


            routes.MapRoute("Default", "{controller}/{action}/{id}",
                new {controller = "Home", action = "Index", id = UrlParameter.Optional}
                );

            routes.MapRoute(
                "DeleteUser",
                "{controller}/{action}/{id}/{guid}",
                new {controller = "Account", action = "Delete"});

        }

Ianko
Telerik team
 answered on 19 Feb 2018
2 answers
276 views

Hey

 

DropDownList component don't fire the change event when using keyboard enter after the list is filtered.

 

Reproducible here: https://demos.telerik.com/aspnet-mvc/dropdownlist/events

1. Click on the dropwdown list to access filter input

2. Search for "Item"

3. use keyboard arrow down to select Item 2

4. hit keyboard enter.

The change event is not fired.

 

If you do the same, but skip step 2, the change event is fired.

Dan-Petter
Top achievements
Rank 1
 answered on 19 Feb 2018
3 answers
304 views
Does the capability exist to only have a hierarchy grid available for specific records.  Basically is there a way to dynamically set the .ClientDetailTemplateId?
Eduardo Serra
Telerik team
 answered on 16 Feb 2018
1 answer
132 views

I have a 10 column grid with a hierarchy grid consisting of only 2 columns. By default it seems the hierarchy grids fills the space of the parent grid and thus the 2 columns are stretched across the entire width.

I have tried explicitly setting a width for each column of the hierarchy grid but they do not seem to have any effect whatsoever. 

Is there a way to set hierarchy grid total width or be able to set column widths of the hierarchy grid?

Viktor Tachev
Telerik team
 answered on 16 Feb 2018
2 answers
134 views
How can I set aggregates values in header mvc grid for every column like on a the picture? Thanks
Olexandr
Top achievements
Rank 1
 answered on 16 Feb 2018
7 answers
197 views

Dear Telerik team.

Would it be possible for you to localize the five messages of the color picker widget?

It is pretty annoying to handle several languages by setting the color picker message option on every usage.

Or tell us what changes in the messages file are needed to have only one place to modify.

Kind regards

Bernd

Bernd
Top achievements
Rank 2
 answered on 16 Feb 2018
4 answers
934 views

I understand the Databound event for the MVC grid is supposed to fire after the grid is fully rendered. But I'm seeing the databound event fires, then my read action fires, after which the databound event doesn't fire again. Below is my code for the grid. Anyone have an idea of what I'm doing wrong? Thanks in advance.

 

@(Html.Kendo().Grid<dynamic>()
            .Name("StandardTable_" + Model.InstanceKey)
            .Resizable(resize => resize.Columns(true))
            .Pageable(pageable => pageable
                .Input(true)
                .Refresh(true)
                .PageSizes(true)
                .ButtonCount(5)
                .Enabled(true)
                .Numeric(false)
            ).ColumnMenu()
            .Sortable(s => s.SortMode(GridSortMode.MultipleColumn).AllowUnsort(true))
            .Filterable()
            .Groupable()
            .Reorderable(reorder => reorder.Columns(true))
            .Scrollable(e => e.Enabled(true).Virtual(true).Height("auto"))
            .EnableCustomBinding(true)
        .Events(e => e
            .DataBound("pan.dashboardsetup.gridDatabound(" + Model.dashFeed?.FeedKey + "," + Model.InstanceKey + ")")
            .ColumnMenuInit("pan.dashDatapart.menuInit")
            )
        .DataSource(d => d
            .Ajax()
            .PageSize(pageSize)
            .Read(read => read
                .Action("StandardTableRead", "Feeds").Data("pan.dashDatapart.StandardGridRead(" + Model.dashFeed?.FeedKey + "," + Model.InstanceKey + ")")
            )
        )
)
Chris
Top achievements
Rank 1
 answered on 15 Feb 2018
Narrow your results
Selected tags
Tags
Grid
General Discussions
Scheduler
DropDownList
Chart
Editor
TreeView
DatePicker
ComboBox
Upload
MultiSelect
ListView
Window
TabStrip
Menu
Installer and VS Extensions
Spreadsheet
AutoComplete
TreeList
Gantt
PanelBar
NumericTextBox
Filter
ToolTip
Map
Diagram
Button
PivotGrid
Form
ListBox
Splitter
Application
FileManager
Sortable
Calendar
View
MaskedTextBox
PDFViewer
TextBox
Toolbar
Dialog
MultiColumnComboBox
DropDownTree
Checkbox
Slider
Switch
Notification
Accessibility
ListView (Mobile)
Pager
Security
ColorPicker
DateRangePicker
Wizard
Styling
Chat
DateInput
MediaPlayer
TileLayout
Drawer
SplitView
Template
Barcode
ButtonGroup (Mobile)
Drawer (Mobile)
ImageEditor
RadioGroup
Sparkline
Stepper
TabStrip (Mobile)
GridLayout
Badge
LinearGauge
ModalView
ResponsivePanel
TextArea
Breadcrumb
ExpansionPanel
Licensing
Rating
ScrollView
ButtonGroup
DropDownButton
CheckBoxGroup
NavBar
ProgressBar
QRCode
RadioButton
Scroller
Timeline
TreeMap
TaskBoard
OrgChart
Captcha
ActionSheet
Signature
DateTimePicker
AppBar
BottomNavigation
Card
FloatingActionButton
Localization
MultiViewCalendar
PopOver (Mobile)
Ripple
ScrollView (Mobile)
Switch (Mobile)
PivotGridV2
FlatColorPicker
ColorPalette
AIPrompt
PropertyGrid
ActionSheet (Mobile)
BulletGraph
Button (Mobile)
Collapsible
Loader
CircularGauge
SkeletonContainer
Popover
HeatMap
Avatar
ColorGradient
CircularProgressBar
SplitButton
StackLayout
TimeDurationPicker
Chip
ChipList
DockManager
ToggleButton
Sankey
OTPInput
ChartWizard
SpeechToTextButton
InlineAIPrompt
TimePicker
StockChart
RadialGauge
ContextMenu
ArcGauge
AICodingAssistant
SmartPasteButton
PromptBox
SegmentedControl
LLM Kit
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?