Telerik Forums
Kendo UI for jQuery Forum
1 answer
117 views
I have a database table where the primary key is a combination of several fields:

Field1, Field2, Field3

If it was just one field (Field1) I could use 

.DataSource(dataSource => dataSource
,Server()
.Model(model => model.Id(p => p.Field1))
)

but how do I set the datakeys/model id when there are several fields?

(If I set the grid to be .Selectable and if I don't set the model id, I get an error message saying that the DataKeys aren't set.)

Thanks.
Petur Subev
Telerik team
 answered on 09 Jul 2012
3 answers
627 views
We are using a DataSource for a search result. When there are rows returned, we display a template in a ListView. When there is no data returned from the search we'd like to indicate 'No records to display' similar to the RadGrid setting.

What is the best way to do this? We can return 'No records to display' in the json response but it will not fit well into our template.
Robert
Top achievements
Rank 1
 answered on 09 Jul 2012
1 answer
75 views
I see documentation and example of hash navigation and views in Kendo UI Mobile but not for Web version. Are they available for the web version? Does mobile documentation apply to the web version as well or is it something entirely different? Thanks in advance.
Iliana Dyankova
Telerik team
 answered on 09 Jul 2012
4 answers
96 views
Is there a way of retrieving the configuration from a radial gauge? For example, a get function or similar property.
Deryk Robosson
Top achievements
Rank 1
 answered on 09 Jul 2012
0 answers
111 views
I'd like to do a custom operation when a specific tabs is selected, actually after the tab loads (or activates) would be best. Is there an example of tab strip events for mobile?
Chad
Top achievements
Rank 1
 asked on 09 Jul 2012
0 answers
83 views
hi all:
im use grid,config 
                   groupable: true,
                    scrollable:true,
                    sortable: true,
                    pageable: true
i hope in server paging,not in clientpaging,if my ds have 50000pages,if in client paging,need long time or browser no response,pls help me,i want in server paging,thanks.

Seaman
Top achievements
Rank 1
 asked on 09 Jul 2012
0 answers
173 views
Hi,
I have a model call Route, and in its create page there are multiple inputs to fill in and there are two grids, one is the available locations and the other is the selected locations, and user can move rows from one to another.

Now, I need to have the list of selected locations when handling create action in the controller. My question is, when a user clicks Save button, is there a way to bind the list of selected locations to a property in Route model (SelectedLocations which is
list of locations), or is it possible to post the datasource of the selected locations grid along with the rest of input fields?

I know the other way around, which is using jquery to create a string containing the selected locations ids and bind that string to some property in Route model, but I was wondering if KendoUI could post back the whole list.

Here is the empty selected location grid: 
@( Html.Kendo().Grid<Location>()
      .Name("selectedLocations")
      .BindTo((IEnumerable<Location>)ViewBag.Route.SelectedLocations)
      .Columns(columns =>
       {
              columns.Bound(p => p.Id).Title("ID");
              columns.Bound(p => p.StopLocation).Title("Stop Location");
       })
       .Selectable(s => s.Mode(GridSelectionMode.Single))
       .DataSource(dataSource => dataSource.Server().Model(model => model.Id(p => p.Id)))
       )

And here is how I move items from the available to the selected location grid:

$("#addStopBtn").click(function () {
        var sourceGrid = $('#availableLocations').data('kendoGrid');
        var destinationGrid = $('#selectedLocations').data('kendoGrid');
        sourceGrid.select().each(function (e) {
            var dataItem = sourceGrid.dataItem($(this));
            destinationGrid.dataSource.add(dataItem);
            sourceGrid.dataSource.remove(dataItem);
        });
 
        sourceGrid.refresh();
        destinationGrid.refresh();
    });

Thanks in advance.
Michel
Top achievements
Rank 1
 asked on 09 Jul 2012
0 answers
77 views

Requirements

Kendo UI Suite and Version


jQuery Version


Supported Browsers and Platforms


Components/Widgets used 



PROJECT DESCRIPTION 
[When running the project, with the connectionstring as it is in the web.config, no data is ever displayed from the grid. The Northwind db is in the App_Data folder, but nothing happens.

<add name="ApplicationServices" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnetdb.mdf;User Instance=true" providerName="System.Data.SqlClient"/>
<add name="Northwind" connectionString="metadata=res://*/App_Code.Northwind.csdl|res://*/App_Code.Northwind.ssdl|res://*/App_Code.Northwind.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=.\SQLEXPRESS;attachdbfilename=|DataDirectory|\Northwind.mdf;integrated security=True;user instance=True;multipleactiveresultsets=True;App=EntityFramework&quot;" providerName="System.Data.EntityClient"/>

]
Bill
Top achievements
Rank 2
 asked on 08 Jul 2012
0 answers
100 views
I was using your datasource expample for binding to my treeview and it picked up the expanded property:true no problem.
Then I switched to using your viewodels and the tree bound fine except for the epanded property.
It seems to ignore the epxanded property if you use ViewModel.

I am using the beta version 2012 Q2.

Is there soemthing different you have to do if using viewmodels?
Joshua
Top achievements
Rank 1
 asked on 08 Jul 2012
3 answers
59 views
Hi

is there any page that can show all the events that I can lisent to it with Kendo Mobile?

I'm looking for a way to run a function only when the view is loaded and completed (similar to ready in Jquery).



Thanks
Valery
Top achievements
Rank 1
 answered on 07 Jul 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?