Telerik Forums
Kendo UI for jQuery Forum
3 answers
170 views
Hi, I have a grid with edition inline, with a problem.
When I edit a row, later save changes, it's working fine, but when I try edit the same row again, it gets an error, without none error message.
What can be happening?

Igor
Top achievements
Rank 2
 answered on 16 May 2012
0 answers
109 views
if i want to use my remote data for binding the grid, what is the schema format to be followed for getting the data.

1. Why remote-data sample is not  working with our remote data  binding?
2. type: "odata"  is it compulsary?
3. Odata services and kendo services only will work ?

Srinivasulu
Top achievements
Rank 1
 asked on 16 May 2012
0 answers
96 views
Hi there,

please clarify with me,

I need to show Chart value with category name in a same line.

Is there possible to do this.

Thanks,
Rajesh.C
Rajesh
Top achievements
Rank 1
 asked on 16 May 2012
0 answers
59 views
Hello,

when we open the window page scrolling position was in middle but after maximize and minimize the window page is scroll up, is there any solution in window ui like after minimize the window page set scrolling position as before maximize the window.

thanks
Wajahat
wajimam
Top achievements
Rank 1
 asked on 16 May 2012
0 answers
85 views
Hi,

If in grid I have editable and not editable fields, how to display which fields are editable and which are not? 
Sergey
Top achievements
Rank 1
 asked on 16 May 2012
0 answers
69 views
Hi,
We are using filter in data grid.I want to know where exactly the filter data will be stored.because when i tried dataSource._data it is giving me the whole data not the filtered one.

Thanks in advance
Regards
Deep
Deep
Top achievements
Rank 1
 asked on 16 May 2012
8 answers
765 views
Hi there,

I was using the Scroll View which was working perfectly on the released version kendo ui, but after changing my project to use the latest build ( 2012.1.503) it now seems like the Scroll View is not initialized properly when it is created in javascript. 

So when I call:
$("#MenuScrollView").kendoMobileScrollView();

It seems to be initialized partially however it cannot be scrolled horizontally. The page indicators at the bottom are not visible either.

When I resize the page in a normal browser the scroll view starts working perfectly though (Unfortunately on mobile devices I can't do this obviously).

I tried calling $("#MenuScrollView") .resize() and refreshing the scroll view but that doesn't seem to help.

Out of interest I also can't seem to use the content() method from documentation as I get a script error saying it doesn't exist.

Thanks in advance!

Petyo
Telerik team
 answered on 16 May 2012
2 answers
152 views
I have, what I think is a simple MVVM example, where I can't get the displayed value to update. I think there's something very simple I must be missing here.

There's a demo at: http://jsfiddle.net/BrianVallelunga/UzLED/

Basically, I have a view model with a date. I have buttons that change the date. Finally, I have a span bound to a function that formats the date. For some reason the formatted value never changes, despite the date itself changing. Any thoughts?
Atanas Korchev
Telerik team
 answered on 16 May 2012
5 answers
445 views
So here is the problem.

I have a grid which need to make an update through POST and not GET. SO I am doing this on Save event. Everything works fine with inline editing. But with PopUp editing I do not get referance to model. So in function " save: function (e)" below e.model is undefined. However it comes up fine in case of inline.

If there is better way to update the drid through POST then I am open to it.

here is the code:

 dataSource = new kendo.data.DataSource({
                transport: {
                    read: {
                        url: URL,
                        dataType: "jsonp"
                    },
                    update: {
                        url: "",
                        dataType: "jsonp"
                    },
                    destroy: {
                        url: "",
                        dataType: "jsonp"
                    },
                    create: {
                        url: "",
                        dataType: "jsonp"
                    },
                    parameterMap: function (options, operation) {
                        if (operation !== "read" && options.models) {
                            return { models: kendo.stringify(options.models) };
                        }
                    }
                },
                batch: true,
                pageSize: 10,
                schema: {
                    model: {
                        id: "PROJECT_ID",
                        fields: {
                            "PROJECT_ID": { editable: false, nullable: true },
                            "PROJECT_NM": { validation: { required: true} },
                            "PROJECT_DESC": { validation: { required: true} },
                            "ACTIVE_IND": { type: "boolean" }
                        }
                    }
                }

            });

 

//GRID
$("#grid").kendoGrid({
                dataSource: dataSource,
                pageable: true,
                height: 400,
                toolbar: ["create"],
                columns: [
                            { field: "PROJECT_ID", title: "ID" },
                            { field: "PROJECT_NM", title: "Name" },
                            { field: "PROJECT_DESC", title: "Description" },
                            { field: "ACTIVE_IND", title: "Active" },
                            { command: ["edit"], title: " "}],
                editable: "popup",
                save: function (e) {

                    var g = $("#grid").data("kendoGrid");
                    var ds = g.dataSource;

                    var refresh = false;
                    //alert(kendo.stringify(e.model));
                    var url = "";
                    e.model.ACTIVE_IND = e.model.ACTIVE_IND ? 1 : 0
                         $.ajax({
                        url: url,
                        data: kendo.stringify(e.model),
                        type: 'POST',
                        processData: true,
                        async: false,
                        contentType: "application/json",
                        success: function (data, textStatus, jqXHR) {
                                    alert("Updated")  

                        },
                        error: function (xhr, status, error) {
                            alert("Failed to Update");
                        }
                    });

                }
            });

 

Alexander Valchev
Telerik team
 answered on 16 May 2012
1 answer
216 views
It seems that in the current implementation of MVVM:

  • A dependent property (calculated field) can easily use the value of another property of the view Model through the this.get(propertyName) syntax.
  • However, a new calculated field can't seem to utilize another property of the view Model IF THAT PROPERTY is ITSELF a Calculated Field.
Can someone confirm this for me or can someone tell me the way around.

See this JSFiddle for a demonstration

In the addNew() method.  I'm just trying to display the value of this.get("displayDropDownValue") which is, a calculated field.  It seems the only way to get this to work properly is to REPLICATE all of the code inside the displayDropDownValue field and put it in the new addNew() method as well.

Any suggestions?  Help?

Atanas Korchev
Telerik team
 answered on 16 May 2012
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
Drag and Drop
Application
Map
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
Chat
MultiColumnComboBox
Dialog
DateRangePicker
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Accessibility
Effects
PivotGridV2
Licensing
ScrollView
Switch
TextArea
BulletChart
QRCode
ResponsivePanel
Wizard
CheckBoxGroup
Localization
Barcode
Breadcrumb
Collapsible
MultiViewCalendar
Touch
RadioButton
Stepper
Card
ExpansionPanel
Rating
RadioGroup
Badge
Captcha
Heatmap
AppBar
Loader
Security
TaskBoard
Popover
DockManager
TimePicker
FloatingActionButton
CircularGauge
ColorGradient
ColorPalette
DropDownButton
TimeDurationPicker
ToggleButton
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
SmartPasteButton
PromptBox
SegmentedControl
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?