Telerik Forums
Kendo UI for jQuery Forum
1 answer
98 views
Hello,

I have an issue which it seems I am unable to solve:

I have a grid, and implemented an own Save-Button (actually a "save and new" button). In the click-handler, I call grid.saveChanges(). But now, how can I set the model before it is sent to the server? There is one field which I have to replace manually. But I just do not see a possibility to do that. The "save" event of the grid gives me access to the e.model, so if I use the standard-Save, everything works fine. But not with my own button...

How could I achieve this?

Thanks a lot,
Volker
Rosen
Telerik team
 answered on 27 Aug 2014
1 answer
122 views
The Kendo UI dojo login does not work for me, meaning, that when I enter all information and click Login, nothing happens, same with Reset password.

Also, this is the second time I've tried to post this note, even though I'm logged into the site.

I am a licensed DevCraft Ultimate user, but still not able to post this note, this is my third attempt.

Thanks,

Bradley
Atanas Korchev
Telerik team
 answered on 27 Aug 2014
7 answers
483 views
We have been using Kendo UI Grid integrated with angularJS, using angular-kendo.js JavaScript library for the integration.

The new release of Kendo UI, which integrates the angular directives with the core Kendo functionality, has broken our application.

 The grid.Destroy() function removes all columns except the  "Quantities" columns, which are array based JavaScript objects.

The "Quantities" columns which are left in the grid following grid.Destroy() are dynamically constructed at run time, since we do not know the number of "Quantities" columns until data is returned from the server.

 All grid data is displayed correctly on initial page load.

 Below is code being used.

 // one row of Jason sent from the server to populate the dataSource:

 
 {"col1":[1,3],"col2":"12345","col3":[1,3],"col4":"Value","col5":1,"col6":"99999","col7":"324567-29","col8":"22222","col9":"true","Quantities":[{"qty":"3",   "modified":"false","status":"A"},{"qty":"3",  "modified":"false","status":""},{"qty":"3", "modified":"false","status":""},{"qty":"3","modified":"false", "status":""}]}

 

 //  Code to dynamically create Quantities columns

// dynamically create column headers for partQuantities

           
// loop through lomPartNumberColumnHears to get column titles

           
var abcQtyColumnHeader = function (field, title, width, attributes, template) {

               
this.field = field;

               
this.title = title;

               
this.width = width;

               
this.attributes = attributes;

               
this.template = template;

           
}

 

           
// get length of ABCColumnHeaders to establish loop for creating partQuantity
column headers

           
var abcLength = ourData.ABCColumnHeaders.length;

 

           
// loop to push partQuantities column header objects onto colDefinitionData
array

           
for (var i = 0; i < ourData.ABCColumnHeaders.length; i++) {

               
var title = ourData.ABCColumnHeaders[i];

               
var QuantityField = "Quantities[" + i + "].qty";

               
var width = "46px";          
var template = "<div value=#if(Quantities[" + i + "].status ==='A'){# #='add'# #} else if(Quantities[" + i + "].status === 'D'){##='delete'# #} else if(Quantities[" + i +"].status === 'C'){##='change'# #}#>#= Quantities[" + i + "].qty #</div>";
var attributes = { style: "text-align:center" };
var abcQuantityColumnHeader = new abcQtyColumnHeader(partQuantityField, title,
width, attributes, template);
colDefinitionData.push(abcQuantityColumnHeader);
}
Atanas Korchev
Telerik team
 answered on 27 Aug 2014
2 answers
422 views
<script type="text/x-kendo-tmpl" id="my-template">
    <ul >
        <li>
        <div onclick="showToggle()"> Show/Hide Form</div>
        <div id="myform"> My Form Stuff</div>
        </li>
    <ul>
</script>

So in the above I want to click on the div or button and what ever and toggle the other part of the list item.
                    <ul data-role="listview" id="myList"
                        data-bind="source: listOfStuff"
                        data-template="my-template"></ul>

now I can't really assign IDs to this. I just want to toggle it with some function like below.  Maybe this is more of a javascript question.  I guess I could also add another variable to my list of objects in my mvvm and then set that to visible true on a click, but I'd rather not add on the to the view model.

function showToggle(){
if ( $('#myform') visible) do
   $('#myform').hide();
else 
  $('#myform').show();
}

danparker276
Top achievements
Rank 2
 answered on 27 Aug 2014
0 answers
72 views
The Kendo UI dojo login does not work for me, meaning, that when I enter all information and click Login, nothing happens, same with Reset password.

Also, this is the second time I've tried to post this note, even though I'm logged into the site.

Thanks,

Bradley
Bradley
Top achievements
Rank 1
 asked on 26 Aug 2014
0 answers
126 views
When I try to login to Kendo UI Dojo, I see a slight spinning on the Login button, but nothing happens. I have tried on Chrome, Firefox, and IE 10. I also was not successful when I tried Reset Password, with the same results, nothing happens when I click on Reset password.

Also, perhaps whoever responds can tell me how to save a Dojo I built, so I can use for demo.

Thanks,

Bradley
Bradley
Top achievements
Rank 1
 asked on 26 Aug 2014
2 answers
1.5K+ views
Hey guys,

Currently if you have a chart and you display the legend, you are able to click items in the legend to show/hide them.  Was wondering if there is a way to do this without the legend displaying, say maybe by clicking a button.

The below example shows the basic chart with a legend and how it can toggle the series by clicking it in the legend:

http://trykendoui.telerik.com/aPUR/2
Daniel
Top achievements
Rank 1
 answered on 26 Aug 2014
3 answers
213 views
Hello,

Due to the introduction of the Toolbar i decided to replace my own toolbars with the Kendo Toolbars.
This all went fine, except now i have a problem with updating the viewmodel.

If i change the value of a data-bound input and click (for example) the save button on the Toolbar,
the blur event of that input never gets called and thus the viewmodel won't be updated.

If i use a KendoButton outside of the Toolbar i have no problems, since the focus changes to the KendoButton and the blur event of the input gets triggered.

I included a jsFiddle to show you what i mean.
http://jsfiddle.net/6mrmb40k/

- Change the value of the input and click the save button on the toolbar.
- Change the value of the input and click the save button outside the toolbar.

Any ideas how to fix this ?

Thanks in advance.

Alexander Valchev
Telerik team
 answered on 26 Aug 2014
3 answers
186 views
Hello,

When I zoom in this demo:
http://demos.telerik.com/kendo-ui/map/index

the marker position isnt preserverd. Is that normal behaviour?

Thanks,
Martin
Iliana Dyankova
Telerik team
 answered on 26 Aug 2014
1 answer
197 views
Hello,

I have a SPA (MVVM) with several views, and 1 of those views has an Editor.
Each view basicly has a "code-behind" viewmodel, which takes care of the functionality of that view.
This includes initialization on creating and cleaning up on destroying the view.

So the Editor is created in the viewmodel constructor like this:

$("#businessnote_edit", element).kendoEditor({
  myEditorOptions
});

After my view and viewmodel got destroyed i noticed in Visual Studio that the main-document in Internet Explorer Always had an extra "blank" page.
So switching back and forth between another view and the view with the Editor ended in having multiple "blank" pages within the main-document.
After checking those pages i came to the conclusion that they were iFrames created by the Editor that never got removed.

Can you confirm this is a bug ?
In the meantime i just remove them manually.

Thanks in advance,
Marcel Brink




Alex Gyoshev
Telerik team
 answered on 26 Aug 2014
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
Marco
Top achievements
Rank 4
Iron
Iron
Iron
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
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
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
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?