Telerik Forums
Kendo UI for jQuery Forum
0 answers
81 views
Hello,

Is there a way to confirm changes in the DataSource without sending them to the server?
It means that I want to change some fields in the dataSource's collection and then say to him that this is an actual state.

It is needed when I receive an update of the data from another service and want to update my datasource to the new actual state (without re-reading all data from the server to this datasource).

Vladimir
Volodymyr
Top achievements
Rank 1
 asked on 26 Oct 2012
0 answers
158 views
Hi, I am using a treeview to create and modify an organizational structure. Does somebody know how to send the treeview data, toward the server in order to save it in the database?


Thank you very much!



Magally
Top achievements
Rank 1
 asked on 26 Oct 2012
0 answers
83 views
Is there a way to adjust column width for bar charts using Dataviz configuration? I didn't see it in the documentation. Thanks
Tong
Top achievements
Rank 1
 asked on 26 Oct 2012
0 answers
74 views
Hello,

I am impressed by the Icenium UI, it looks very clean and demonstrates the power of Kendo UI. Do you think you can provide a sample project that explains how to make such a rich application with various Kendo UI elements? I am sure it would be beneficial to existing users and potential new customers who are evaluating your product (such as myself).

Thank you,
Daniel
Daniel
Top achievements
Rank 1
 asked on 26 Oct 2012
0 answers
66 views
By default, they appear left aligned, but I'd like to right align them like most Microsoft applications.  The catch is that I don't want to this to apply to all the buttons.  I just want the buttons in the pop-ups to be right aligned.  Thanks for any clues.
Alex
Top achievements
Rank 1
 asked on 26 Oct 2012
1 answer
113 views
Hi,

Grid in Internet explorer 8 bd modifies registry, but does not update the grid.
I have to recompile the application

I haven't problem in chrome.


Vladimir Iliev
Telerik team
 answered on 26 Oct 2012
1 answer
99 views
I have a web page with a kendo UI grid on it.

Take for example that i sort the grid data on field B and navigate to page 4 of the 6 pages data i have.
Next i use a hypelink to goto a another page (example www.google.com).
Now when i use the back button of my browser (IE or Chrome) the grid displays page 1 and the sort on field B is gone!

Is there a way to keep the view of the grid page the same as i left it when i hit the hyperlink?

Strangly enough it seems to work just fine on my iPad (Safari).

steven
Top achievements
Rank 1
 answered on 26 Oct 2012
1 answer
214 views
Hi

When I start inline editing a row and then click the cancel button then kendoui delete the row from the local viewmodel

I'm using a local viewmodel which i bind to my grid like the following:
<div id="prodReportGrid" data-bind="source:ProductionReports">
</div>

and then i have the following init of the grid:
$("#prodReportGrid").kendoGrid({
      dataSource: {
        pageSize: 50,
        schema: {
            model: {
                id: "ProductionReportId",
                fields: {
                    ProductionReportId: { editable: false, nullable: true },
                    ReportDateFrom: { type: "date", validation: { required: true } },
                    ReportDateTo: { type: "date", validation: { required: true } },
                    ProdAmount: { type: "number", validation: { required: true, min: 1} }
                }
            }
        }
      },
      pageable: true,
      sortable: true,
      height: 350,
      toolbar: ["create"],
      columns: [
        { field: "ReportDateFrom", width: "100px", format: "{0:g}", editor: DateTimeEditor },
        { field: "ReportDateTo", width: "100px", format: "{0:g}", editor: DateTimeEditor },
        { field: "ProdAmount", title: "ProductionAmount", format: "{0:n}", width: "100px" },
        { command: ["edit", "destroy"], title: " ", width: "210px" }],
      editable: "inline"
    });
  });

Is this a bug inside KendoUI or did I missed something?
Tushar
Top achievements
Rank 1
 answered on 26 Oct 2012
1 answer
182 views
Hi,

I'd like to provide data icon attribute to items inside a listview bound to a data source and that uses a template. As 'li' element is added internally when data source is provided to the listview, I can't find any way to show the icon on item's left side.

Thanks
Petyo
Telerik team
 answered on 26 Oct 2012
1 answer
678 views
I am using kendoui widgets with knockoutjs for datasource. I have a checkbox that is data bound to `StartClientFromWebEnabled` observable variable. An input text box is visible only when the checkbox ic checked (`StartClientFromWebEnabled` is true). The input has a required attribute. I want the required validation to be triggered only when the checkbox is checked.


Here is my html: 
 
    <table>
        <tr>
            <td><label for="startClientFromWebEnabled">Client Launch From Web:</label></td>
            <td><input type="checkbox" id="startClientFromWebEnabled" name="startClientFromWebEnabled" data-bind="checked: StartClientFromWebEnabled, enable: IsEditable" onchange="startClientFromWebToggleRequiredAttribute()" /></td>
        </tr>
        <tr data-bind="visible: StartClientFromWebEnabled">
            <td><label for="mimeType">Protocol:</label></td>
            <td>
                <input  id="mimeType" name="mimeType" data-bind= "value: MimeType, enable: IsEditable" />
                <span class="k-invalid-msg" data-for="mimeType"></span>
            </td>
        </tr>
    </table>


I tried some scenarios including setting `onChange event` on the checkbox with the following javascript function adding and removing the required attribute:


    startClientFromWebToggleRequiredAttribute = function () {
        var checkbox = document.getElementById("startClientFromWebEnabled");
        var mimeType = document.getElementById("mimeType");
        if (checkbox.checked) {
            mimeType.setAttribute("required", "required");
        }
        else {
            mimeType.removeAttribute("required");
        }
    }


The problem is I will need this functionality for many dependent properties in my application and my option is to make this function generic with some parameters and call it from the html with the corresponding paramater values like this:


    toggleRequiredAttribute = function (checkboxElement, inputElement1, inputElement2 ... ) {
        var checkbox = document.getElementById(checkboxElement);
        var inputElement1 = document.getElementById(inputElement1);
        if (checkbox.checked) {
            inputElement1.setAttribute("required", "required");
        }
        else {
            inputElement1.removeAttribute("required");
        }
    }


    <input type="checkbox" id="startClientFromWebEnabled" name="startClientFromWebEnabled" data-bind="checked: StartClientFromWebEnabled, enable: IsEditable" onchange="toggleRequiredAttribute('startClientFromWebEnable', 'mimeType')" />


I really do not like this scenario. I wonder is there something like a conditional validation in kendoui that trigger only when some condition is satisfied. Any other suggestions are also welcome. 
Jayesh Goyani
Top achievements
Rank 2
 answered on 26 Oct 2012
Narrow your results
Selected tags
Tags
Grid
General Discussions
Charts
Data Source
Scheduler
DropDownList
TreeView
MVVM
Editor
Window
Date/Time Pickers
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)
SPA
Filter
Drawing API
Drawer (Mobile)
Globalization
Gauges
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
MultiColumnComboBox
Chat
DateRangePicker
Dialog
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
OrgChart
TextBox
Effects
Accessibility
ScrollView
PivotGridV2
BulletChart
Licensing
QRCode
ResponsivePanel
Switch
Wizard
CheckBoxGroup
TextArea
Barcode
Breadcrumb
Collapsible
Localization
MultiViewCalendar
Touch
RadioButton
Stepper
Card
ExpansionPanel
Rating
RadioGroup
Badge
Captcha
Heatmap
AppBar
Loader
Security
Popover
DockManager
FloatingActionButton
TaskBoard
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
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?