Telerik Forums
Kendo UI for jQuery Forum
1 answer
584 views
Hi,

I'm using cascading comboboxes like in the Kendo UI samples.

Everything works fine, but I don't want to enable the Checkbox once it is cacaded. I'd like to decide based on other facts if the Combobox whether should be enabled or not.

So how can I disable the feature, that the second combobox is automatically enabled?

Greets
Jayesh Goyani
Top achievements
Rank 2
 answered on 21 Dec 2012
2 answers
212 views
Hi,
I am using the grid to do the following

 

 

 

function BindDataToGrid(Data) {

 

 

 

var dataSource = new kendo.data.DataSource({

 

pageSize: 30,

data: Data,

autoSync:

 

true,

 

schema: {

model: {

id:

 

"ModuleID",

 

fields: {

ModuleID: { editable:

 

false, nullable: true },

 

Name: { editable:

 

false, nullable: true },

 

View: { editable:

 

false, nullable: true },

 

Add: { editable:

 

false, nullable: true },

 

Delete: { editable:

 

false, nullable: true },

 

IsDefault: { editable:

 

false, nullable: true }

 

}

}

}

});

$(

 

"#roleAccessGrid").kendoGrid({

 

dataSource: dataSource,

pageable:

 

true,

 

height: 260,

 

columns: [

{ field:

 

"Name", width: 120, title: "Module Name " },

 

 

 

//{ field: "ProductName", title: "Product Name" },

 

 

 

 

 

{field:

 

"View", width: 50, title: "View", template: '<input type="checkbox" # if(View==true){ # checked #} #></input>' },

 

{

field:

 

"Add",

 

width: 50,

title:

 

"Add",

 

template:

 

"<input type='checkbox' id='chkAdd' # if(Add==1){ # checked=checked #} # />"

 

 

 

 

 

},

{

field:

 

"Edit",

 

width: 50,

title:

 

"Edit",

 

template:

 

"<input type='checkbox' id='chkEdit' # if(Edit==1){ # checked #} # />"

 

 

 

 

 

},

{

field:

 

"Delete",

 

width: 50,

title:

 

"Delete",

 

template:

 

"<input type='checkbox' id='chkDelete' # if(Delete==1){ # checked #} # />"

 

 

 

 

 

},

{

field:

 

"IsDefault",

 

width: 50,

title:

 

"IsDefault",

 

template:

 

"<input type='checkbox' id='chkIsDefault' # if(IsDefault==1){ # checked #} # />"

 

 

 

 

 

}

],

editable:true 

});



My problem is that I am unable to retrieve the value after making a change on the check box.

Thanks in advance

Vijay
Top achievements
Rank 1
 answered on 21 Dec 2012
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
434 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
240 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
473 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
125 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
417 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
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
Drag and Drop
Application
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?