Telerik Forums
Kendo UI for jQuery Forum
0 answers
132 views
Hi all,

i have refered video(Get Started With The Kendo UI DataSource) provided 
by kendo team and i have tried to do the same, but on click of create-click button 
create: {} section of datasource is not called. as per video on click of create 
button create:{} section will be called automatically.
 please find the code example below. 
 $(document).ready(function () {             // --------------------------------------------------------------------------------             // DataTable Section             // --------------------------------------------------------------------------------             clinetDataSource = new kendo.data.DataSource({                 batch: true,                 editable:true,                 transport: {                     create: {                         url: _WebServiceAddress + "Client/Client",                         contentType: "application/json; charset=utf-8",                          type: "POST"                      },                     read: {                         url: _WebServiceAddress + "Client/ClientTable",                          datatype: "odata"                     },                     parameterMap: function (data, operation) {                         if (operation !== "read" && data.models) {                                        return { models: kendo.stringify(data.models) };                                    }                                    else if (operation != "read") {                                        // web service method parameters need to be send as JSON. The Create, Update and Destroy methods have a "products" parameter.                                        return JSON.stringify(data)                                    }                     }                 },                 schema: {                     model: clientModel                 },                 pageSize: 10,                 batch: true             });             var clientModel = kendo.data.Model.define({                 id: "RecId",                 fields: {                     RecId: { editable: false, nullable: true },                     ClientName: { type: "string" },                     ResponsibleName: { type: "string" },                     IsActive: { type: "boolean" }                 }             });              _Table=   $("#tableClientDetails").kendoGrid({                     columns: [                      {field: "RecId", title: "Action", width: 50,                       template: '<img class="buttonEditTable" id="buttonEditTable_#=RecId#" alt="#= RecId #" src="/Desktop/Global/Images/DataTable/Edit.png"/> '                      },                     { field: "ClientName", title: "Name" },                     { field: "ResponsibleName", title: "Contact Person" },                     { field: "IActive", title: "Active", width:100,                         template: '<input class="checkboxActive" id="checkbox_#=RecId#" type="checkbox" #= IsActive ? "checked=checked" : "" # ></input>'                     }                 ],                     dataSource: clinetDataSource,                    groupable: true,                      filterable: true,                     sortable: true,                     pageable: true,                     scrollable:false,                     editable: true                 });                            });                         $("#create-client").click(function () {                 clinetDataSource.add({                     Address: $("#textareaAddress").val(),                     ResponsibleEmailAddress: $("#fieldContactPersonEmailId").val(),                     Telephone: $("#fieldTelephone").val(),                     City: $("#fieldCity").val(),                     State: $("#selectState").find(':selected').text(),                     Country: $("#selectCountry").find(':selected').text()                 });                 clinetDataSource.sync();                             }); please advice. how create:{}/update:{} will be called. Thanks, Shankar
Shankar
Top achievements
Rank 1
 asked on 10 May 2012
0 answers
96 views
I need an analog component RadDiagram on Silverlight(http://www.telerik.com/products/silverlight/controls/diagrams.aspx 
)
. Will it in Kendo? When? I need in this widget. Sorry, my English so bad =)
Ruslan
Top achievements
Rank 1
 asked on 10 May 2012
5 answers
244 views
I'm trying to add a Kendo window to an existing .NET Webforms project. Unfortunately, the window moves the window contents to just before the closing body tag. The problem with this is that I have a button that needs to remain inside of the page's main form.

Attempting to detach and then append the k-window div fixes the button issue, but on closing the window the overlay does not disappear. Any suggestions?
Prashanth
Top achievements
Rank 1
 answered on 09 May 2012
7 answers
201 views
Hello,

I want to get the grid's selection which is inside a parent Grid (in hierarchy way).
I tried this : http://jsfiddle.net/E9HAt/6/ but it doesn't seem to work.

Do you have any idea to achieve that ?

Regards,
Guillaume
Boris
Top achievements
Rank 1
 answered on 09 May 2012
0 answers
104 views
I'm using the Kendo ComboBox with an <asp:TextBox> and a DataSource which filters over about 6k records. Then the user chooses one value and saves it. When the page is loaded again, I need to bring the ComboBox populated with the choosen value. What I save is an Id (the dataValueField) but displaying a Name (the dataTextField, something really common).

I tried using $("#myField").data("kendoComboBox").value(myId) but it just shows this Id in the ComboBox span. If I search the Name and put it on my TextBox, the Name is shown nicely, but the value isn't assigned, what will cause problems if the users wants saving again.

It would be nice to do it the right way just with the Page_Load, and not forcing an Ajax request when the page comes to the user, which was the only way I can deal with it until now.

What is the right approach to bring the ComboBox filled with the desired value during my Page_Load, showing the Name as the current text but bringing also the Id to use as the current value of ComboBox?
Erick
Top achievements
Rank 1
 asked on 09 May 2012
0 answers
170 views
Hello, 

   I have a problem to validate a DatePicker. There it is :

   If the user enters a invalid DateTime, the DatePicker's value returns null, but I want to know what he entered to do something about it.
   I cannot deal with a null value because my datepicker can be empty wich is also a null value.
   
   Exemple :  if the user enters 62/01/2012, the value of the datepicker is null and I want to get 62/01/2012 even if it's wrong.

  So, any ideas on how I can either get the wrong value or even get to know directly from the datepicker if the value is valid?
Alexandre
Top achievements
Rank 1
 asked on 09 May 2012
2 answers
103 views
I want to implement traditional anchor names to allow the user to jump down the page to view navigation below the primary content, and from there to jump back to top - this appears to be in conflict with the way view navigation works, however - i.e. whether via KUI button or vanilla link, it results in "loading..." while the page tries to move to a non-existent view - is there a workaround, or am I missing something, or ?  Thanks! :)
DJG
Top achievements
Rank 1
 answered on 09 May 2012
1 answer
3.6K+ views
Do anyone have an example of template column that uses a data field to build a url?
Phillip
Top achievements
Rank 2
 answered on 09 May 2012
3 answers
96 views
 Hi to all :

All I need to learn is : Is that possible to make chart of a log which comes with separate sheet and updates itself every lets say 30 sec.?
If yes , can you please provide a example ?
lets say my log has these information and keeping in document named  " try.json"  (this file updates itself ever 30 sec.)


 [ { "year": "2000", "sales": 200 }, 
  { "year": "2001", "sales": 450 }, 
  { "year": "2002", "sales": 300 }, 
  { "year": "2003", "sales": 125 }
]

Iliana Dyankova
Telerik team
 answered on 09 May 2012
1 answer
165 views
and also Data Source assigning...

give me any example

Thanks for your reply...  
Vesselin Obreshkov
Top achievements
Rank 2
 answered on 09 May 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
MultiColumnComboBox
Chat
DateRangePicker
Dialog
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Effects
Accessibility
PivotGridV2
ScrollView
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
TaskBoard
Popover
DockManager
FloatingActionButton
CircularGauge
ColorGradient
ColorPalette
DropDownButton
TimeDurationPicker
ToggleButton
TimePicker
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
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?