Telerik Forums
Kendo UI for jQuery Forum
1 answer
120 views
Hi:

productsSource = new kendo.data.HierarchicalDataSource({
                                data: [
                                    { text: "Furniture", id:"1", items: [
                                        { text: "Tables & Chairs", id:"11"},
                                        { text: "Sofas", id:"12"},
                                        { text: "Occasional Furniture", id:"13"}
                                    ] },
                                    { text: "Decor", id:"2", items: [
                                        { text: "Bed Linen", id:"21"},
                                        { text: "Curtains & Blinds", id:"22"},
                                        { text: "Carpets", id:"23"}
                                    ] }
                                ]
                        }),  

only return:

text: "Furniture", id:"1" 
text: "Decor", id:"2" 

then:

getByUid don't see


  { text: "Tables & Chairs", id:"11"},
  { text: "Sofas", id:"12"},
  { text: "Occasional Furniture", id:"13"} 

 { text: "Bed Linen", id:"21"},
{ text: "Curtains & Blinds", id:"22"},
 { text: "Carpets", id:"23"} 

thank's



Kyle
Top achievements
Rank 1
 answered on 13 Aug 2012
5 answers
190 views
Does anyone now of a way to increase the row height of child elements in the panelbar?  I have found that increasing the font size does increase the row height but long strings end up wrapping and this is not what I want.  

Thanks,
Casey
John DeVight
Top achievements
Rank 1
 answered on 13 Aug 2012
2 answers
198 views
After loading the HTML content of a Kendo().Window() from the server, I'd like to call a JavaScript function to set up event handlers for DOM elements in the content.  I don't see an event definition for the completion of LoadContentFrom().  What's the best way to go about doing this?

Thanks,

--Ravi
Ravi
Top achievements
Rank 1
 answered on 13 Aug 2012
0 answers
161 views
Do Hierarchial Data Sources & Templates work well together? Would it be possible to get an example of such a thing?
Kyle
Top achievements
Rank 1
 asked on 13 Aug 2012
1 answer
98 views
Hi

Is it possible to have an area chart without the gaps to left and right of the chart area? (see image attached)

Hristo Germanov
Telerik team
 answered on 13 Aug 2012
0 answers
190 views
Hi everyone.

I have an issue with some comboboxes which I create dynamically inside a template for a listview.

I need to be able to get the value of the combobox when a button is clicked and use that value to update my datasource. My problem is that I cannot isolate the combobox in order to get the data.

Can someone please have a look at my code and give me some ideas??

Template:

<script type="text/x-kendo-template" id="packagesTemplate">       
        <h3 class="item-title">${Name}</h3>
        <p class="item-info">Status: ${Status}</p>                
        <select data-role="comboBox" id="select#:id#" >
        <option value="Pending">Pending</option>
        <option value="Delivered">Delivered</option>
        <option value="Damaged">Damaged</option>
        <option value="Refused">Refused</option>
        </select>   
         
        <a data-role="button" data-item-id="#:id#" data-click="saveChanges" class="details-link">Save Changes</a>

I have no problem getting the dataItem from the button click (var button = e.button). Is there no way to get the combobox in a similar fashion? (var combo = e.comboBox)? I have tried everything I can think of and nothing seems to be working.

Button Click: (This must get the combobox value/text)

function saveChanges(e) {
            var button = e.button,
                item = packageDataSource.get(button.data("itemId"));
            console.log(item);
        }
Devon
Top achievements
Rank 1
 asked on 13 Aug 2012
0 answers
176 views
hi,
I want to pass an array from view to the controller using parameterMap as shown below
parameterMap:
                        function (data, options) {
                            if (options === "read") {
                                val = sessionStorage.getItem("value");           // contains array
                                return kendo.stringify(val);

                            }
                        }
but i am not able to retrieve those values in the controller.can u tell me how to pass an array from view to the controller using parametermap.
charan
Top achievements
Rank 1
 asked on 13 Aug 2012
2 answers
643 views
Hi everyone,

I'm trying to display items containing html inside a dropdown.

So as an example let's imagine I got some items like :

var tMyItems = [{ value : "0", template: "<div class='myclass'><p>Item 1</p></div>"  },
{ value : "1", template: "<div class='myclass'><p>Item 2</p></div>"  }]

Im binding them to a dropdown using

 $("#LayoutDDL").kendoDropDownList({
        dataSource: tMyItems  
        dataTextField: "template",
        dataValueField: "value"
 });

And I would like to see each item content interpreted as html (no markups, css applied ..) So far I'm seeing the item itself but the html is not interpreted.

Is there anyways to handle that with the dropdown ?

Thanks,

Damien


Courouble Damien
Top achievements
Rank 1
 answered on 13 Aug 2012
2 answers
256 views
This is just a static table I'd like to apply the overall Kendo css theme of my site to. Unfortunately, I cannot get rid of the vertical scroll to the right of the table. I've tried everything. Any ideas?  


<div class="k-widget k-grid" id="Grid">
      <div class="k-grid-header">
        <div class="k-grid-header-wrap">
          <table cellspacing="0">
            <tr>
              <th>Type</th>
              <th>Estimate</th>
              <th>Actual</th>
              <th>Description</th>
            </tr>
          </table>
        </div>
      </div>
      <div class="k-grid-content">
        <table cellspacing="0">
          <colgroup>
            <col />
            <col />
            <col />
            <col />
            <col />
          </colgroup>
          <tbody>
            @foreach (var item in Model.EventFundings)
            {
                                     <tr >
                                      <td>
                                        @item.FundingCostTypeTitle
                                      </td>
                                      <td>
                                        @item.EstimateCost
                                      </td>
                                      <td>
                                        @item.ActualCost
                                      </td>
                                      <td>
                                        @item.Description
                                      </td>
                                    </tr>
            }
          </tbody>
        </table>
      </div>
    </div>
Ryan Lege
Top achievements
Rank 1
 answered on 13 Aug 2012
0 answers
164 views
Hi,

I am having a listview with 4 list items.Each item consists of a check box and when ever i am clicking the checkbox it is selecting the list view.But again when i click on another list view item's checkbox it is selecting and the first listview item is deselecting.
What i want is i want all the listviews selected when the check box is selected.
How can i able to do that 

Please provide me sample or an example 


Thanks and Regards,
Srinivas
srinivas
Top achievements
Rank 1
 asked on 13 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?