Telerik Forums
Kendo UI for jQuery Forum
2 answers
104 views
I have a list of data that I want to use both in a grid and in a dropdownlist simultaneously. On the grid, I want it to have a pageSize of 10, but on the dropdownlist I want it to have all of the data items. 

I don't want to specify two data sources for the same data just to get different page sizes. How would I set only the grid pageSize independent of the dataSource?

Thanks in advance,
Matt
Alexander
Top achievements
Rank 1
 answered on 23 Aug 2012
2 answers
131 views
Hi,

Is it possible to use kendoEditor in the Grid popup editor?

Thanks
Safak
kabbas
Top achievements
Rank 1
 answered on 23 Aug 2012
1 answer
312 views
Hi, I'm trying to make a line chart that uses two y-axes, one on the left side of the chart and one on the right.

Originally I got it to work by using the length of values in the datasource, like this:

axisCrossingValue: [0, datasource.data().length] }

However, this doesn't work when I interpolate the missing values on the chart, as there can be many more categories on the x-axis than there are elements in the data array. I end up getting an axis hanging out somewhere in the middle of the chart.

Does anyone know a way I can get the number of categories on the x-axis WHILE instantiating the chart?
Or would I have to access the number of categories and change the axisCrossingValue after the chart has been built and call refresh()?

Thanks for any ideas!
Erik
Erik
Top achievements
Rank 1
 answered on 23 Aug 2012
0 answers
103 views
Greetings,

We already have CSS formatting for our numeric textbox, how would we otherwise remove the built in / default CSS formatting? When I initally wire up the numeric text box, we see a battle between teh KendoUI css and our very own.

Adam
Top achievements
Rank 1
 asked on 23 Aug 2012
2 answers
759 views
How do I access the (model) values of a selected row using the new 2012 Kendo UI Web? I.e. in the change event of a Kendo grid.

Where do I find more resources on this topic and also on models in the 2012 version? I haven't found the answers in the datasource or grid documentation/demos sections.
Michel Corbin
Top achievements
Rank 1
 answered on 23 Aug 2012
0 answers
148 views
I need to load html & css from a remote page into a view. I've tried using and iframe with the following code

        <div data-role="view" data-layout="app" data-title="about" id="viewid">
<iframe src="http://easytrip.fusio.net/easytrip.htm"></iframe
</div>

But the iframe isn't scrollable in a mobile browser. Is there a way of making the iframe scrollable or a different method of loading a remote page into a view and have it scrollable? 

Mat
Top achievements
Rank 1
 asked on 23 Aug 2012
1 answer
220 views
I was wondering if it is possible to use Kendo's Validation to achieve something similar to Microsoft's Unobtrussive ValidatIon:
http://weblogs.asp.net/jgalloway/archive/2012/03/23/asp-net-web-api-screencast-series-part-5-custom-validation.aspx 

In Kendo I can attach data attributes to my form fields in much the same way that I can with Unobtrussive Validation.  However with The latter, I can also do this:
$.validator.unobtrusive.revalidate(form, validationResult);

Which makes it possible to display server validations by building up a list of Field names and their associated errors.  Example of validationResult:
{"Author": "Author is too long! This was validated on the server."}

Is such a feature possible in Kendo?  If not, I could see it as a useful addition for the future.  We can validate 95% of what we need to do on the client, but something like this would be great for server validations such as checking for duplicates in the data store, etc.
Jeff
Top achievements
Rank 1
 answered on 23 Aug 2012
2 answers
103 views
If I place the following on my page, no graph is displayed:

This issues appears to be that I'm passing 2568 as a data value nothing is rendered. Is there a reason for this?

 <script>
function createBuildingChart() {
            $('#buildingChart').kendoChart({
                theme: $(document).data('kendoSkin') || 'default',
                dataSource: { data: graphDataBuilding },
                chartArea: { height: 250, width: 218 },
                legend: { position: 'bottom', visible: true, margin: { left: 1, right: 1 }, labels: { font: '10px Arial' }, border: {width:1, color:'black', dashType:'solid'} },
                series: [{ type: 'pie', field: 'Value', categoryField: 'Text', padding: 0}],
                tooltip: { visible: true, template: '<strong>${ category }</strong>: ${ value }' },
                seriesColors: ["#4575B4", "#D53E4F", "#F46D43", "#FDAE61", "#FEE08B"]
            });
        }
</script>
<script type='text/javascript'>var graphDataBuilding = [{ 'Text': 'Active', 'Value': 2568 }];createBuildingChart();</script>
Andrew
Top achievements
Rank 1
 answered on 23 Aug 2012
0 answers
84 views
I'm using the following ajax request to refresh the grid, but I always get an empty grid. I'm not able to find what I'm doing wrong. 

$(document).ready(function () {
           $(document).on("click", ".ceva", getNextState);
       });
       function getNextState(e) {
           var grid = $("#Grid").data("kendoGrid");
           var ID = $(e.currentTarget).attr('id');
           var orderID = $(e.currentTarget).attr('data-ID');
           var urlCon = "Idea/NextState?state=" + ID + "&iD=" + orderID;
           $.ajax({
               type: "POST",
               url: urlCon,
               contentType: "application/json; charset=utf-8",
               success: function (data) {
                   var x = data;
                   grid.dataSource.data(data);
                   grid.refresh();
 
               },
               error: function () {
                   alert("something went wrong");
               }
           });

I'm trying to achieve a way to remove a row from the table after I trigger the NextState method for that row. Is there a better way to do that then refreshing the grid's data source? 
Thanks in advance. 
Marius
Top achievements
Rank 1
 asked on 23 Aug 2012
2 answers
145 views
Is it possible to set an initial group when binding to an existing HTML table? I have tried setting the group field in the datasource.

<asp:Repeater runat="server" ID="repList" EnableViewState="False">
    <HeaderTemplate><table id="grid">
    <thead>
    <tr>
        <th data-field="ShortName">Short Name</th>
        <th data-field="Site">Site</th>
    </tr>
    </thead>
    <tbody>
    </HeaderTemplate>
    <ItemTemplate>
        <tr>
            <td><%#Eval("ShortName")%></td>
            <td><%#Eval("tblSite.Site")%></td>
        </tr>
    </ItemTemplate>
    <FooterTemplate></tbody></table></FooterTemplate>
</asp:Repeater>
 
 
<script type="text/javascript">
    $(function () {
        $('#grid').kendoGrid({
            datasource : { group: {field: "Site"}},
            groupable: true,
            scrollable: true,
            sortable: true,
            pageable: true,
            filterable: true
        });
    });
</script>
Richard Wilde
Top achievements
Rank 1
 answered on 23 Aug 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?