Telerik Forums
Kendo UI for jQuery Forum
1 answer
493 views
hi,
i want validate my dropdown list, just i want to check the dropdown have any value..
please give a solution
my code is
<form method="post" action="/UploadAthletes/UploadReturn" name="second" id="second" enctype="multipart/form-data">
                                <div id="crt">
                                    <label for="Coach" class="col-lg-4 col-sm-5 col-xs-11">Select Coach</label>
                                    <span class="k-invalid-msg" data-for="name"></span>
                                    <ul>
                                        <li style="padding-left:10px;" class=" col-lg-4 col-sm-5 col-xs-11">
                                            @(Html.Kendo().DropDownList()
                                      .Name("sp")
                                      .HtmlAttributes(new { style = "width:100%" })
                                      .OptionLabel("Select Coach...")
                                                      .DataTextField("CoachName")
                                                      .DataValueField("CoachID")
                                      .DataSource(source =>
                                      {
                                          source.Read(read =>
                                          {
                                              read.Action("GetCoach", "UploadAthletes");
                                          });
                                      })
                                            )
                                        </li>
                                    </ul>
                                </div>


Alexander Popov
Telerik team
 answered on 03 Apr 2014
1 answer
160 views
Hello,

I'm using a kendo mobile drawer on both sides of our Phonegap mobile app.  I recently updated to 2014.1.321 and also 2014.1.328 .  I'm now seeing an issue with the right drawer.  When I open any UI view from the right drawer, it should open the view in middle screen.  This worked fine before the latest internal builds.  What I'm seeing now is it opens the view in the right drawer.

Is this a bug, or has the api maybe changed?

  Nick
Kiril Nikolov
Telerik team
 answered on 03 Apr 2014
2 answers
283 views
Hello,
I'm trying to bind a grid to the Model's property in the Popup Edit template. I need to attach some events to the grid, but it requires an object to do so. I can't find a way to bind an observable to the grid definition from the Model.

Here's the class Definition:
public class PopupBind
        {
            public PopupBind()
            {
                this.PopupBind1= new List<PopupBind1>();
            }

            public int primaryKey{ get; set; }
            public string bindData{ get; set; }
            public virtual IEnumerable<PopupBind1> PopupBind1{ get; set; }
        }

public class PopupBind1
        {
            public int primaryKey{ get; set; }
            public string Name{ get; set; }
            public string Value{ get; set; }
        }

Grid Defintion
@(Html.Kendo().Grid<PopupBind>()
      .Name("bound")
      .Columns(columns =>
      {
          columns.Bound(ad => ad.bindData).Title("Name");
          columns.Bound(ad => ad.PopupBind1).ClientTemplate("# if( typeof PopupBind1!= 'undefined' ) { #" +
                                                                   "# PopupBind1.forEach(function(element, index, array){ #" +
                                                                   "<div>"+
                                                                   "#= element.Name# (#=element.Value# %)" +
                                                                   "</div>" +
                                                                   "# }) } #").Title("Bind1");
        
          columns.Command(command =>
          {
              command.Edit();
          });
      })
      .Editable(editable =>
      {
          editable.Mode(GridEditMode.PopUp).TemplateName("EditPopupBind");
          editable.Window(window => window.Width(600));
      })
      .ToolBar(toolbar => toolbar.Create())
      .DataSource(dataSource => dataSource.Ajax()
          .Batch(true)
          .Model(model =>
          {
              model.Id(ad => ad.primaryKey);
              model.Field(ad => ad.PopupBind1).Editable(false).DefaultValue(new Collection<PopupBind1>());
          })
          .Read("GetPopupBind", "popup")
          .Update("UpdatePopupBind", "popup")
          .Create("CreatePopupBind", "popup")
      ))


EditPopupBind.cshtml
@model PopupBind

<fieldset>
        <legend>PopupBind</legend>

         <div id = "PopupBind1Details" data-role="grid" 
         data-editable='[
         {
            "confirmDelete":
                "Delete",
            "cancelDelete": "Cancel",
            "mode": "incell",
            "template": null,
            "create": true,
            "update": true,
            "destroy":true
        }]'
         data-bind = "source: PopupBind1" 
         data-columns='[
        { field : "Name", title: "Name" },
        { field : "Value", width: 120, title : "Value" },
        { "command":[{
                "name": "destroy",
                "buttonType": "ImageAndText",
                "text":"Delete"
            }]
            }]'/>
</fieldset>

Description for PopupBind1Details
What I need to do is
1. Make Name field non-editable.
2. Attach Destoy, Edit and Add handlers, and if possible pass the updates done to the Value field to UpdatePopupBind

Is this achievable?

Petur Subev
Telerik team
 answered on 03 Apr 2014
1 answer
274 views
When I try to initialize a mobile listview with virtual scrolling before I navigate to the parent data-view, I'm getting this error :

"03-31 22:56:56.872: E/Web Console(31538): Uncaught TypeError: Cannot call method 'makeVirtual' of null:46"

Here's my code:

lstJobs = $("#lstJobs").kendoMobileListView({
           dataSource: JobDataSource,
           template: $("#lstJobTemplate").html(),
           endlessScroll: true,
           virtualViewSize: 100 }).data("kendoMobileListView");

If I use serverPaging = true, pageSize=100 in the datasource for pre binding I don't get this error, but then performance is poor on some devices.

My use-case is that I have 3 different views with listviews on them, and I want them to load very quickly the first time the user accesses them.  So what I'm trying to do is pre-bind the listviews when the user first logs in, before they navigate to those screens.

Any ideas on this?

  Nick
Kiril Nikolov
Telerik team
 answered on 03 Apr 2014
1 answer
64 views
Hello,

I upgraded Kendo from 2013.1.514 to 2014.1.318 and all of the gradients have been removed from my charts.  I am using the bootstrap theme.  What must be done to restore the gradient 3-D effect?


T. Tsonev
Telerik team
 answered on 03 Apr 2014
3 answers
535 views
I badly need to remove or disable the HScrollBar in Tree View.  I've seen answers for radTreeView, but nothing for UI TreeView.   Please, I need to disable this asap
Kiril Nikolov
Telerik team
 answered on 03 Apr 2014
1 answer
399 views
Hi,

I am using the scheduler in Kendo Mobile, referencing the demo.

I set the initial parameters in the init view function and change the dataSource and use the date() function to change the date of the scheduler.
However, I would also like to change the startTime and resources so that more changes can be determined later.

Would you suggest how to change them?

Thanks!
Atanas Korchev
Telerik team
 answered on 03 Apr 2014
1 answer
182 views
I'm trying to use a ClientTemplate for all of my columns to allow an HTML hover tooltip (using span's title attribute).  My ClientTemplate currently is:

string.Format("<span title='#: {0} #'># if ({0} != null) {{# #= {0} # #}}#</span>", fieldName)


This works wonderfully for strings.  However, for enums or DateTime, numbers, etc, it doesn't obey the DataAnnotations.  It simply does a raw output.  How does the Kendo MVC Grid know how to display these fields (without a ClientTemplate, it's perfect without a tooltip)?  How can I slightly tweak my ClientTemplate so that it works for all columns/types?

Thanks in advance,
Kyle
Dimo
Telerik team
 answered on 02 Apr 2014
1 answer
112 views
Hi,
I was expecting that Kendo Chart will not plot points outside range specified for each axes. But its plotting unexpectedly.
Please tell me If we can avoid plotting points outside range.

I have specified range (min and max values for both X and Y axes) like this:
        xAxis:
        {    min: -3000, max: 1000},
        yAxis:
        {    min: 10000, max: 10400, reverse: true, axisCrossingValue: 10000
        }

I supplied multiple curve data & output is like this:

I have marked unexpected points.

T. Tsonev
Telerik team
 answered on 02 Apr 2014
8 answers
3.1K+ views
I have tried to use Turkish format for NumericTextBox, and also I want to convert dot sign of decimal to comma. However, position of sign comma have gone to wrong position on the decimal number (For Example: when I change format to convert dot to comma, then 1.5 number to be 15,00)
How Can I figure out the problem?
Thanks a lot,
Nihat Erdil
Georgi Krustev
Telerik team
 answered on 02 Apr 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
Drag and Drop
Application
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
DropDownTree
ListBox
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
LLM Kit
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?