Telerik Forums
Kendo UI for jQuery Forum
0 answers
188 views

Code:

$("#DropDownList1").change(function () {
   custCode
= $("#DropDownList1").val();

   $
("#titles").data("kendoDropDownList").dataSource.read(); //shows list Loading But Same Data Is present .
   $
("#titles").data("kendoDropDownList").refresh(); //NOT Working

});

I am Tring to refresh my DropDownList after another DropDownList ..
is clicked but the refresh Method is not define error pops.
therefor i use the dataSource.read() then the DropDownList Shows it loading but data remain the same
Chanaka
Top achievements
Rank 2
 asked on 26 Aug 2012
3 answers
592 views
Hello,

I would like to know if window content can close the window?

Here's my code so far:
<div id="myWindow">
    <button onclick="CloseWindow()" >Close Me</button>
 
    <script type=text/javascript>
 
        function CloseWindow() {
 
            try {
                var kendoWindow = $("#myWindow").data("kendoWindow").close();
            }
            catch (err) {
                //Unable to get value of the property 'close': object is null or undefined
                alert("Error \n\n" + err.message);
            }
                                 
        }
      
    </script>
</div>
 
<script>
    $(document).ready(function () {
 
        var myWindow = $("#myWindow").kendoWindow({
            width: "300px",
            height: "200px",
            title: "Login",
            modal: false
        });
 
    });
</script>


Unfortonately, the following error is raised when trying to close the window:
Unable to get value of the property 'close': object is null or undefined

I would also like to know if there is a solution that would also work with external content?
Ex:
var myWindow = $("#myWindow").kendoWindow({
    width: "300px",
    height: "200px",
    title: "Login",
    modal: false,
    content: "myExternalContent.aspx"
});

... where myExternalContent.aspx would be able to access myWindow and close it even if it's not in the same page.

Best regards,

Simon


Dennis
Top achievements
Rank 1
 answered on 26 Aug 2012
4 answers
1.3K+ views
Is there a way to change the default "Select..." text on the button?  Thanks.
Gedalias
Top achievements
Rank 1
 answered on 26 Aug 2012
0 answers
73 views
When der is no data to be displayed on the grid, the pagination looks weird. I've posted the screenshot of the grid.

Kindly let me know, how to resolve this.
Kiran
Top achievements
Rank 1
 asked on 25 Aug 2012
1 answer
287 views
Suppose an application based on a Kendo UI Mobile SplitView has a "side pane" with "side view 1" and "side view 2".
The "side layout" defines two buttons "layout 1" and "layout 2".
This application also has a "main pane" with "main view 1" and "main view 2".
Clicking "layout 1" should display "side view 1" in the side pane and "main view 1" in the "main pane", where as
Clicking "layout 2" should display "side view 2" in the side pane and "main view 2" in the "main pane" 

As per the documentation, it is possible to configure a button as follows:
<a id="layout1" data-role="button" href="#side-view1">
but this only triggers the navigation in the side pane.

It is also possible to configure a button as follows:
<a id="layout1" data-role="button" href="#main-view1" data-target="main-pane">
but this only triggers the navigation in the main pane.

How to programmatically trigger the navigation in both panes?

Jack
Top achievements
Rank 2
Iron
 answered on 25 Aug 2012
7 answers
1.2K+ views
I have an example of this here: http://jsfiddle.net/RodEsp/hjbSz/
Using jsfiddle echo to simulate a remote datasource.

Basically, if the dataSource is initialized with data from the beginning (un-comment the //url: "/echo/json/", line) then everything works perfectly and the listview's <li> elements get initialized properly.

But, if you keep the dataSource empty from at the beginning and then change it by pressing the Refresh button on the navbar, the listview is populated and shows up correctly, but the listview's <li> elements do not get initialized the way they should. They have no data-uid property.

Is this a bug, or am I doing something wrong?

(In my real application this happens when the JSON retrieved for my datasource is an empty array and then is refreshed and recieves a non-empty array)
Jack
Top achievements
Rank 2
Iron
 answered on 25 Aug 2012
0 answers
126 views
Hi,

I am using two kendoui treeviews

when i am using drag and  drop selected item from left-treeview to right-treeview and right-treeview to left-treeview, the dropped item is showing like undefined,

As shown in uploaded tag please once check it,

here i am displaying the parent/child items  dynamically.

In treeview script i have written code in this way:-


var
treeview1 = $('#treeview-left').kendoTreeView({

select: onSelect,

 

checkboxTemplate: kendo.template($(

"#treeview-checkbox-template").html()),

dragAndDrop: true,

dataSource: parent,

expanded: true,

dataTextField: ["parentName", "childName"]
});

So can you please provide me solution where i have done wrong.

Thanks in Advance.

 

 

 

 

 

 

 

 

 


Janu
Top achievements
Rank 1
 asked on 25 Aug 2012
0 answers
27 views
Just wanted to know about your products
Shravan
Top achievements
Rank 1
 asked on 25 Aug 2012
3 answers
258 views
Can someone tell me whats the best way to send a rather complex MVVM object up through an $.ajax call to be saved?

...this?

data: "{'data':'" +JSON.stringify(_mydata) +"'}",
axwack
Top achievements
Rank 1
 answered on 25 Aug 2012
5 answers
343 views
Hi I am making a cross domain call to get some json data and using that to populate a grid control. In order to do that, fist, i am creatinga  datasource like so:
var dataSource = new kendo.data.DataSource({
    transport: {
        read: {
            url: 'http://' + hostAddress + '/Customer.svc/getcustomersbyname?axid=999&name=',
           dataType: "jsonp"
        }
    },
    pageSize: 5
});

Then I populate the data grid:
$("#customergrid").kendoGrid({
        dataSource: dataSource,
        scrollable: true,
        sortable: true,
        pageable: true,
        selectable: "row",
 
        columns: [
            {
                field: "Name",
                title: "Name"
            },
            {
                field: "Id",
                title: "Id"
            },
            {
                field: "AxId",
                title: "AxId"
            }
        ]
    });


When I run it, I do see the data coming back but i get a crash in kendo.grid.min.js with the error: Microsoft JScript runtime error: DOM
 Exception: NOT_FOUND_ERR (8)

Do I need to define a schema or something?

btw, where it crashes is at:  
b.table[0].replaceChild(h,b.tbody[0])
line 11, col 22102 in kendo.grid.min.js 


thanks,
Jas

Surabhi
Top achievements
Rank 1
 answered on 24 Aug 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
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
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
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
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
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?