Telerik Forums
Kendo UI for jQuery Forum
1 answer
270 views
Dear,
I've a treeview with icons as your sample, similar this:
<ul id="treeview" id="myRoot">
<li data-expanded="true"><span class="k-sprite folder"></span>Folder1</li>
<li data-expanded="true"><span class="k-sprite folder"></span>Folder2</li>
<li data-expanded="true"><span class="k-sprite folder"></span>Folder3</li>
</ul>

Then I've try to use append method (link to button for example), similar this:
treeView.append({ text: "Folder4" }, $("#myRoot"));
(it's work but the new node Folder 4 have no icon)

My question is:
How can I append a new node with icon ?
I have try this:
treeView.append({ text: "<span class='k-sprite folder'></span>Folder4" }, $("#myRoot"));
But not work!

Thanks for help,
Rinaldo

Rinaldo
Top achievements
Rank 1
 answered on 08 Aug 2012
5 answers
734 views
I'm using Kendo Upload inside an ASP.NET WebForms page to upload a user picture (not multiple files, only one).

It have a Save button that sends the values of many fields. I would like to send the file together with the values. Is there any way to do it with Ajax? Or with a normal Postback? Can someone please explain me how to do it?
Piyey
Top achievements
Rank 2
 answered on 08 Aug 2012
1 answer
107 views
In our application, we have removed default filtering of kendo ui and have created textboxes with autocomplete on every header column.
But when we select any data entered in textbox and populated in autocomplete and then hit enter key, we are presented with row selected in edit mode as navigatable is on. So our data are not getting filtered. Can anyone suggest what should I do to achieve filter with navigatable on.

Thanks
Vesselin Obreshkov
Top achievements
Rank 2
 answered on 08 Aug 2012
7 answers
1.0K+ views
Hi


I am facing two issues with virtual scrolling and server side pagig enabled on Grid.  
 
1. As I drag the scrollbar, multiple posts are being made instead of a post happening after the scrollbar drag is completed. 
For eg.,
Lets say my pagesize is 3000 and I have total 20000 rows. Onload, page 1 data is loaded. Now when I drag the scrollbar all the way to middle, there is a lag experienced in dragging and POST is happening in points of drag. There are 1 or 2 POSTS in the background and when the scrollbar eventually drops to the intended position, another POST happens and grid gets bound to the data returned from last POST.

2. Data loaded across multiple scrolls seem to get retained in the datasource. This is making the grid/page heavy and slow after using the scroll for some time.  I have  monitored the server POST. In the above example, once 6 POSTS have been made with returning the 20000 rows, scrolling doesnt create server posts. Data is being paged locally. 

How do I reset datasource across page loads instead of appending the data recieved into the datasource ?

My grid config is as follows:

 $("#grid").kendoGrid({
        dataSource: {
            type: "json",
            serverPaging: true,           
            serverSorting: true,
            pageSize: 3000,
            allowUnsort: true,
            transport: {
                read: {                  
                    url: "homecontroller/action1",
                type: "post",
                contentType: "application/json; charset=utf-8",
                dataType: "json"
                },
            parameterMap: function (options) {                       
                return JSON.stringify(options);                    }
            },

            schema: { data: "Data", total: "TotalRowCount" }

        },              
        groupable: true,       
        sortable: true,
        pageable: true,
        selectable: "multiple",

        scrollable: {
            virtual: true
        },
 
       columns:
        [
  //column definitions here
 ]
 });



Rosen
Telerik team
 answered on 08 Aug 2012
1 answer
149 views

I've put together a little app using Kendo UI that stores user inputs in a Javascript array, and then prints these items out by adding text to a div. Along with the text, I need to have a delete button to remove these items from the array.

Since I'm adding the delete buttons to the DOM after I initialize Kendo UI, I assume I need to use the.kendoMobileButton() method on each button I add. If I don't do this, my buttons aren't styled correctly, despite being given the attribute data-role="button".

Still, when I try to use these buttons, I can't get them to call a function with data-click="deleteNumber". The function simply doesn't seem to fire. Any hints?

Here is a quick example I threw together that illustrates my problem: http://crocdoc.ifas.ufl.edu/files/kendo_example/

Robin
Top achievements
Rank 1
 answered on 08 Aug 2012
1 answer
138 views
In the past I always found out what was coming next in Kendo via the Road Map. When will that be updated?
Iliana Dyankova
Telerik team
 answered on 08 Aug 2012
1 answer
664 views
This piece of javascript does not work. tabStrip is always undefined!

 


var tabStrip = $("#tabstrip").data("kendoTabStrip");


Here are my References
    <script src="@Url.Content("~/Scripts/KendoScripts/jquery.min.js")" type="text/javascript"></script>
  <script src="@Url.Content("~/Scripts/KendoScripts/kendo.web.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/KendoScripts/kendo.custom.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.unobtrusive-ajax.js")" type="text/javascript"></script>
Ryan Lege
Top achievements
Rank 1
 answered on 08 Aug 2012
7 answers
429 views
I downloaded and updated my project with the new kendoui.mobile.2012.2.710.commercial files.  However, now I'm seeing some issues.

Using the data-page attribute is no longer working.  Did that property go away?  I see it being used on the demo ScrollView page (data-page="2") but it's defaulting to the first page.  ScrollTo also seems to not be working now in my project...

Also, I'm getting an error now when calling showLoading().  When I launch the new example file (kendoui.mobile.2012.2.710.commercial/examples/mobile/application/loadingpopup.html) and click the button, no loading image pops up.  

Please let me know if I'm doing something wrong.  Thanks.


Alexander Valchev
Telerik team
 answered on 08 Aug 2012
0 answers
113 views
<div id="grid"></div>


<script>
    $
(document).ready(function () {
        dataSource
= new kendo.data.DataSource({
            transport
: {
                read
: {
                    url
: '@Url.Action("GetCityList", "City")',
                    dataType
: "json",
                    type
: "GET",
                    contentType
: "application/json; charset=utf-8"
               
},
                create
: {
                url
: '@Url.Action("create", "City")',
                type
: "Post"
           
},
                parameterMap
: function (data, operation) {
                   
if (operation != "read") {
                       
var result = {};

                       
for (var i = 0; i < data.models.length; i++) {
                           
var ciudad = data.models[i];

                           
for (var member in ciudad) {
                                result
["ciudades[" + i + "]." + member] =                        ciudad[member];
                           
}
                       
}
                       
return result;
                   
}
               
}


           
},
            batch
: true,
            pageSize
: 30,
            schema
: {
                model
: {
                    id
: "id",
                    fields
: {
                        id
: { editable: false, nullable: true },
                        descripcion
: { validation: { required: true} },
                       
DepartamentName: { field: "DepartamentName" },
                   
}
               
}
           
}
       
});

        $
("#grid").kendoGrid({
            dataSource
: dataSource,
            navigatable
: true,
            pageable
: true,
            height
: 400,
            toolbar
: ["create", "save", "cancel"],
            columns
: [
               
"descripcion",
           
{ field: "DepartamentName", title: "Name Departament", editor: categoryDropDownEditor, width: 150 },
               
{ command: "destroy", title: "&nbsp;", width: 110}],
            editable
: true
       
});
   
});

</script>

<script>

    function categoryDropDownEditor
(container, options) {

        $
('<input data-text-field="name" data-value-field="name"  data-bind="value:' + options.field + '"/>')
                       
.appendTo(container)
                       
.kendoDropDownList({
                            autoBind
: false,
                            dataSource
: {
                                type
: "json",
                                transport
: {
                                    read
: {
                                        url
: '@Url.Action("GetDepartament", "city")
                                           
}
                               
}
                           
}
                       
});
   
}
           
</script>

it show me ok but my problem is that when It hit to my action create it give me the name of the departament not the id

and when i change my function this part to this

 $('<input data-text-field="name" data-value-field="name"  data-bind="value:' + options.field + '"/>')

 $
('<input data-text-field="name" data-value-field="id"  data-bind="value:' + options.field + '"/>')

with it show me fine in my action I get the id but in my grid when I choose in my dropdown a departament in the grid it show me the id (so is no the behavior I want)

how can I do to work this? I guees is in the bind part..

diego
Top achievements
Rank 1
 asked on 08 Aug 2012
10 answers
1.6K+ views
Hi,
I have this error for days, i'm find out how to fix this in this forum and still does not get it fix.
I have two grid in same page, each bind with datasouce and have a command button in the toolbar for add a record.

When i click at 'Add fee/cost' it work fine but then when i click at 'Add Loan' a error occured.
I dont know how to fix this, any one please me.

try
http://jsfiddle.net/mBYxS/7/ 
Devon
Top achievements
Rank 1
 answered on 08 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
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?