Telerik Forums
UI for ASP.NET MVC Forum
1 answer
134 views
Hi there,

I've read in places that the grid will automatically use Kendo Validators inside the add / edit popup, even if this is a custom form - is there any way to prevent this behaviour, so that it will just use standard MVC validation controls?

For complicated reasons, the decision has been made not use Kendo Validators inside our current MVC application - meaning that the validators on our normal forms look very different at present from those used on the grid popups.

If this behaviour can't be prevented, can the Kendo Validators be easily styled to look the same as the default MVC controls - at the minute, all we would like is a simple line of text to appear beside the control.

Thanks,

Paul
Daniel
Telerik team
 answered on 04 Sep 2014
1 answer
127 views
hello everyone

can u tell me please if their is a way (or another MVC extension) to group by columns on grid

and get statics for each group ?
- how much rows
- average for each group

i saw the Grid / Aggregates extension
but it seems like the group are constant (i want dynamic grouping like in the basic grid)

i have attach a picture that explain where i want to see summery 

thank u very much
Petur Subev
Telerik team
 answered on 03 Sep 2014
1 answer
127 views
hello

can u please tell me i can populate grid columns only with certain conditions 

something like this 

   columns.Bound(c => c.ID).Title(ViewBag.SearchBy+" id").HtmlAttributes(new { @class = "search_by_id" });
            columns.Bound(c => c.Clicks);
if(1>0)
{
            columns.Bound(c => c.Conversions).Title("Conversions");
            columns.Bound(c => c.ConversionRate).Title("Conversion rate").Format("{0:p1}"); ;
}

thank u
Dimiter Madjarov
Telerik team
 answered on 03 Sep 2014
1 answer
259 views
hello everyone

can u please tell me if i can populate grid columns only with certain conditions 

something like this 

   columns.Bound(c => c.ID).Title(ViewBag.SearchBy+" id").HtmlAttributes(new { @class = "search_by_id" });
            columns.Bound(c => c.Clicks);
if(1>0)
{
            columns.Bound(c => c.Conversions).Title("Conversions");
            columns.Bound(c => c.ConversionRate).Title("Conversion rate").Format("{0:p1}"); ;
}

thank u
Dimiter Madjarov
Telerik team
 answered on 03 Sep 2014
4 answers
188 views
I am not sure how to get the values from the sortable object on the post call.  Does the Viewmodel property have to match the <li> name or I the sortible object name 



               @(Html.Kendo().Sortable()
                        .For("#StandardsDirectives")
                        .ConnectWith("#MyStandardsDirectives")
                        .PlaceholderHandler("placeholder")
                        .Cursor("url('" + Url.Content("~/Content/Curser/closedhand.cur") + "'), default")
                    )

OR

                                       @if (!Equals(Model.Document, null))
                                        {
                                            foreach (var standard in Model.Document.MyStandardsDirectives)
                                            {
                                                <li class="list-item">@Html.Label(standard.Name)</li>
                                            }
                                        }
steve
Top achievements
Rank 1
 answered on 02 Sep 2014
1 answer
101 views
Hi,
I'm working on dynamic grid loaded with bounded column based on datatable definition passed in model, and grid is populated by JSON with dynamic Linq. I have a problem with setting the filtering. Sorting and grouping works just fine, but I don't know why for int type I get list which suggests it's a string. Then when filter for example the main Id with IsEqual I get an error: An exception of type 'System.ArgumentException' occurred in System.Core.dll but was not handled in user code. Then I get right results, but icon is showing that it's still searching. What could be tha cause, and how can I fix it? 
Daniel
Telerik team
 answered on 02 Sep 2014
1 answer
200 views
How do you get the scheduler to display a validation message in red next to the control that has the error?  I'm getting an alert with the errors to display per an example but that doesn't look very professional.  See attached image. 
Alexander Popov
Telerik team
 answered on 01 Sep 2014
8 answers
321 views
I have a gantt chart now rendering on my MVC page without error.  I have plumbed in the IQueryable for the Tasks Datasource but have not touched the Dependencies Datasource.  The Gantt is rendering blank.

Does the Gantt chart need the Dependencies Datasource to be wired up?

View:
@(Html.Kendo().Gantt(Of IMS_2.Models.Task, IMS_2.Models.Dependency)().Name("gantt") _
  .Columns(Sub(columns)
                   columns.Bound(Function(c) c.ID).Title("ID").Width(50)
                   columns.Bound("title").Editable(True).Sortable(True)
                   columns.Bound("start").Title("Start Time").Format("{0:MM/dd/yyyy}").Width(100).Editable(True).Sortable(True)
                   columns.Bound("end").Title("End Time").Format("{0:MM/dd/yyyy}").Width(100).Editable(True).Sortable(True)
           End Sub) _
        .Views(Sub(views)
                       views.DayView()
                       views.WeekView(Function(weekView) weekView.Selected(True))
                       views.MonthView()
               End Sub) _
      .DataSource(Function(d) d.Model(Sub(m)
                                              m.Id(Function(f) f.ID)
                                              m.ParentId(Function(f) f.ParentID)
                                              m.OrderId(Function(f) f.OrderID)
                                              m.Field(Function(f) f.Expanded).DefaultValue(True)
                                      End Sub) _
                                      .Read("ReadTasks", "Home")
                                     ))

Many thanks
Jason
Top achievements
Rank 1
 answered on 01 Sep 2014
7 answers
447 views
Hi,

I am using Grid popup editing to add new entries, i am getting an issue when pressing Save on new add multiple times before popup disappears it adds multiple entries to the grid. Is there a way to disable Save button once a request has been send to server to create new entry so it does not send multiple times new entry.

This Happens on IE8 only


Waiting for response,

Taha Khan 



Alexander Popov
Telerik team
 answered on 01 Sep 2014
2 answers
362 views
Dear support team,

I have a grid which registeres an error event. When the model validation fails, the event is correctly triggered and I get a messagebox.

Next i tried to insert a dummy javascript (<script>alert('aaa')</script>) into the textbox.
MVC reacts on it with an error 500 ('a potential malicious request was detected')
However the onError event function is not triggered now.

@(Html.Kendo().Grid<MyViewModel>()
      .Name("kendoGrid")
      .DataSource(dataSource => dataSource
          .Ajax()
          .Model(model => {              model.Id(i => i.Id);          })
          .Create(create => create.Action("_Create", "Controller"))
          .Read(read => read.Action("_Index", "Controller"))
          .Update(update => update.Action("_Update", "Controller"))
          .Destroy(destroy => destroy.Action("_Delete", "Controller"))
          .Events(events => events.Error("onError")) // <----------- Register Error Event
      )
      .ToolBar(toolbar => toolbar.Create().Text("New"))
      .Editable(editable => editable.Mode(GridEditMode.InLine))
      .Columns(column => {
          column.Bound(i => i.Name);
          column.Command(cmd => {
              cmd.Destroy();
              cmd.Edit();
          });
      })
      )
 
<script type="text/javascript">
    function onError(e) {
                          alert("test");
        if (e.errors) {
            var message = "The folowing errors occured:\n";
            $.each(e.errors, function(key, value) {
                if (value.errors) {
                    message += value.errors.join("\n");
                }
            });
            bootbox.alert(message);
        } else {
            bootbox.alert("An unknown error occured");
        }
    }
</script>


Any ideas what I've done wrong here?

btw my version is 2014.Q2

A second issue is, that I don't get a bootbox window. Instead I get a standard message box. Perhaps you have a clue on that too.

thank you,
Chris

Christian
Top achievements
Rank 1
 answered on 01 Sep 2014
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
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
SmartPasteButton
PromptBox
SegmentedControl
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?