Telerik Forums
Kendo UI for jQuery Forum
1 answer
88 views
Will there be a support for FF and Opera Mobile?
The tab-strip does not work properly.
Georgi Tunev
Telerik team
 answered on 13 Feb 2012
0 answers
132 views

Multiple kendo controls included in the same page are not rendering themselves.
I am trying to include a Panel Bar within a Splitter panel.
But, with the below code only the Splitter renders and the Kendo panel bar is not seen.
If i move the KendoPanelBar code ahead, then the PanelBar is seen and not the splitter.
Please suggest ..

<script type="text/javascript">
    $(document).ready(function () {
        $("#splitter").kendoSplitter({
            panes: [
                { collapsible: true, min: "100px", max: "100px" },
                { collapsible: true}],
            orientation: "horizontal"
        });

        $("#panelBar").kendoPanelBar();
       
    });   
</script>

Arvind
Top achievements
Rank 1
 asked on 13 Feb 2012
0 answers
172 views
Hi

I'm using kendo grid with odata.
My datasource is classical (many options have been tested). Something like:

var

myDS = new kendo.data.DataSource({

type: "odata",

transport: {

read: { url: "http://localhost:2000/Ajax/Lists/PassageDataService.svc/Passages/"  

 //, dataType: "json"
}},

schema: {

data: "d.results", model: {id: "SeqId", fields: myObject}

},

pageSize: 10,

serverPaging: true,

serverFiltering: true,

serverSorting: true,

sort: { field: "SeqId" }

});


When i Try to add objet to my data source with

 myDS.add(myObject);

the object is added (I can see it on firebug), all goes fine but when i look at the page the new object is not on the kenod grid and firebug show an error "d.d is not defined"

If i use Json instead of odata, add object works fine but the rest is broken (pagging filtering etc with dataservice).

Anyone has every tried to add row on buton click event to kendo grid using odata and dataservice?

thanks,
Laurent

Fdg
Top achievements
Rank 1
 asked on 13 Feb 2012
0 answers
144 views
I use editing Grid. Grid is like that.

Person | month | target
John | 2012/01 | 10
John | 2012/02 | 12 
John | 2012/03 | 11 
John | 2012/04 | 15 
John | 2012/05 | 15 
...

When I set  '9' on John 2012/02 and 2012/04 target,

Person | month | target
John | 2012/01 | 10
John | 2012/02 | 9 
John | 2012/03 | 11 
John | 2012/04 | 9
John | 2012/05 | 15 
...

And click save button , Grid shows like that,

Person | month | target
John | 2012/01 | 10
John | 2012/01 | 10 
John | 2012/03 | 11 
John | 2012/01 | 10 
John | 2012/05 | 15 
... 
 
Update has succeeded and the data Server responsed was correct. 
Why this situation happen?
 
Source is like that.

var grid = $("#grid2").kendoGrid({
    dataSource: {
        transport: {
            read: {
                url:"getList.asp",
                dataType: "json" ,
                data : {
                    'entity': 'goal',
                    'termStartStart' : '2011/04/01',
                    'empCd' : 'sato',
                    PG : 1
                }
            },
             update: {
                url: "update.asp",
                dataType: "json" ,
                type : 'POST',
                data : {
                    entity : 'goal',
                            's_termStartStart' : '2011/04/01',
                    's_empCd' : 'sato',
                    's_PG' : 1
                }
            }
        },
        schema : {
            data : function(data){
              
                var new_data = [];
                return new_data;
            },
            model: {
                id: "reportId",
                fields: {
                    reportId : {type : 'number', editable : false},
                    empName: { editable: false },
                    termStart: { editable: false },
                    volume: {
                        type: "number",
                        validation: {
                                    max : { value : 1000,  message : "目標訪問数は1000以内にしてください"}
                         }
                    }
                }
            }
             
        }
    },
    height: 380,
    sortable: true,
    editable: true,
        toolbar: [
            { name: "save", text: "保存する" },
            { name: "cancel", text: "キャンセル" },
            { name : "年度", template :  ' <input id="input" />' }
        ],
        columns: [ {
                field: "empName",
                width: 90,
                title: "社員"
            } , {
                field: "termStart",
                width: 40,
                title: "月"
            } , {
                field: "volume",
                width: 35,
                title: "目標訪問数",
                format: "{0:d}"
            }
        ]
});


Taiji
Top achievements
Rank 1
 asked on 11 Feb 2012
1 answer
98 views
I use Drid editing.

dataSource: {
                            transport: {
                                read: {
                                    url:"getList.asp",
                                    dataType: "json" ,
                                    data : {
                                        'entity': 'XXX'
                                    }
                                },
                                 update: {
                                    url: "update.asp",
                                    type : 'POST',
                                    data : {
                                        entity : 'XXX'
                                    }
                                }
                            },
                            schema : {
                                data : function(data){
                                    var new_data = [];
 
                                   /* make data for grid from remote data */
                                     
                                    return new_data;
                                },
                                model: {
                                    id: "id",
                                    fields: {
                                        amp_name: { editable: false },
                                        termStart: { editable: false },
                                        volume: {
                                            type: "number",
                                            validation: {
                                                        max : { value : 1000,  message : "XXX"}
                                             }
                                        }
                                    }
                                },

  toolbar: [
                            { name: "save", text: "save" },
                            { name: "cancel", text: "cancel" }
                        ],
                        columns: [ {
                                field: "empName",
                                width: 90,
                                title: "社員"
                            } , {
                                field: "termStart",
                                width: 40,
                                title: "month"
                            } , {
                                field: "volume",
                                width: 35,
                                title: "target",
                                format: "{0:d}"
                            }
                        ]

After click button "save" and update ,  error happened.
See   argument "data" in  "data : function(data){ "  by Firebug,
 data is string object.

When first loading, the data is json object.
Server responses same text data, first loading and update's post method.

Taiji
Top achievements
Rank 1
 answered on 11 Feb 2012
2 answers
113 views
I have set my culture to use EN-GB format 

$("#datePicker").kendoDatePicker(
             {
                 change: function () {
                      
                     $("#CampaignModel_RequiredSendDate").val(kendo.toString(this.value(), 'd'));
                 }
             });

I have a change event that updates a hidden field. Visually I can see the calendar selecting the right format however the hidden field is always using the US format.

Do I need to something different to get this to work or is there a bug with the control?
Shane P
Top achievements
Rank 1
 answered on 10 Feb 2012
0 answers
110 views
Does the Grid widget store an entire cell value, with the option to show a certain number of decimal points?

In other words, if a value in the database was 53.858708069844, would that entire value be in memory, and then I can choose to display it as 53.86 or 53.9 or even 54? I ask this for exporting purposes; I would need to export the entire values to a spreadsheet, even though the website itself would only show the number of decimal points the user selected. I would imagine it pretty easy to store the actual value as an attribute in the <td> tag.
Angelo
Top achievements
Rank 1
 asked on 10 Feb 2012
1 answer
254 views
I am attempting to use the kendoui window in an mvc3 project I am working on.

Scenario is I am wanting to use the window as nice way to insert data and validate the data clientside before sending back to the server.

The window contains it's own form and I am trying to post the data back to the server via ajax.

$("#submit-form").click(function () {
      console.log("called");
      var form = $("#Send");
      $.validator.unobtrusive.parse($(form));
      var val = form.validate();
      if (val.valid()) {

The form isn't anything special standard asp.net mvc stuff

<div>
                     @Html.LabelFor(model => model.CampaignName)
                     @Html.EditorFor(model => model.CampaignName)
                     @Html.ValidationMessageFor(model => model.CampaignName)
                 </div>


I have tried added reference to the validation scripts
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

However......everytime I try submit the form validation is always telling me its valid even tho I know its not.

Is there something special I need to do so I can enable clientside validation in the window?

Daniel
Telerik team
 answered on 10 Feb 2012
1 answer
113 views
I have a chart that is using a datasource which queries a web service based on a time range selected by the user.  The web service is set to limit the results to a maximum of 800 values.  In IE9 it is no problem and the request duration for a query takes 203ms with a content length of 100264.  The same query in IE8 results in a a script error on the page "A script on this page is causing Internet Explorer to run slowly".  Is there any guidance on datasource response size limitations with IE8?
Daniel
Telerik team
 answered on 10 Feb 2012
1 answer
223 views
Hi,

I am evaluating Kendo ui by building a prototype in work.  I am running into an issue where I can't seem to reuse datasources  in global scope.  I was hoping to define my datasources once and instantiate 1 remote datasource for each data model the app needs.  My content loads and unloads (via ajax) inside a div and widgets (mostly grids) are swapped in and out and bind to whatever datasources they need.  I expected the instances of these widgets would be cleaned up as the content pane is being destroyed and re-created.  It seems that even though the DOM elements are being removed the grid instances are remaining. So every time the same content pane is loaded in the same session, a new instance of the grid is created and never goes away. When the user visits the same content pane over and over he creates more and more invisible grid instances.   I proved this by putting break points in the refresh function of the grid. Grids that are no longer visible are still listening for data updates and drawing on every datasource change event. These objects don't go away until I refresh the page or close it.   It would seem that datasources hold references to the widget objects they are bound to and prevent them from getting picked up by the garbage collector (I tested several browsers all with the same results).

The only way I can seem to fix this is to take the datasources out of the global space.  If I put the creation of the datasource in the content pages with the widgets then the datasources and widgets are cleaned up the next time the user loads the content pane.  But the problem is now I have to rewrite the datasource signature for every content page that looks at the same data.   

I guess my first question is:  Is there some trick I'm missing for using global datasources?  Is there some kind of resource flush that I didn't see in the documentation?

If not is there a best practice for sharing datasources with widgets that care created and destroyed on the same page?  (single page application)



Thanks 
Mike V-C

Mike
Top achievements
Rank 1
 answered on 10 Feb 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
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?