Telerik Forums
Kendo UI for jQuery Forum
0 answers
85 views

Hi,

I am Using grid control from Telerik UI For asp.net MVC, Grid works fine in loading the data, but the problem come when we try to edit or create a new record with in  the  grid. When I try to edit the grid Drop down columns as shown as a text box with ID values.

 

There are couple more problems 

1. Filter is not working as expected.

2. Filter is not populating data and not able to select the items from dropdown list.

3. add new and click on update button the controller is not getting value that were submitted.

4. on editing and saving a record the action method is  not fired.

 

please help with above issues.

 

Please fin the attached file for more info.

 

 

 

Harigopal
Top achievements
Rank 1
 asked on 24 Feb 2017
1 answer
355 views

I have a grid I am using with Angular 1, and I would to have a non-editable column.  The documentation and several examples(non-angular) seem to say setting the editable property to either a function that returns false or setting it to false directly should accomplish this, but for some it does not.  The configuration I am using is pretty basic, and I can't seem figure out what I am doing wrong.  I have put stops on the anonymous function, and it never gets called when that cell goes into editing mode.

 

self.gridConfiguration = {
      dataSource: datasource ,
      toolbar: ["create","save"],
      selectable:true,
      sortable:true,
      editable:true,
      navigatable: true,
      columns: [
          {field: "projectName", title: "Title", editable: function(dataItem){return false;}}
]};
Dimiter Topalov
Telerik team
 answered on 24 Feb 2017
2 answers
58 views

I'm tyring bring up a custom Editor with only a few fields using the template on popup attribute of the grid, however my grid has data in it with a period, example "table.field".  The data passest to the window, but when I reference it I'm not getting what I expected.  I had anticipated that the data would need to be referenced like ['table.field'], however when I try to do that I get an error.  If I use "['table.field']" I get the actual text instead of the represented value in the grid.

 

Here is a dojo of my example:  http://dojo.telerik.com/@pnd@qad.com/oYIXU

If you hit the report button, you can see that it is presenting the screen with the table.field name but not the represented values.

Any help would be greatly appreciated.

Stefan
Telerik team
 answered on 24 Feb 2017
3 answers
269 views

Hi, Is there a way to add a formula to spreadsheet X that references another kendo spreadsheet on the same page (spreadsheet Y)? If there is, can you send a small example please?

Thanks

Marc

 

Ivan Danchev
Telerik team
 answered on 24 Feb 2017
3 answers
357 views
I have a div called UserInfo. When a user clicks a button, this div should be the window that pops over. The code to do this is:
$("#AddLegendItem").on("click", function () {
var dialog = $("#UserInfo");
dialog.data("KendoWindow").open();
});
However, it errors out on the second line of the anonymous function saying "unable to get property of 'open' of undefined or null reference.

I've read through the forums and one person had some duplicate code but I do note. I'm not sure where to go at this point. Ideas?

Thanks!
Kiril Nikolov
Telerik team
 answered on 24 Feb 2017
2 answers
407 views

Hi,

Is there any nice way to use a Kendo UI slider to select a scaling factor? Those typically go from 0.1 to 1.0 and then to 4.0 or 5.0 - with 1.0 (=100%) always in the middle and you might scale with other steps below 1.0 than above. But most import would be to have 1.0 or 100% in the very middle.

Using a normal slider with min=0.1 and max=4.0 does not really look nice to scale a view, component size, graphic or whatever.

Any hints?

Best regards,
Ricky

Ricky
Top achievements
Rank 2
 answered on 24 Feb 2017
1 answer
1.0K+ views

I have a grid on a page. One of the columns is for a person's middle initial. In my C# code, I have it defined as follows:

        [StringLength(1, ErrorMessage = "The middle initial cannot exceed 1 character")]<br>        [Display(Name = "Middle")]<br>        public string MiddleInitial { get; set; }<br>

 

In the grid, if I enter something like "LLL" for the middle initial, I get a error in the grid telling me I've enter too many characters. This is what I would expect. However, if I enter something like " L" (notice the space before the L), the grid gives me no errors. But, then, when the row is saved I get a server validation error. because of too many characters.

Why isn't the Kendo Grid handling the second scenerio correctly, and how can I work around this?

Tsvetina
Telerik team
 answered on 24 Feb 2017
11 answers
677 views
Hi,
I would like to allow the user to choose the TimeZone for viewing the scheduled events. So I put on the page a dropdown list populated with the values returned by .Net method TimeZoneInfo.GetSystemTimeZones and when the user change its value I reflect it to the scheduler control with this code:

function timeZoneChanged(e) {
            var scheduler = $('#scheduler').data("kendoScheduler");
            scheduler.options.timezone = this.value();
            scheduler.dataSource.read(); // (I also tried refreshing the scheduler data source)
        }

But nothing happens... Am I doing some mistake here or it is not possible to modify the timezone of a scheduler after the initialization?

Thanks,
Stefano Tassara
Brad Falk
Top achievements
Rank 1
 answered on 23 Feb 2017
3 answers
122 views
I'm very new to MVVM and also to Kendo. I was trying to use the SPA examples to build something I already had working another way. The SPA "Getting Started" examples use the concept of Layouts and Views together which looks useful. Here's what I'm trying to do: 

Iterate over a simple JSON array in my viewmodel to emit a bound list of checkboxes. I originally got it working using the kendo.template() method and then setting the HTML results of that to the .html() of my target div. That works fine. But if I try and do this using a Layout and a View, (using layout.showIn() method) it just spits out my template tags and doesn't actually do anything. Here's a JSFiddle showing this:

http://jsfiddle.net/6Nsx8/1/

Any input is appreciated. 

Thanks,
Reagan

PS: I  have the sushi source code up for reference and I'm pretty sure I'm doing things right, but I can't be sure. 
Robert
Top achievements
Rank 2
 answered on 23 Feb 2017
2 answers
322 views

Hello, I'm trying to make the kendo map full screen with the following CSS:

#map {
            top: 0;
            bottom: 0;
            left: 0;
            right: 0;
            height: 100%;
            position: absolute !important;
            z-index: 9;
            background-color: #ccc;
        }

 

But, when I zoom and slide the map around, I get "whitespace" on the sides that doesn't go away. I've attached a picture of what I see. 

Is there a better way of doing this? 

Thanks! 

Jason
Top achievements
Rank 1
 answered on 23 Feb 2017
Narrow your results
Selected tags
Tags
Grid
General Discussions
Charts
Data Source
Scheduler
DropDownList
TreeView
MVVM
Editor
Window
DatePicker
Spreadsheet
Upload
ListView (Mobile)
ComboBox
TabStrip
MultiSelect
AutoComplete
ListView
Menu
Templates
Gantt
Validation
TreeList
Diagram
NumericTextBox
Splitter
PanelBar
Application
Map
Drag and Drop
ToolTip
Calendar
PivotGrid
ScrollView (Mobile)
Toolbar
TabStrip (Mobile)
Slider
Button (Mobile)
Filter
SPA
Drawing API
Drawer (Mobile)
Globalization
LinearGauge
Sortable
ModalView
Hierarchical Data Source
Button
FileManager
MaskedTextBox
View
Form
NavBar
Notification
Switch (Mobile)
SplitView
ListBox
DropDownTree
PDFViewer
Sparkline
ActionSheet
TileLayout
PopOver (Mobile)
TreeMap
ButtonGroup
ColorPicker
Pager
Styling
MultiColumnComboBox
Chat
DateRangePicker
Dialog
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Effects
Accessibility
PivotGridV2
ScrollView
BulletChart
Licensing
QRCode
ResponsivePanel
Switch
Wizard
CheckBoxGroup
TextArea
Barcode
Breadcrumb
Collapsible
Localization
MultiViewCalendar
Touch
RadioButton
Stepper
Card
ExpansionPanel
Rating
RadioGroup
Badge
Captcha
Heatmap
AppBar
Loader
Security
TaskBoard
Popover
DockManager
FloatingActionButton
CircularGauge
ColorGradient
ColorPalette
DropDownButton
TimeDurationPicker
ToggleButton
TimePicker
BottomNavigation
Ripple
SkeletonContainer
Avatar
Circular ProgressBar
FlatColorPicker
SplitButton
Signature
Chip
ChipList
VS Code Extension
AIPrompt
PropertyGrid
Sankey
Chart Wizard
OTP Input
SpeechToTextButton
InlineAIPrompt
StockChart
ContextMenu
DateTimePicker
RadialGauge
ArcGauge
AICodingAssistant
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?