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

I have four multiSelects that contain hierarchical data so that  level 4 item knows its parents in level3, level2, and level1 and so on.

Each of multiselects has their own remote dataSource. Everytime when a dataSource requests for items from server the parameterMap function reads selections from its "parent" multiselects and puts them as parameters to request. I also attach the multiSelect's search text as parameter to the request.

Like this way:
$("#level3-multiselect").kendoMultiSelect({
        autoBind: false,
        dataTextField: "name",
        dataValueField: "id",
        dataSource: {
            serverFiltering: true,
            transport: {
                dataType: "jsonp",
                read: baseurl: 'http://myurl'
                parameterMap: function(options, operation) {                   
                    var _name = "";                   
                    if ('filter' in options && options.filter.filters.length > 0) {
                        _name = options.filter.filters[0].value;
                    }
                    return {
                        level1ids: getLevel1Ids().join(),
                        level2ids: getLevel2Ids().join(),                       
                        name: _name
                    }                      
                }
            },
            schema: {
                data: "items"
            }
        }
    });

My problem is that the multiselects parameterMap function is fired only when I change the text in that particular box. In additon to that, I would also like to run parameterMap function every time when a parent-level selection changes. I know there is a 'selected' event in multiSelect widget, but how can I call parameterMap function of a multiSelects dataSource?

Olli
Olli
Top achievements
Rank 1
 answered on 11 Sep 2013
1 answer
79 views
I'm having a problem with the Kendo UI mobile framework, my mobile website contains form input fields. Some have a declared type "date"or "time" and when clicking these it opens up the native selection method for this type of form. Unfortunately when "accepting"or clearing the input with this it crashes the mobile browser.

Testing was done with a Samsung Galaxy Note - Android version 4.0.3 , hope you can help with fixing this issue
Kamen Bundev
Telerik team
 answered on 11 Sep 2013
4 answers
408 views
Good morning, in our project our server expects time values to be a string in 24-hour format (HH:mm:ss).However we want to use timepickers that display 12-hour format with AM/PM (hh:mm tt) to the end user. Right now I am using:

$('.timePicker').kendoTimePicker(
{  
      format: "hh:mm tt"
      parseFormats: ["HH:mm:ss"]
});

and this works fine in terms of displaying the correct value from the database. However the problem is that the value of the field is saving back out to 12-hour format (hh:mm tt) instead of 24(HH:mm:ss).  

What can I do to display 12-hour format but save 24-hour?

Thank you, 

Guillermo Sanchez.


Alexander Popov
Telerik team
 answered on 11 Sep 2013
3 answers
238 views
Hello,

I looked at the view-demo (local view/remote view) and would like to know, if it is preferably to keep all the views in a mobile app in one single large file - if possible - or better to split them up in separate files? What is best practice? Any concerns when using Phonegap?

Thanks in advance
Per
Petyo
Telerik team
 answered on 11 Sep 2013
1 answer
293 views
My application features many modals, all with different widths. I understand you can set the width of a modal inline by doing something like:width: 400px margin-left: -200px;This works when the window is at 100%, but if you resize the window and it gets down to a small enough width the window is now -200px off of the screen. If I don't use margin-left: -200px then the window is not centered on the page at all.

In summary, I want to be able to set different widths to my modal windows, have them center on the screen when opened, and if the screen is resized the modal window needs to slide and stay in the center of the screen.

There has to be a more effieicent way to center these modal windows...

Any help is greatly appreciated.


Dimo
Telerik team
 answered on 11 Sep 2013
1 answer
115 views
Hello there. 
I am using kendo Mvc Ui on my application. 
In my scenario I have to used a tree view on the left side, and on the right the details section. when i click a node from the tree view, on details section it will show its details.

It is fine upto now, now the problem is like I need to show records from two tables on the tree.
Like, I have a sector table, Id and Name, another table category is Id, SectorId and name.
So now I have to bind the grid as
Sector1
      Category1
      Category2
             Category2-1
              category2-2
 
Sector2
      Category1
      Category2
             Category2-1
              category2-2
and it is based on ajax data source.

here is my configurations
@(Html.Kendo().TreeView()
   .Name("categoryList")
   .DataTextField("Name")
   .DragAndDrop(true)
   .DataSource(ds =>
   {
       // ds.Read("ajaxCateegoryList", "category");
       ds.Read(read => read.Action("ajaxCateegoryList", "category"));
   })
   .Events(evt =>
               {
                   evt.Expand("expandHandler");
                   evt.Select("selectedHandler");
               })
   )
My controller

public JsonResult ajaxCateegoryList(string id)
       {
           if (string.IsNullOrEmpty(id))
               id = Request.QueryString["id"];
 
           var cats = new List<Category>();
 
           if (!string.IsNullOrEmpty(id))
               cats = _categoryService.GetAllCategoriesByParentCategoryId(Convert.ToInt64(id)).ToList();
           else
               cats = _categoryService.getAllParentCategories();
 
 
           var model = cats.Select(x =>
               {
                   return new
                   {
                       id = x.Id,
                       Name = x.Name,
                       hasChildren = _categoryService.GetAllCategoriesByParentCategoryId(x.Id).Count > 0
                   };
               });
 
           return Json(model, JsonRequestBehavior.AllowGet);
       }
This one is being used for only category navigation. I m clue less how to make it sector base from ajax datasource, I means how the tree will understand what is sector and what is category.
Alexander Popov
Telerik team
 answered on 11 Sep 2013
1 answer
111 views
I have an object that is nested, and want to have a grid that shows a hierarchy from that, without (as the examples are shown) ajax to get the data for each parent.  Is that possible?

For example
The object (Authors) with a Books Collection.

I don't want to query through to an object to get the books for each author, rather I've already got it.

Does the hierarchy require Ajax calls via DataSource()?


Nikolay Rusev
Telerik team
 answered on 11 Sep 2013
1 answer
65 views
Hi,
can you please change jquery.min to jquery-min in the next upgrade?

it will help anyone who uses MVC as jquery-min is loaded first by default.

P.S.
of course there is a workaround but it is still better to have the defaults synchronized
Kiril Nikolov
Telerik team
 answered on 11 Sep 2013
4 answers
160 views
Hi All,

I have a listview that binds to a list of products. Products have a quantity property, which will be specified by users.
I'd like to allow user to adjust quantity using "-" or "+" buttons. Basically, something like this: 

 
 Product Name                                               - (10) + 

Could anyone help me with this? A jsfiddle snippet would be perfect. 


Thanks, 
Jeff
Top achievements
Rank 1
 answered on 10 Sep 2013
1 answer
161 views
Hi,

I'm trying to build a site to 640px wide and have it scale to the width of whichever device you're using. I'm currently testing on a Galaxy Nexus, at 480px wide and of course it's not displaying the entire width of my site. 

I see that Kendo sets the viewport meta itself and that it's ill-advised to override it, but is there another way to achieve this?

Regards,
K.
Kamen Bundev
Telerik team
 answered on 10 Sep 2013
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
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?