Telerik Forums
Kendo UI for jQuery Forum
3 answers
134 views
If the treeview is collapsed is it possible to hover over and have the treeview expand to show child items so I can drop my item on, dont want to have to open up the treeview before dragging onto it from my grid.

Thanks
Gregor
Alex Gyoshev
Telerik team
 answered on 01 Jun 2012
0 answers
195 views
Hello,

My issue sounds like this:

I am trying to persist the selected rows of a grid throw paging.

I have the following SourceCode:

dataBinding: function() {
                    //store the uids of selected rows
                    $("#requestGrid .k-state-selected").each(function() {
                        uids.push($(this).data("uid"));
                    });
                },
                dataBound: function() {
//                    selects first grid item
//                    this.select(this.tbody.find(">tr:first"));
                    resizeGrid();
 
                    if (uids.length != 0) {
                        for (var i = 0; i < uids.length; i++) {
                            var currUid = uids[i];
                            //find and reselect the rows via their uid attribute
                            this.tbody.find("tr[data-uid='" + currUid + "']").addClass("k-state-selected");
                        }
                    }
                },

So..., onDataBinding, I save the selected rows, and, onDataBound, I select the previeous selected rows.

The problem is that when the onDataBound event fires, the page of the grid which contains these Id's is not loaded..., so, the class "k-state-selected" won't be added.

Please help.

Later edit

Hmmmm, it seems that the Uid of the grid is not static..., it changes on each databound or databinding...
Nadisan
Top achievements
Rank 2
 asked on 01 Jun 2012
0 answers
199 views
Hi There,


I have created a mobile application using kendo Mobile UI's trial version in asp.net MVC3.
Here I am facing a problem that whenever I click on any anchor tag/button then its url get appended with the current page's url.
eg:
www.testkendoui.com/CurrentPage_Controller/CurrentPage_Action#/www.testkendoui.com/NextPage_Controller/NextPage_Action


And this causes the next page not to work, and it works after refreshing the next page.


I have tried with :
  1.  data-ajax="false" on all anchor tags and forms.
  2.  adding "http://" with the main URL 
but that all does not working.


Any suggestion would be appreciated.. :)


Thanks in advance .. 
Kritika
Top achievements
Rank 1
 asked on 01 Jun 2012
1 answer
33 views
How can i make use of the popup the way it is being shown in http://demos.kendoui.com/web/grid/editing-popup.html in this example of yours.
Suppose i have custom div and i want that to be in popup like that example.
Albert
Top achievements
Rank 1
 answered on 01 Jun 2012
0 answers
115 views
Hi Everyone,

I am having a list view with a
1.Input box(name)
2.File button for searching file in the computer and
3.Button to save the data

If i enter any name in the text box it will have to search the name in the data base whether the name exists or not and
if any name exists it should show an error already a name exists please enter another and
If i have include any file it should display 1 else 0
when i click the save button when success it has to save the data to database otherwise it has to show an error 


Thanks,
Srinivas
srinivas
Top achievements
Rank 1
 asked on 01 Jun 2012
2 answers
77 views
Hi, I just download and tried a few sample of Kendo UI. It looks and works great! Good job telerik folks.

I have 2 newbie question/or request.

1. Can we have a search function under each sub forum? Right now I only find to search the whole website.
2. When you post the sample code in the demo, can you also post the sample code in the server side to make the demo could be run on a single box without external network dependency?

Thx,
David
David
Top achievements
Rank 1
 answered on 01 Jun 2012
2 answers
209 views
I have two icons within my tabstrip, one for home and one for logout.  When I navigate away from the home page, the home button is still highlighted.  I do not want this highlighted when not on the homepage.  Can anyone suggest what I need to do to fix this?

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Control Panel - Mobile</title>
    <!--include Kendo UI files-->
    <link href="public/css/kendo.common.min.css" rel="stylesheet" type="text/css" />
    <link href="public/css/kendo.default.min.css" rel="stylesheet" type="text/css" />
    <link href="public/css/kendo.mobile.all.min.css"  rel="stylesheet" type="text/css" />
    <script src="public/js/jquery.min.js" type="text/javascript"></script>
    <script src="public/js/kendo.mobile.min.js" type="text/javascript"></script>
</head>
<body>
    <div data-role="view" data-layout="index_template" data-title="Control Panel - Mobile" id="index">
        <?php if (isset($error)){  echo '<p style="color:red">Error: '. $error .'</p>';} ?>
           
        <ul data-role="listview" data-style="inset">
            <li><a href="/messages/listall">Customer Messages (<span id="unread_messages_hp"><?=$unread_messages?></span>)</a></li>
            <li><a href="/support/listall">Support Messages (<span id="unread_support_hp"><?=$unread_support?></span>)</a></li>
            <li><a href="/reviews/listall">Customer Reviews (<span id="new_reviews_hp"><?=$new_reviews?></span>)</a></li>
            <li><a href="/orders/listall">Orders (<span id="new_orders"><?=$new_orders?></span>)</a></li>      
        </ul>
   </div>
   <div data-id="index_template" data-role="layout" data-show="triggerIndexButton">
        <div data-role="header">
            <div data-role="navbar">
                <span data-role="view-title"></span>
                  
            </div>
        </div>
       
        <div data-role="footer">
            <div data-role="tabstrip" >
                <a href="/" data-icon="home" data-rel="external">Home</a>
                <a href="/logout" data-icon="settings">Logout</a>
            </div>
        </div>
   </div>   
   <div data-id="main_template" data-role="layout">
        <div data-role="header">
            <div data-role="navbar">
                <a class="nav-button" data-align="left" data-role="backbutton" id="back">Back</a>
                <span data-role="view-title"></span>
                  
            </div>
        </div>
       
        <div data-role="footer">
            <div data-role="tabstrip">
                <a href="/" data-icon="home" data-rel="external">Home</a>
                <a href="/settings" data-icon="settings">Logout</a>
            </div>
        </div>
   </div>  
Many thanks in advance for your help.
Patrick
Top achievements
Rank 1
 answered on 01 Jun 2012
8 answers
660 views
Hi,

i have an virtual binded xml datasource in a grid. All works fine, but when the server has no records the browser has errors in Javascript because undefined values are in XML Data.

Sample:
<count>1</count><books><book><field1>Hallo</field1></book></books>  -> This works fine

But if there are no books the browser reported errors:
<count>0</count><books></books>  

Browser message:Uncaught TypeError: Cannot read property 'field1' of undefined
Adrian
Top achievements
Rank 1
 answered on 31 May 2012
1 answer
201 views
While the user is in the process of scrolling a grid, I need to prevent ajax polling else the user-experience is bad. I can't figure out how to get scroll events from a grid. My question is: to which DOM element under the grid should I bind the scroll event? I thought it would be the k-grid-content.
Gary
Top achievements
Rank 1
 answered on 31 May 2012
0 answers
143 views
I'm curious if someone can assist in pointing me to either a code snippet or suggested method to get the selected value from a KendoUI combobox within an MVC razor application.

Any help is very much appreciated.  Thanks in advance.
Karl
Top achievements
Rank 1
 asked on 31 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?