Telerik Forums
UI for ASP.NET MVC Forum
3 answers
1.8K+ views
Is it possible to reload the grid through jQuery?
In Telerik Grid this could be done by firing the $("#grid").data("tGrid").AjaxRequest(), and all filters and sortings would stay as they were, but the records would be refreshed.
This would help my out tremendously, thanks!
Cristian
Top achievements
Rank 1
 answered on 29 Aug 2012
0 answers
152 views
Hi,

I have 2 dropdowns. A drop-down list and society people who work for the company selected. Change of the company, I want a filter for people who work for this company.
@(Html.Kendo().Grid((IEnumerable<EntrepriseViewModel>)ViewBag.Data)
    .Name("Grid")
    .Columns(columns =>
    {
        columns.Bound(p => p.Id).Visible(false);
        columns.ForeignKey(p => p.IdCompany, (System.Collections.IEnumerable)ViewBag.CompanyList, "IdCompany", "CompanyName").HtmlAttributes(new { id = "CompanyDdl" });
        columns.ForeignKey(p => p.IdEmploye, (System.Collections.IEnumerable)ViewBag.EmployeList, "IdEmploye", "EmployeName").HtmlAttributes(new { id = "EmployeDdl" });
        columns.Command(command => command.Edit()).Width(200);
    })
    .DataSource(dataSource => dataSource
        .Ajax()
        .Model(model => model.Id(p => p.id))
                        .Read(read => read.Action("Company_JSON_Read", "Home", new { id = Model.id }))
                        .Update(update => update.Action("Company_JSON_Update", "Home"))
  
    )
    .Editable(editable => editable.Mode(GridEditMode.InLine))
    )


IdEmployeList must change after IdCompany change but how ?

Thanks
pat
Top achievements
Rank 1
 asked on 29 Aug 2012
1 answer
166 views
I am evaluating several UI solutions (Kendo UI, Dhtmlx, ExtJs, jqGrid, etc.) so I created an example page to compare the performance of each solution.  The page contains tabs, form fields and three grids.  

Here's the example page using Kendo UI.

I've found Kendo UI to be very fast except for the grids.  On my beefy dev machine, this page renders in about 1.3 seconds.  On a low end machine (Win XP, IE 8, 1.86 GHz, 1 GB RAM), this page can take 5-8 seconds.  All of the other solutions are much faster than this. I was quite surprised by my findings especially since you tout the performance of these controls.

Here is my grid configuration:
@(Html.Kendo().Grid(Website.Prototype.Helpers.GetGridData(20))
                            .Name("Grid1")
                            .Columns(columns =>
                            {
                                columns.AutoGenerate(true);
                            })
                            .Sortable()
                            .Scrollable()
                            .Filterable()   
                            .DataSource(dataSource => dataSource       
                                .Ajax()
                                .ServerOperation(false)       
                             )
                        )

I have a few questions:
  1. Am I doing something wrong that would cause the performance issues?
  2. I thought using the MVC wrapper would give Kendo UI a leg up on the competition because the html needed to render the grid is generated on the server.  However, it seems that it is being regenerated on the client.  Is that correct?
  3. The grids are empty in Chrome and Firefox.  It is populated in IE.  Why is that?
  
Burke
Top achievements
Rank 1
 answered on 29 Aug 2012
0 answers
116 views
Please disregard...
Mike
Top achievements
Rank 1
 asked on 29 Aug 2012
2 answers
1.1K+ views
Hi,

I'm new to Kendo controls. We are replacing the existing MVC controls with Kendo Controls. 

The existing MVC controls looks like below
 @Html.DropDownListFor(model => model.value, new SelectList(ViewBag.list, "id", "label"))

I can able to load the data but not able to set the value like above. Please suggest to set the value. Below is my Kendo control. It has the Value property but doesn't allow model values in it.

    @(Html.Kendo().ComboBox()
                            .Name("ComboBox")
                            .DataTextField("label")
                            .DataValueField("id")
                            .BindTo(@ViewBag.list
    )
Marius
Top achievements
Rank 1
 answered on 29 Aug 2012
0 answers
228 views
Hi

I have a grid and a 5 kendoComboBox combobox on a form
When the user selects an item from the grid, I am setting the value of  kendo Combobox based on the values that were in the grid row.

i tried

// selects item if its text is equal to "test" using predicate function
combobox.select(function(dataItem) {
    return dataItem.text === "test";
});
with no result
here is my code
        var urlcountry = '@Url.Action("GetGeoGroupCountry", "GeoGroupPostalCode")';
        $.ajax({
            url: urlcountry,

            success: function (result) {
                debugger;

                var countryCombo = $("#GeoGroupCountryId").data("kendoComboBox");
                countryCombo.dataSource.add(result);

                countryCombo.select(function (dataItem) {
                    //dataItem argument is a ComboBox data item.
                    return dataItem.Text === e.sender.dataSource._data[0].GeoGroupCountryName;
                });
// e.sender.dataSource._data[0].GeoGroupCountryName) is 'United States of America'

The same no result

//                $.each(countryCombo.dataSource._data, function (key, value) {
//                    if (value.Text == e.sender.dataSource._data[0].GeoGroupCountryName) {
//                        countryCombo.select(key);
//                       return;
//                    }
//                });

            },
Thanks
Marius
Top achievements
Rank 1
 asked on 29 Aug 2012
1 answer
135 views
Is there a way to bind the datasource of a Chart to a Grid on the same page?  I am using MVC4 (Html Helpers) and right now have two partial views that take the same IEnumerable<T> so the both render the same data initially, but I am thinking about allowing sort and filter on the grid and it would be great if I can have the chart reflect those changes.

Perhaps it would be more easily accomplished if I was using JS to create the grid and chart, but doing it with the Html helpers is so nice and clean.

Any assistance is greatly appreciated.
Vladimir Iliev
Telerik team
 answered on 28 Aug 2012
4 answers
229 views
We want to build a grid having google like filtering, is it possible and what is the best way to wrap the code around the current kendo ui grid to accomplish this?  TIA.
e.g.
ASP.NET Ajax Grid Google Like Filtering
Tito
Top achievements
Rank 1
 answered on 28 Aug 2012
0 answers
123 views
nevermind
PAUL
Top achievements
Rank 1
 asked on 28 Aug 2012
5 answers
374 views
The attached sample project is based on your sample of submitting a grid in a form post along with other elements.  I've changed it to use a Popup edit mode to add records to the grid, and have specified a custom editor template for this popup.  It contains two comboboxes, the idea being that to add a product to the order, the user selects a category, and then the products combobox should be populated with the products linked to that category.  But the second combobox remains disabled and it's Read method never fires. (I've taken the code for the cascading from the Kendo demo for Cascading Comboboxes.)  Please advise why this does not work.
Mike
Top achievements
Rank 1
 answered on 28 Aug 2012
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
MultiColumnComboBox
Dialog
DropDownTree
Checkbox
Slider
Switch
Notification
Accessibility
ListView (Mobile)
Pager
ColorPicker
DateRangePicker
Security
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
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
DropDownButton
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
SegmentedControl
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?