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

I've generated a less file via the theme builder and as written there (http://docs.kendoui.com/getting-started/themebuilder), I,ve also added the template.less to my project. So right now I have the following files :

- mixins.less
- kendo.default.less
- common.less
- template.less
- and finally my custom.less generated via the theme builder.

When I launch my website, I've got this error message :

variable @widget-background-color is undefined

in template.less on line 106, column 23:

  • {
  •     background-color: @widget-background-color;
  • }
What am I missing ?

Thanks
Olivier
Top achievements
Rank 1
 answered on 24 Oct 2012
1 answer
179 views
Hi,

when I use the following layout for all my views I realized that the Back button appears on every view.

<section data-role="layout" data-id="default">
            <header data-role="header">
                <div data-role="navbar">
                    <a class="nav-button" data-align="left" data-role="backbutton">Back</a>
                    <span data-role="view-title"></span>
                </div>
            </header>
        </section>

As far as I remember "jQuery mobile" automatically hides the back button on the first view by default - which is great because I surely don't want a back button on my first view.

Having the back button even on the first view, is that by design in Kendo mobile?

Thx
Ingmar
softwarea
Top achievements
Rank 1
 answered on 24 Oct 2012
0 answers
196 views
I am trying to bind a DataSource to my DateTimePicker widget but I'm somewhat at a loss as to whether this actually works and how the data could be defined.  Currently I'm using the following code.

var timeSource = new kendo.data.DataSource({
    transport: {
        read: {
            url : "/cgi-bin/system.cgi?time",
            dataType : "json"
        }
    }
});
 
$("#datetimepicker").kendoDateTimePicker({
    dataSource: timeSource
});

And the server is returning json with the following format, I can change this part easily but I'm not sure what DateTimePicker is expecting.

[ { "time" : "Wed Oct 24 10:26:46 MDT 2012" } ]
Sébastien
Top achievements
Rank 1
 asked on 24 Oct 2012
1 answer
327 views
I am performing validation on missing data when loading the grid and applying a red border to a cell where the data is missing so the user can identify missing data quickly. I have my grid groupable = true so the user can group by column headers. My problem is I lose the cell border after the user drag/drops the column header into the "Drag a column header and drop it here to group by that column" area. Any ideas on what fires after the grouping is done or where I can insert a custom method to reapply my cell border. 
Vladimir Iliev
Telerik team
 answered on 24 Oct 2012
1 answer
110 views
how to set kendo.ui.ListView groupable like grid?
Frank
Top achievements
Rank 1
 answered on 24 Oct 2012
0 answers
127 views
Hi everyone!

I have this endless scrolling component but in my case I want to make every <li> clickable, so i designed this template:

...
<script id="endless-scrolling-template" type="text/x-kendo-template">
<a href="#overview-account">
<div id="parent">
   <div class="img-div">
<img src="../../content/mobile/overview/nairobi.jpg" />
</div>
<div class="name-div">random_string</div>
<div class="url-div">random_string</div>
<div class="dist-div">random_string</div>
</div>
</a>
</script>

But when the page is rendered nothing is displayed...


If I remove the <a tag like this:
...
<script id="endless-scrolling-template" type="text/x-kendo-template">
<div id="parent">
   <div class="img-div">
<img src="../../content/mobile/overview/nairobi.jpg" />
</div>
<div class="name-div">random_string</div>
<div class="url-div">random_string</div>
<div class="dist-div">random_string</div>
</div>

...everything is ok but the elements are not clickable :/

This is the exception:
Thank you all!

Uncaught Error: Invalid template:'<li data-uid="#=uid#"> <a href="#overview-account"> <div class="parent"> <div class="img-div"> <img src="../../content/mobile/overview/nairobi.jpg" /> </div> <div class="name-div">random_string
</div> <div class="url-div">random_string
</div> <div class="dist-div">random_string
</div> </div> </a> </li>' Generated code:'var o,e=kendo.htmlEncode;with(data){o='<li data-uid="'+(uid)+'">\n <a href="';overview-account"> <div class="parent"> <div class="img-div"> <img src="../../content/mobile/overview/nairobi.jpg" /> </div><div class="name-div">random_string
</div><div class="url-div">random_string
</div> <div class="dist-div">random_string
</div> </div> </a> </li>;o+=;}return o;'


David
Top achievements
Rank 1
 asked on 24 Oct 2012
1 answer
164 views
Hello,

for testing purposes i just try recreate a simple input mask from a former application in Kendo UI. Unfortunatly i couldn't find any ressources on how to layout and expand the editor pop window.

How can i realise this (ar at least similar) input mask in kendo ui popup editor?

And is there a image selector widget?

And last question. In my popup window template i alway get this js code in the headline. How can i avoid this?
function anonymous(data) { var o,e=kendo.htmlEncode;with(data){o='

Thanks in advance

Btw. The example is a real 'Kendo' page.
Kendo UI seems like real kendo, you need keiko, keiko, keiko ... :D
Iliana Dyankova
Telerik team
 answered on 24 Oct 2012
1 answer
1.3K+ views
Hi I am trying to

columns.Bound(f => f.Admin_Menu_Group.Name ).Title("Admin Menu Group");
or
columns.Bound(f => f.Admin_Menu_Group != null ? f.Admin_Menu_Group.Name : "").Title("Admin Menu Group");

But error "Bound columns require a field or property access expression"

Because Admin.Menu.Group field is null.
Petur Subev
Telerik team
 answered on 24 Oct 2012
1 answer
1.0K+ views

Hi All,

I have page with DropDownList and Telerik's Kendo UI Grid Control. When first time page is opened DropDownList has no item selected in it. When user selects value in DropDownList only then Grid should make Ajax call to the server and load corresponding data.

My code works fine when user selects item in DropDownList, but the problem is that first time when page is opened I there is no value in DropDownList and Grid should not make a call to the server.

My question is how can I prevent grid not to make a call to the server if there is no item selected in DropDowList?

Thanks a lot.

<div>
@Html.Kendo().DropDownList().Name("broker").DataTextField("GrandParentName").DataValueField("Id").BindTo(Model).SelectedIndex(@selectedIndex).Events(e => e.Change("brokerChanged"))
    </div>
 
    @(Html.Kendo().Grid<OrderViewModel>()
          .Name("Orders")
          .HtmlAttributes(new {style = "height: 500"})
          .Columns(c =>
              {
                  c.Bound(p => p.Id)
                      .Width(50)
                      .Title("")
                      .Sortable(false)
                      .IncludeInMenu(false)
                      .ClientTemplate((@Html.ActionLink("Edit", "Index", "Splits", new {Id = "OrderId"}, null).ToHtmlString().Replace("OrderId", "#=Id#")));
                  c.Bound(p => p.TradeDate)
                      .Title("Trd Dt")
                      .Format("{0:d}")
                      .Width(90)
                      .HtmlAttributes(new {style = "text-align: right"});
                  c.Bound(p => p.Price)
                      .Title("Price")
                      .Format("{0:n}")
                      .Width(100)
                      .HtmlAttributes(new {style = "text-align: right"});
                  c.Bound(p => p.Status)
                      .Title("Status");
                  c.Bound(p => p.Notional)
                      .Title("Notional")
                      .Format("{0:n}")
                      .HtmlAttributes(new {style = "text-align: right"});
              })
          .Sortable()
          .Scrollable()
          .ColumnMenu()
          .Pageable(x =>
              {
                  x.Enabled(true);
                  x.PreviousNext(false);
                  x.PageSizes(false);
                  x.Info(true);
                  x.Input(false);
                  x.Numeric(false);
                  x.Refresh(true);
                  x.Messages(y => y.Display("{2} Order(s)"));
              })
          .Resizable(resize => resize.Columns(true))
          .Reorderable(reoder => reoder.Columns(true))
          .DataSource(ds => ds.Ajax()
                            .ServerOperation(false)
                            .Read(read => read.Action("Action", "MyController").Data("selectedBrokerId")))
          )
 
<script type="text/javascript">
    function brokerChanged() {
        var grid = $("#Orders").data("kendoGrid");
        grid.dataSource.read();
    }
 
    function selectedBrokerId() {
        var obj = { brokerId: $("#broker").data("kendoDropDownList").value() };
 
        return obj;
    }
</script>
Vladimir Iliev
Telerik team
 answered on 24 Oct 2012
0 answers
150 views
Hi,

We are developing an application for Android Tablet using Kendo UI. Grid and Drop down lists are the commonly used components in our application. We are populating data in the grid and drop down lists from the Android inbuilt SQLITE database. For that we are currently switching from the .html file to the .java file where I have written the query for fetching the data and return back to html page for rendering the data on the screen. The screen transition seems to be very slow. Also we have link templates for the fields in the grid using which navigation to pages is done. Can you please help me to reduce the time it takes to navigate between pages.. ?

Thanks for the help in advance.

Johnson
Top achievements
Rank 1
 asked on 24 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?