Telerik Forums
UI for ASP.NET MVC Forum
3 answers
288 views

Is there a way to localize SubMenu in Filter part of the ColumnMenu and in a more general way to localize all the ColumnMenu content.

It seem's that :

    <script src="~/lib/kendo/js/cultures/kendo.culture.fr-FR.min.js"
            type="text/javascript"></script>
   <script type="text/javascript">
    kendo.culture('fr-FR');
  </script>

has no effect, it is still in English.

Best regards.

Alex Hajigeorgieva
Telerik team
 answered on 03 May 2017
3 answers
2.4K+ views

How do I apply custom HtrmlAttributes to custom tookbar or command buttons in a TreeList (using the MVC wrapper) ?

 

on Kendo Grids, we have used this extensively to set styling and tooltips, e.g. 

.ToolBar(toolbar => { toolbar.Custom().Text("").HtmlAttributes(new { id = "btnClearFilters", @class = "pm-btnFilterClear", title = "Clear all filters" }); })

However, there appears to be no equivalent HtmlAttributes methods on the TreeList toolbar or custom command buttons. 

 

Thanks.

 

Stefan
Telerik team
 answered on 03 May 2017
5 answers
336 views

Is the a way when the PanelBar is expanded it just overlays existing Html instead of pushing it down?

 

Thanks

 

 

Greg
Top achievements
Rank 1
 answered on 02 May 2017
3 answers
1.3K+ views
Hi everyone,
I have a grid with a DateTime inside, I want to modify it with inCell editing.

This is my grid definition:

@(Html.Kendo().Grid(Model.row)
    .Name("grid")
    .Columns(columns =>
    {
        columns.Bound(l => l.LRId).Hidden();
        columns.Bound(l => l.StartDate).Format("{0:d}");
        columns.Bound(l => l.Amount);
 
        columns.Command(command => command.Custom("logicalDelete"));//.Click("udmAltDelete"));
    })
    .ToolBar(toolbar => toolbar.Create())
    .Editable(ed => ed.Mode(GridEditMode.InCell))
    .DataSource(ds => ds
        .Ajax()
        .Batch(true)
        .ServerOperation(false)
        .Model(model =>
        {
            model.Id(l => l.LRId);
        })
        )
)

When the grid show data correctly formatted with "Short date format" (look image attached: View.png),
but when i modify the date the grid modify the format (look image attached: Modify.png).

How can I have the same format for view and editing data?
Viktor Tachev
Telerik team
 answered on 02 May 2017
4 answers
252 views
I followed the ajax editting docs and I have server side validation error correctly getting displayed.  But the grid action still completes and the grid reverts back to view mode instead of staying in edit mode so I can correct the errors.

How do I get the grid to not update itself?
Boyan Dimitrov
Telerik team
 answered on 02 May 2017
1 answer
177 views

Hi,

I am trying to retain the edit mode of the cell in the Gantt Chart when the modelState has errors. 

<script>

function error(e) {
            var grid = $("#gantt").data("kendoGantt");
            grid.one("dataBinding", function(args) {
                e.preventDefault();
            });
            if (e.errors) {
                var msg = "";
                $.each(e.errors, function(key, value) {
                    if (value.hasOwnProperty("errors")) {
                        $.each(value.errors, function() {
                            msg += this + "<br />";
                        });
                    }
                });

             alert(msg);
            }
        }

</script>

 

@(Html.Kendo().Gantt<TaskGantt, TaskGanttDependency>()
    .Name("gantt")
    .DataSource(ds => ds
                        .Read(read => read
                            .Action("Tasks", "Home")
                        )
                        .Update(update => update
                            .Action("Update", "Home")
                        )
                        .Events(events => events
                          .Error("error")
                        )
                        .Model(m =>
                        {
                            m.Id(f => f.Id);
                            m.ParentId(f => f.ParentId);
                            m.OrderId(f => f.OrderId);
                            m.Field(f => f.Expanded).DefaultValue(true);
                        })
                    )
                    .DependenciesDataSource(ds => ds
                        .Read(read => read
                            .Action("Dependencies", "Home")
                        )
                        .Model(m =>
                        {
                            m.Id(f => f.DependencyId);
                            m.PredecessorId(f => f.PredecessorId);
                            m.SuccessorId(f => f.SuccessorId);
                            m.Type(f => f.Type);
                        })
                    )
                    
    .Columns(columns =>
    {
        columns.Bound("title").Editable(true).Sortable(true);
        columns.Bound("end").Title("End Time").Format("{0:MM/dd/yyyy}").Width(100).Editable(true).Sortable(true);  
    })
    .Views(views =>
    {
        views.WeekView(weekView => weekView.Selected(true));
        views.MonthView();
    })
    .Events(events=> events
        .DataBound("onDataBound")
    )
    .Height(500)
    .ShowWorkHours(false)
    .ShowWorkDays(false)
    .Snap(false)
    .Resizable(true)
    )

I have used the above code, but i am not able to retain the edit mode for a single cell when the ModelState has errors.I have attached the image of how the gantt chart should look after update is called and ModelState returns error.

Can i get to know if I have missed any thing or any other approach is there to carry on with the requirement.

 

Thanks

Dimitar
Telerik team
 answered on 02 May 2017
3 answers
159 views

Hi,

I want to ask if there is a way to set up kendo work offline mode with foreign key dropdown in asp.net mvc? 

I checked the demo for kendo work offline, but that demo is so simple with data structure, I wonder if someone can provide a work offline example that works with one or two foreign key dropdown column.

Thanks,

Ricky

Stefan
Telerik team
 answered on 01 May 2017
1 answer
409 views

I have a grid where I'm dynamically setting the columns at run time. However, I've come into a problem as the grid fails to show any data when the record set is quite large, in this case, 49K rows.

 

Has anyone else tried a similar approach with success?

Konstantin Dikov
Telerik team
 answered on 28 Apr 2017
4 answers
485 views

Using the most recent version of the trial for MVC UI and I'm unable to get some important features working, for example the gird filter ROW option and the Excel file export.  

Please advise should I have all features enabled in the trial and if not, how can I evaluate properly?

For example for both of these I get errors (Excel shown). When I take out the offending line it's all good.

   
        .Excel(excel => excel
        .FileName("Customer List.xlsx")
         )

     

Compilation ErrorDescription: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. 

Compiler Error Message: CS1061: 'Kendo.Mvc.UI.Fluent.GridBuilder<KendoUI.Sasco.Dashboard.Models.CustomerViewModel>' does not contain a definition for 'Excel' and no extension method 'Excel' accepting a first argument of type 'Kendo.Mvc.UI.Fluent.GridBuilder<KendoUI.Sasco.Dashboard.Models.CustomerViewModel>' could be found (are you missing a using directive or an assembly reference?)

If I refer to the kendo.mvc.dll in the distribution folder I get a license error - the reference that exists is to the example/sample folder that I downloaded.

Boyan Dimitrov
Telerik team
 answered on 28 Apr 2017
1 answer
460 views

Using Grid with MVC works fine, but unless I missed it, there does not seem to be many choices for formatting such as bold text, resizing/larger text;  And When using MVC to make a simple table, I had used the html action link so that clicking on an item takes the browser to a specific page.  Is this not supported in Grid?

for example, using this kind of html:   <td style="font-size: larger; font-weight: 700;">@Html.ActionLink("Click here to go to the page",  "index", "/home/index")</td>

If not, is there another kind of Grid item available that does?

 

Thanks

Tsvetina
Telerik team
 answered on 28 Apr 2017
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
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
SmartPasteButton
PromptBox
SegmentedControl
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?