Telerik Forums
Kendo UI for jQuery Forum
4 answers
134 views
I've made some complex editing to test my grid. But i found "__id" attribute in my JSON. I didn't know where was it come from. It makes my deserialization from json to my model failed (I used MVC).... When i test a simple editing like combination of two delete and two insert operation, there is no "__id"  attribute. It only happens when i test the grid with complex query like three insert and three delete alternately..


 Is it bug from Kendo UI Grid ? Did anyone find a solution ?

Thx.. Regards... ^_^
Rosen
Telerik team
 answered on 01 Feb 2012
0 answers
67 views
Conditional navigation.

I would like to have a view that requests one of two things, License plate number and/or a Last name.

With a Search button in the footer, on click I would like to determine whether a License plate was entered, if so retrieve data from the server, if found I would like to transition to the vehicle view, if not found display an error on my current view. I a Last name was entered I would like to do the same process but display the customer view on success.

How would I set up the buttons to call a common function, and programmatically switch views or re-display the current view if there is an error?
Ron Richins
Top achievements
Rank 1
 asked on 31 Jan 2012
0 answers
103 views
Hello,

I need to set the sizes of each of the columns when initializing a Grid from exiting table. However this does not seem to be working even on the example given (http://demos.kendoui.com/web/grid/from-table.html ). Try setting colspan/width. It set to the header row but not the data rows. 

Thanks in advance for the help.

Warm regards,
Krishna
Krishna
Top achievements
Rank 1
 asked on 31 Jan 2012
3 answers
95 views
Hi,

Just a quick question. I noticed a promotion recently stating that buyers of Kendo UI Commercial license will get a Mobil license free. Does that hold true for those of us that bought the commercial license during the initial release period? I bought the commercial license in December 2011. Will I alsdo get a Mobile license when it's released?

Thanks,

Tony
Atanas Korchev
Telerik team
 answered on 31 Jan 2012
2 answers
187 views
I signed up, authorized.  Go to the download page, screen says file should begin downloading.  Never does.  So I click the link and am taken to ANOTHER site to register for something.

How can I just download the bits so I can evaluate properly?

Thanks.
Steve
Top achievements
Rank 1
 answered on 31 Jan 2012
1 answer
104 views
Hi,

How easy is it to add a textbox to add additional description text about the downloaded file. Ideally I'd like the downloaded file to be added to a table structure  file name, remove button and a text box to add additional information.

Cheers!
T. Tsonev
Telerik team
 answered on 31 Jan 2012
3 answers
211 views
Hello,

first of all, i want to say, i already love the kendo ui. I think i'll be using it a lot.
But, i have a problem and i can't seem to find the solution in the documentation.

I use the "customizing templates" example from the demo-section, because it's very similar to what i want to use.

I use the following javascript:

$("#products").kendoAutoComplete({
                        minLength: 3,
                        dataTextField: "title",
                        template: '<img src="${ data.image }" alt="${ data.title }" />' +
                                  '<dl>' +
                                      '<dt>Title:</dt><dd>${ data.title }</dd>' +
                                      '<dt>Price:</dt><dd>${ data.price }</dd>' +
                                  '</dl>',
                        dataSource: {
                            type: "json",
                             
                            pageSize: 20,
                            transport: {
                                read: "/getProducts.php"
                            }
                        }
                    });
 
                    // set width of the drop-down list
                    $("#products").data("kendoAutoComplete").list.width(400);

The getProducts.php is correctly linked to the file and with the OSX tool Charles i can see the data is retreived when i'm typing in the textbox. 

getProduct.php echoes a valid JSON object like this
[{"id":"6","code":"bbyb05","title":"05 : name1","price":"5.00","image":"uploads\/items\/6\/bbyb2011_-4_05.jpg"},{"id":"4","code":"bbyb058","title":"58 : name 2","price":"5.00","image":"uploads\/items\/4\/nr58_big.jpg"}]

I also tried already to add "data:" to the json, like below, but it doesn't make any difference.
{"data":[{"id":"6","code":"bbyb05","title":"05 : name1","price":"5.00","image":"uploads\/items\/6\/bbyb2011_-4_05.jpg"},{"id":"4","code":"bbyb058","title":"58 : name 2","price":"5.00","image":"uploads\/items\/4\/nr58_big.jpg"}]}

Can somebody please tell me, what i'm doing wrong?
Thanks!
Best regards,
vince

Atanas Korchev
Telerik team
 answered on 31 Jan 2012
0 answers
138 views
Hi All,

I am new to kendo ui. I am using grid to display my records. i want to add on button on the top of my records says "transfer" and each record will have checkbox. As soon as click on checkbox and click on transfer it should move or should not include those records to my grid.

For this i have have added one button using toolbar but its showing me as link only  I have used following code

toolbar: [{ name: "Transfer", text: "Move it to your friends" }],

But it showing as link on top and i want to shift this button to right corner. How will i achieve that?

Please provide me if there is any other way.

Regards,
Ashok Naidu
Ashok
Top achievements
Rank 1
 asked on 31 Jan 2012
2 answers
1.5K+ views
I have a Grid:
            that._grid = $("#list", domEl).kendoGrid({
                selectable: "row",
                scrollable: true,
                columns: columns,
                rowTemplate: that.getRowTemplate(false),
                altRowTemplate: that.getRowTemplate(true),
                dataSource: new kendo.data.DataSource()
            }).data("kendoGrid");

This grid has an empty DataSource as I need to fill data later on my own.

So, sometime later I have all my data to put them info grid manually ("data" is an array of some objects):
        onDataLoaded: function (data) {
            that._grid.dataSource.data(data);
            that._grid.refresh();
            // some more work here to customize html
        }

Then, in some other place I need to add only one row. Obviously I should add an item into my DataSource first. But I also have to sync Grid with DataSource. I tied to use DataSource.Insert, but it throws an exception:
                    var index = that._grid.dataSource.indexOf((that._grid.dataSource.view() || [])[0]) || 0;
                    that._grid.dataSource.insert(index, obj); // throws as "_set" is undefined (DataSource has no Model defined).

So, I tried this method:
    that._grid.dataSource.data().push(obj);
it works. But it doesn't synchronize Grid with DataSource, so I have to update Grid manually also. But how to do this?
I could call _grid.refresh() indeed, but it'll replace whole html. It's slow and unacceptable for me (as I also need to update html but in the place where I'm adding a row I don't have all data).

p.s. Also I'd like to ask you to allow to use our own DataSources with Grid. It's not convinient now that Grid requires its own DataSource as I already have my own "data source" (not kendo). Now I have to dublicate data.
Sergei
Top achievements
Rank 1
 answered on 31 Jan 2012
0 answers
184 views
Hello,

I have been trying to bind a json response to the grid. Essentially each record has an array of files that need to be show as a comma separated list on the last column. 

JSon response:  
[{"Id":"1","Title":"Sample","Description":"This is a sample","IsActive":"1","CreatedBy":"1","DocumentCategoryId":"1","files":
[{"filepath":"\uploads/download_assets/download1.jpg","doctypeext":"jpg","IconPath":"uploads/icons/icon-jpg.png"}]
}]

Script:
<script>
$(document).ready(function() {
  var dataSource = new kendo.data.DataSource({
   transport: {
    read: {
     url: "", // the remote service url
     dataType: "json"
    }
   }
  });
 
  $("#grid").kendoGrid({
   dataSource: dataSource,
    height: 360,
    groupable: false,
    scrollable: true,
    sortable: true,
    pageable: true,
    columns:[
    {
    field: "Title",
    title: "Title"
    },
    {
    field: "Description",
    title: "Description"
    },
    {
    field: "files",
    title: "Files",
    template: "#= files #" // Obviously this is incorrect.
    }
    ]
  });
});
</script>                                                       
                                                      
Krishna
Top achievements
Rank 1
 asked on 30 Jan 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
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?