Telerik Forums
Kendo UI for jQuery Forum
1 answer
1.2K+ views
Hi,

I have formed tree as below,
A
-B
--C
---D

Now when user clicks on D, I need to list complete parent path in my grid, hence I am trying to figure out a way to get parent(s) text (in an array) that I can use to populate my grid.

Can you please let me know how to do that?

Thanks,
Barani
Alexander Valchev
Telerik team
 answered on 20 Dec 2012
3 answers
433 views
Hello, 
I'm using Kendo Menu

<script>
function onSelected(e) { }
</script>
        <div class="k-rtl" >
            <%= Html.Kendo().Menu()
                .Name("Menu").Events(ev=>ev.Select("onSelected"))
                .Items(items =>
                {
                    items.Add()
                         .Text("menu1")
                         .Items(children =>
                         {
                             children.Add().Text("Sub Item 1");
                             children.Add().Text("Sub Item 2");
                             children.Add().Text("Sub Item 3");
                             children.Add().Text("Sub Item 4");
                             children.Add().Text("Sub Item 5");
                         });

                    items.Add()
                        .Text("menu2")
                        .Items(children =>
                        {
                            children.Add().Text("Sub Item 1");
                            children.Add().Text("Sub Item 2");
                            children.Add().Text("Sub Item 3");
                            children.Add().Text("Sub Item 4");
                            children.Add().Text("Sub Item 5");
                        });

                })
            %>
        </div>
        <div id="contentFrame">
                 <%--<% Html.RenderPartial("~/Views/Ascx/WizardControl.ascx"); %>--%>
        </div>

The view is under master page
I need to load partial view (ascx) dynamically into the div (contentFrame) depending on the selected menu item.

How can I perform this?

Thank you in advance
Shabby
Holger
Top achievements
Rank 1
 answered on 20 Dec 2012
2 answers
239 views
How do you persist state of panelbar items across postbacks?  I am using MVC4 and Razor... with panelbar in a master page _contentLayout f you will... Not sure how I can save the state of items and expanded state easily, don't see any config methods as there might have been in the past with telerik controls.
thanks
Marty
Marty
Top achievements
Rank 1
 answered on 20 Dec 2012
8 answers
471 views
Here is my code

My graph is not displaying please help
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="[chart]" />
</head>
<body>
  <div id="chart"></div>
  <script>
    $(function() {
    var data = [
    {
        "Date": "12/31/2007",
        "IndexValue": 190.68435691915832,
         
    },
   {
        "Date": "1/1/2008",
        "IndexValue": 190.67087650872867,
         
    },
    {
        "Date": "1/2/2008",
        "IndexValue": 190.67087650872867,
         
    },
    {
        "Date": "1/3/2008",
        "IndexValue": 190.67087650872867,
         
    }
     
];
 
                $("#chart").kendoChart({
                    theme: $(document).data("kendoSkin") || "default",
                    title: {
                        text: "Charge current vs. charge time"
                    },
                    legend: {
                        visible: true
                    },
                    seriesDefaults: {
                        type: "line"
                    },
                    series: [{
                       name: "Date",
        field: "Date"
                    }],
                    valueAxis: {
                field: "IndexValue"
    
                            },
                    tooltip: {
                        visible: true,
                        format: "{1}% in {0} minutes"
                    }
                });
       
       
       
       
      
    });
  </script>
</body>
</html>
Iliana Dyankova
Telerik team
 answered on 20 Dec 2012
1 answer
65 views
Is it possible to use style binding within a row template?
Alexander Valchev
Telerik team
 answered on 20 Dec 2012
1 answer
121 views
hi,

can i load a grid with some data coming from a json file remotely and append this by data coming from another json file ? Basically load data from 2 sources one after the other into the same grid.
Dmitry
Top achievements
Rank 1
 answered on 20 Dec 2012
1 answer
124 views
I have used kendo ui grid + mvvm + row template. the template has two datetimepickers. When the grid has 7 rows or more, setting datetimepicker values takes more than 10 seconds. Is it possible to change row template for the current row only?
Alexander Valchev
Telerik team
 answered on 20 Dec 2012
3 answers
416 views

This is my first time using Kendo UI and I'm trying to set up a simple grid with data fed from a json file.

When the page loads, it doesn't display anything and it does not give me any type of error, am i doing anything wrong?

var Data = new kendo.data.DataSource({
          transport: {
              read: {
                  url: "http://localhost:88/Animation.svc/GetProspect",
                  dataType: "json"
              }
          },

      });

      $("#grid").kendoGrid({
          dataSource: Data,
          columns: [
    {
        field: "Date",
        title: "Date"
    },
    {
        field: "Name",
        title: "Name"

    }],
     height: 200,
    scrollable: true,
    pageable: true,
    sortable: {
    mode: "multiple"
    }
      });

This is what the json format looks like:
[{"Date":"12-31-2010","Name":"A","LastName":"B"}, {"Date":"12-31-2011","Name":"B","LastName":"C"}]

Vladimir Iliev
Telerik team
 answered on 20 Dec 2012
1 answer
143 views
Hi,

I need to do some customization on the header row and not sure if this is possible. Please take a look at the attached image. My rows are 2-lines type including my header row. Do you think this is possible on header row with custom row template?

I am sure I can do this on my item rows with custom row template, but not sure if this is possible on the header row as well.

Thanks.
Iliana Dyankova
Telerik team
 answered on 20 Dec 2012
2 answers
254 views

It appears that IE (8,9, not sure about 7) does not support selecting multiple files when uploading files.  I believe this is a browser limitation as Firefox does this without issue.  Is there anything I can do?  This could be a showstopper unfortunately.

tirumala
Top achievements
Rank 1
 answered on 20 Dec 2012
Narrow your results
Selected tags
Tags
Grid
General Discussions
Charts
Data Source
Scheduler
DropDownList
TreeView
MVVM
Editor
Window
DatePicker
Spreadsheet
Upload
ListView (Mobile)
ComboBox
TabStrip
MultiSelect
AutoComplete
ListView
Menu
Templates
Gantt
Validation
TreeList
Diagram
NumericTextBox
Splitter
PanelBar
Application
Drag and Drop
Map
ToolTip
Calendar
PivotGrid
ScrollView (Mobile)
Toolbar
TabStrip (Mobile)
Slider
Button (Mobile)
Filter
SPA
Drawing API
Drawer (Mobile)
Globalization
LinearGauge
Sortable
ModalView
Hierarchical Data Source
Button
FileManager
MaskedTextBox
View
Form
NavBar
Notification
Switch (Mobile)
SplitView
ListBox
DropDownTree
PDFViewer
Sparkline
ActionSheet
TileLayout
PopOver (Mobile)
TreeMap
ButtonGroup
ColorPicker
Pager
Styling
Chat
MultiColumnComboBox
Dialog
DateRangePicker
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Accessibility
Effects
PivotGridV2
Licensing
ScrollView
Switch
TextArea
BulletChart
QRCode
ResponsivePanel
Wizard
CheckBoxGroup
Localization
Barcode
Breadcrumb
Collapsible
MultiViewCalendar
Touch
RadioButton
Stepper
Card
ExpansionPanel
Rating
RadioGroup
Badge
Captcha
Heatmap
AppBar
Loader
Security
TaskBoard
Popover
DockManager
TimePicker
FloatingActionButton
CircularGauge
ColorGradient
ColorPalette
DropDownButton
TimeDurationPicker
ToggleButton
BottomNavigation
Ripple
SkeletonContainer
Avatar
Circular ProgressBar
FlatColorPicker
SplitButton
Signature
Chip
ChipList
VS Code Extension
AIPrompt
PropertyGrid
Sankey
Chart Wizard
OTP Input
SpeechToTextButton
InlineAIPrompt
StockChart
ContextMenu
DateTimePicker
RadialGauge
ArcGauge
AICodingAssistant
SmartPasteButton
PromptBox
SegmentedControl
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?