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

I am using Kendoui treeview in this i need chekboxes for both parent and child,  

when i click on parent, child also should be get selected,

and if i click on child it should display it's node id and parentid,

if i click multiple checkboxes they should display their id's and when i click on delete button all the mutiple selected checked nodes should be removed dynamically. 

Please can you provide me any sample code (or) related example.

Thanks in Advance,
    Durga
Randy
Top achievements
Rank 1
 answered on 28 Aug 2012
0 answers
54 views
KendoUI ver. 2012.2.710

For batch saving (inserts, updates, deletes), how should the server functions(methods) respond back?  For updates, it appears you MUST return the model items (rows) that were saved successfully, or else the grid thinks they were not saved.  It would be more efficient if you could just return the rows that had an error.

What about inserts and deletes?  What should the server return?

The documentation states nothing about it, and Telerik apparently isn't going to answer to anyone asking this question, so I'm hoping somebody out there has done batch and knows what the server should return.

Thanks,
Dean
Todd
Top achievements
Rank 1
 asked on 28 Aug 2012
2 answers
351 views
So I have a template that I made to make it so you can multiselect in a dropdown with checkboxes. It works fine except that when I call the preventDefault() on the close: it just makes the dropdown stay on the screen with no way to close it. I was just wondering if there is a better way to approach this. My code for the dropdown is below.

<body>
    <div>
        <input id="comboBox" />
    </div>
</body>
<!-- Template -->
<script type="text/x-kendo-template" id="scriptTemplate">
   <input type="checkbox" name="#= text #" value="#= value #" ${selected ?"checked" : "" }/>
    <span> #= text # </span>
</script>
<!-- ComboBox initialization -->
<script type="text/javascript">
    var testData = function (text, value, selected) {
        this.text = text;
        this.value = value;
        this.selected = selected;
    };
 
    $(document).ready(function () {
        var data = [
            new testData("Test1", "1", false),
            new testData("Test2", "2", false),
            new testData("Test3", "3", false),
            new testData("Test4", "4", false)];
 
        $("#comboBox").kendoComboBox({
            dataTextField: "text",
            dataValueField: "value",
            template: $("#scriptTemplate").html(),
            dataSource: data,
            placeholder: "Select...",
            close: function (e) {
                e.preventDefault()
            }
        });
        var ddl = $("#comboBox").data("kendoDropDownList")
 
 
    });
    
</script>
</html>
TJefferson
Top achievements
Rank 1
 answered on 28 Aug 2012
1 answer
150 views
Since I am behind a corporate firewall and have no way of giving test data to experiment I am again attaching a video in hopes someone can give me a few pointers and a nudge in the right direction....

I have a grid w/ subgrid

I have fields in the row that depending on the value of one of the fields want to have additional fields either set to editiable: true or editiable: false depending on the value of the dropdown

As you can see in the video ... if Installed or Recommended is selected from the dropdown nothing else needs to be editable

If Different is chosen all should be editable
If Not required just reason and contact

Also I am basing the dropdown on the value of the flags for the different types of justifications for each row
the id is tied to the id in the database for that row

if I wanted to change the value but display the text of the selected item in the row how could I do that?





Daniel
Telerik team
 answered on 28 Aug 2012
2 answers
237 views
The sample code by Alexander Valchev posted at Grid Custom Popup Editor shows javascript code in the popup window when using kendoui 2012 Q2 release 2012.2.710. To reproduce, edit the html page to use version 2012.2.710, and click on one of the edit buttons.
Bryan
Top achievements
Rank 1
 answered on 28 Aug 2012
1 answer
342 views
Where can I download the non-minified version of kendo web?
Thanks in advance :)
Ryan
Top achievements
Rank 1
 answered on 28 Aug 2012
1 answer
128 views
Hi,
I am told that the splitter is not working i.e. not resizable on an iPad. Can anyone confirm this and are there plans to fix it?

Regards
Nohinn
Top achievements
Rank 1
 answered on 28 Aug 2012
1 answer
132 views
How do I format a date that is coming in like this: 2012-08-23T14:53:08.02 ?
I've got the grid column defined with a template 

template: '#= kendo.toString(DateReceived, "MM/dd/yyyy") #'

But it's not working. Data is coming from a Web API method and in the model it's a DateTime property. 
Rayne
Top achievements
Rank 1
 answered on 28 Aug 2012
3 answers
501 views
I'm using kendo upload with Rails, and I had to hack the kendo.upload.js source code to get a feature that didn't seem to be apparent.

Basically, we need to submit a custom anti-CSRF token with every POST.

In kendo.upload, there is the method:

function getAntiForgeryTokens() {
    var tokens = { };
    $("input[name^='__RequestVerificationToken']").each(function() {
        tokens[this.name] = this.value;
    });
 
    return tokens;
}

However, in Rails, this token is called authenticity_token. It seems like we have to do something like this:

$(thing).kendoUpload({
  // ...
  upload: function(event) {
    event.data = {
      authenticity_token: $("input[name=authenticity_token]").val()
    };
  }
});

Can we get authenticity_token added by default in the future? :)
T. Tsonev
Telerik team
 answered on 28 Aug 2012
4 answers
348 views
Hello, I notice on the home page of the Kendo site it lists IE7+ as a supported browser.  My client has some IE 7 machines.  When I test my samples on either IE8 in compatibility mode, or IE7 native, they do not work.  I get the javascript error "JSON not defined".

Also, see the attached picture on how the Keno UI Demo site renders on my IE7 machine.

Thanks,
Eric
Top achievements
Rank 2
 answered on 28 Aug 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
Map
Drag and Drop
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
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?