Telerik Forums
Kendo UI for jQuery Forum
3 answers
40 views
How can i get a scroll bar like on sitefinity.com?

Does it use kendo UI ?
Sebastian
Telerik team
 answered on 21 Feb 2013
1 answer
42 views
I didn't know where to put this.
It looks like this demo the code and what is rendered at the top do not match. http://demos.kendoui.com/web/grid/rowtemplate.html

the rendered has rows with column headings 
Cover Title Rating


and this is what the code says they should be.

.Columns(columns =>
    {
        columns.Bound(c => c.CustomerID).Title("Picture");
        columns.Bound(c => c.ContactName).Title("Name");
        columns.Bound(c => c.CompanyName);
        columns.Bound(c => c.Country);
        columns.Bound(c => c.Address);
        columns.Bound(c => c.Phone);
    })

I still get the concept I think but it would be nice if they actually matched.l

Atanas Korchev
Telerik team
 answered on 21 Feb 2013
1 answer
424 views
I have a remote data source (rds) that will deliver the tree view nodes items.
Elsewhere on the page there will be check boxes to allow the subtrees of various campaigns to be turned on and off.

The treeview template setting appears to only affect the 'k-in' span of a 'treeitem' li as rendered by the treeview control.

My situations is that the rds will supply additional item data about the nature of the item
{ id: ..., hasChildren: true, data:{addClass:'Campaign1'} }


I want the data.addClass value added to the class of the containing <li> that will be rendered.

The outcome desired looks like 
<li role="treeitem" class="k-item ... Campaign1" data-uid="..." id="...">
<div class="k-top/mid/bot"
<span class="k-icon ..." role="presentation"></span>
<span class="k-in"> TEMPLATE RENDERING GOES HERE </span>
</div>
</li>

Is there a way some javascript in the template setting can perform the desired tweak on the <li>?
Will I need to handle a 'children-loaded' event and iterate over the freshly rendered nodes ?

Petur Subev
Telerik team
 answered on 21 Feb 2013
2 answers
262 views
I'm trying to create a linear gauge, where ONLY the pointer is shown. The scale and all other furniture needs to be hidden, as we are displaying the pointer over a custom image in our web page.
My code for the gauge so far is as follows:

@(Html.Kendo().LinearGauge().Name("LinGauge" + @Model.ComponentName.Replace(" ",""))
    .Pointer(pointer => pointer.Size(30.0)
                   .Color("Black")
                   .Value(@Model.ComponentScore / 1000.0)
                   .Shape(GaugeLinearPointerShape.Arrow))
    .Scale(scale => scale.Min(0.0)
                 .Max(1.0)
                 .Vertical(false)
                 .MinorTicks(t => t.Visible(false))
                 .MajorTicks(t => t.Visible(false))
                 .Labels(l=>l.Visible(false))))

This is almost there, and displays the pointer with just a single, undecorated line where you would expect the scale to be (see attached image), but I can't seem to find in the API reference how you would switch that line off. Any help would be appreciated.

Chris
Top achievements
Rank 1
 answered on 21 Feb 2013
1 answer
212 views
Hi,

I'm evaluating Kendo UI for our web / mobile project at the moment. I have browsed through the documentation and did not find much information on customizing chart Markers. I am looking for something similar to this high chart demo (specifically the marker line that shows up when you mouse over the data points). Can this functionality be replicated via Kendo UI DavaViz? Also, can we grab the tooltip values on mouse over and display it somewhere else on the chart; lets say near the legend?

http://www.highcharts.com/demo/line-ajax


Iliana Dyankova
Telerik team
 answered on 21 Feb 2013
14 answers
354 views
Since I have update my trial version(it was 2012.3.1314) to commercial version(2012.3.1315)
) we got a new issue. Column reordering does not work at all. I think it is an issue with kendoDraggable. Here is the JsFidddle .

Here is the GithHub issue
Alexander Valchev
Telerik team
 answered on 21 Feb 2013
2 answers
129 views
Given something along the lines of below I am trying to use the custom editor function of the grid to show a different control based on the data type.  Data types are not limited to string, date, and boolean, but would also include some custom lists.  In the demo for custom editors on fields the demo leads me to believe that the editor is column based, and cannot be row based.  Is there a way to accomplish row based editors on the grid control?
<div id="me">
    <div id="kendoGrid"></div>
</div>
 
<script type="text/javascript">
    var viewModel = {
        items: []
    };
 
    viewModel.items.push({ id: 0, dataField: new Date(2012, 1, 1), dataType: 'date' });
    viewModel.items.push({ id: 1, dataField: 'any string', dataType: 'string' });
    viewModel.items.push({ id: 2, dataField: true, dataType: 'boolean' });
 
    $(document).ready(function () {
        $("#kendoGrid").kendoGrid({
            dataSource: {
                data: viewModel.items,
                batch: true,
                schema: {
                    model: {
                        id: "id",
                        fields: {
                            id: { editable: false, nullable: false },
                            dataField: {}
                        }
                    }
                }
            },
            columns: [{
                field: "dataField",
                title: "Attribute Value"
            }],
            editable:true
        });
    });
</script>
Phil
Top achievements
Rank 1
 answered on 21 Feb 2013
1 answer
47 views
If the value axis max is under 1,000 it works fine.  But when the max exceeds 1,000 the chart is blank.

What am I missing.
Iliana Dyankova
Telerik team
 answered on 21 Feb 2013
5 answers
265 views
Hello,

I've recently updated to the latest build of Kendo Mobile.

I have been working on integrating the mobile framework into a CMS that has a dynamically generated navigation and objects. One of the things I am struggling with the most is the use of hashtags within the URL's.

For example:
I have a dynamic navigation that outputs the tabstrip nav like this:

<div data-role="footer">
                <div data-role="tabstrip" id="custom-tabstrip">
                <a href="/" data-icon="home">Home</a>
                 
               <a href="/gallery/" data-icon="camera">Gallery</a>
                 
               <a href="/blog/" data-icon="compose">Blog</a>
                 
               <a href="/contact/" data-icon="globe">Contact</a>
                 
               <a href="?mobileFormat=false" data-icon="action">Full Site</a>
                </div>
</div>
Each href is a dynamic page generated by the CMS. Unfortunately, whenever a link is clicked, Kendo insists on adding a hashtag in the URL, thinking it's a local view (i.e. http://kendo.themodmedia.com/#/gallery). I've even tried using absolute URL's in the href and the output is like this: http://kendo.themodmedia.com/#/http://kendo.themodmedia.com/gallery.

Is there a way to tell Kendo that if the href does not start with a hash tag, then it is not a local view?

Another example is that the CMS contact form outputs a string appended to the URL when the form is submitted. Something like
"?nocache=1#form1234567890" which jumps to a div of that id that displays the form response (i.e. "Thank you!"). The problem is that because that hash tag is in the URL, Kendo tries to load it as a local view, which doesn't exist.

Is there a global way to tell Kendo "If the div contains a data-role of "view" try to load a view; if not, just behave normally"? It just seems like Kendo is trying to force everything into a view and forgets that hash tags are still used for other things within a website.

Here is the demo site: http://kendo.themodmedia.com?mobileFormat=true (once the URL is loaded, you can remove the ?mobileFormat=true string).

Thanks!
Ronnie
Alexander Valchev
Telerik team
 answered on 21 Feb 2013
1 answer
308 views
Hi,

How can we bind the Knockout observable array into the kendo treeview?

I am glad to know both the ways, Bindng the knockout observable array directly into the knedo treeview if possible
and convertng the knockout observable array into kendo hierarchical data and then binding into the kendo treeview if first option is not possible.

Is it possible to provide a sample application?

Thanks,
Mallappa
Atanas Korchev
Telerik team
 answered on 21 Feb 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?