Telerik Forums
Kendo UI for jQuery Forum
0 answers
288 views
Recently, I was attempting to get horizontal scrolling in KendoUI Grid to work properly. According to this post, all you had to do was "set the column widths and turn scrolling on." Wow, that would be great. Unfortunately, what happened was the scrollbar rendered OUTSIDE the grid, which is not what I wanted.

What I really wanted was for a horizontal scrollbar to be in the grid data area, and that the headers scroll in unison with the data area, without hiding the vertical scrollbar for the grid, and without scrolling the footer either. I was told that it couldn't be done, but I have the advantage of having done it before with DHTML back in the .NET 1.0 days. Besides, I don't like taking "no" for an answer.

After doing a little bit of digging, I discovered it would be significantly easier with KendoUI than it was with my product. Turns out, it only requires 5 lines of jQuery code.

I've created a jsFiddle to show how it works. Make sure your outer div has the overflow set to hidden, and don't follow the instinct to wire up the vertical scroll as well.

If you have any questions about this technique, please post them here.
HTH!
Robert
Top achievements
Rank 1
 asked on 11 May 2012
0 answers
110 views
Does Kendo MVVM support pub-sub pattern ?
Aparna
Top achievements
Rank 1
 asked on 11 May 2012
0 answers
93 views
Hello,

The number of columns can affect this limit?

In demos yours have an example of 4 columns x 100.000 rows,
is 100.000 rows an limit?
with 40 columns, what consideration must follow?

Thanks.
William
Top achievements
Rank 1
 asked on 11 May 2012
0 answers
125 views
Is there a way to define\kickoff a sort on an array?
sitefinitysteve
Top achievements
Rank 2
Iron
Iron
Veteran
 asked on 11 May 2012
2 answers
160 views
Hi,
How do I validate the autocomplete text-box has valid value form remote data and user has not typed anything in it using custom validator.
Kuldeep
Top achievements
Rank 1
 answered on 11 May 2012
2 answers
106 views

I am experiencing a strange issue with the alignment of my chart.  My development chart shows up as expected, however when I deploy to my test server it throws it off.   See attached screenshots.   Any ideas would be greatly appreciated.

Alex R.
Top achievements
Rank 1
 answered on 11 May 2012
2 answers
173 views
Question:

I have a simple mobile app that consists of four tabStrip items which, in their respective views, contain scollable lists.  I can't wrap my head around navigating from a list-view item link to a content page.  The problem is when I click the link nothing happens --no transitions, zilch.  Here's my code:

// Sample TabStrip View containing a slightly modified list item link to a div
<div data-role="view" id="tabstrip-generes" data-title="Generes" data-layout="mobile-tabstrip">
<ul data-role="listview">
<li>
<a class='km-listview-link' src='#filmA'>Film A</a>
</li>
</ul>
</div>

// Desired view to navigate to
<div data-role="view" id="filmA">
Film Details, etc.  Basic content page; this single view will be repopulated with content depending upon what list-item link item is clicked then shown.
</div>

// Bottom Tab Strip
<div data-role="layout" data-id="mobile-tabstrip">
    <header data-role="header">
        <div data-role="navbar">
            <span data-role="view-title"></span>
            <a data-align="right" data-role="button" class="nav-button" href="#index">Index</a>
        </div>
    </header>

    <div data-role="footer">
        <div data-role="tabstrip">
            <a href="#tabstrip-home" data-icon="contacts">Home</a>
            <a href="#tabstrip-generes" data-icon="history">Generes</a>
            <a href="#tabstrip-search" data-icon="favorites">Search</a>
            <a href="#tabstrip-news" data-icon="settings">News</a>
        </div>
    </div>
</div>

Any help would be appreciated.

-Chris
Christopher
Top achievements
Rank 1
 answered on 11 May 2012
3 answers
206 views
I have a problem with a dataSource for a kendo grid. The dataSource consumes JSON endpoints for CRUD operations on a remote DB.

The JSON endpoints that the dataSource is consuming contain different root elements for read versus the other methods. The root element for a read is "GetFooResult.RootResults". The root element for all other methods is "SubmitChangesResult". The endpoints are created by the .NET DomainServices JSON endpoint factory, so I don't necessarily have influence over what format they return.

The problem is that the dataSource is not able to parse the returned JSON for methods except read, since that is what the dataSource:schema:data element is based on. Therefore when I execute a create operation it does not recognize the returned JSON; each subsequent create continues to attempt to send all previous create attempts, which creates duplicate records in the DB.

Any idea how to specify different dataSource:schema:data elements for the various transport methods? There seems to be only one schema with one data element per datasource. Could I write code under parameterMap that sets this element depending on the transport method?

Thanks,
David
David
Top achievements
Rank 1
 answered on 11 May 2012
2 answers
248 views
Hi
I'm trying to use mvvm and templates to produce a grid with column totals. A fairly simple scenario I think. I can get the grid to render and the column footer to show. However, I no longer have the ability to edit the grid cells (due to the row template that I am using). What can I do to make the rows function as if I was not using the template, and binding the products list to the table instead. Or can I just bind to the table and somehow have a custom footer that I can use to bind to my view-model with calculated totals. BTW I can just use a datasource and "sum" aggregate as I want to do some "math" to produce the total.
I have a jsfiddle of the scenario.
http://jsfiddle.net/darrenarbell/K9tnS/26/

Thanks in advance

Regards

 
Iliana Dyankova
Telerik team
 answered on 11 May 2012
4 answers
168 views
I'm trying to call an MVC controller action to populate my grid and I need to pass a parameter to it. However, my breakpoint in the action isn't getting hit. Am I doing something wrong here? I can't tell if my param is making it through since my breakpoint isn't getting hit. Do I need to set up a route for this call?

Action:

[HttpGet]
public JsonResult GetSalesHistory(string id)
{
    List<Sales> sales = PestsLogic.GetSalesById(5);
    return Json(new { data = sales, total = sales.Count }, JsonRequestBehavior.AllowGet);
}

JavaScript code:

<script type="text/javascript">
    $("#grid").kendoGrid({
        dataSource: {
            type: "json",
            transport: {
                read: {
                    url: "Sales/GetSalesHistory",
                    dataType: "json",
                    type: "GET",
                    contentType: "application/json; charset=1-8",
                    data: { id: "@ViewBag.CustomerEstimateKey" }
                }
            },
            pageSize: 15,
            schema: {
                data: "data",
                total: "total"
            }
        },
        pageable: true,
        sortable: true
    });
</script>
Jay
Top achievements
Rank 1
 answered on 11 May 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?