Telerik Forums
Kendo UI for jQuery Forum
1 answer
332 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
113 views
how to set kendo.ui.ListView groupable like grid?
Frank
Top achievements
Rank 1
 answered on 24 Oct 2012
0 answers
130 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
174 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
159 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
2 answers
281 views
I see the grid demo has a "foreign key" option where the "values" property of the grid column can point to a data-source, and will automatically build a drop-down widget for that column.  I also saw in a forum post where Telerik says the values object must have 2 properties (value and text).

The grid documentation page mentions nothing about the values property.  Is it documented anywhere???
Todd
Top achievements
Rank 1
 answered on 24 Oct 2012
0 answers
134 views
hi i have a proble with  cascadinding in the 3 input hel please her is my code, i use postgres for the database:


<div id="example" class="k-content">
            <p>
                <label for="especie">Especie:</label>
                <input id="especie" style="width: 199px"/>
            </p>
            <p>
                Cepa:<span lang="es-mx">&nbsp;&nbsp;&nbsp; </span>&nbsp;<input id="cepa" disabled="disabled" style="width: 199px" />
            </p>
            <p>
                <label for="grupo">Grupo:<span lang="es-mx">&nbsp; </span></label>&nbsp;<input id="grupo" disabled="disabled" style="width: 199px" />
            </p>

            <style scoped>
                .k-readonly
                {
                    color: gray;
                }
            </style>

            <script>
                var MYAPP = (function($, kendo) {                
                
                    $("#especie").kendoComboBox({
                        dataSource: new kendo.data.DataSource({
                                 serverFiltering: true,
                            transport: {
                                read: "http://localhost/bioterio/Especie.php"
                            },
                            schema: {
                                data: "data"
                            }
                        }),
                        placeholder: "Seleccionar Especie...",
                        dataTextField: "Especie",
                        dataValueField: "Especie"
                    });

                    $("#cepa").kendoComboBox({
                          dataSource: new kendo.data.DataSource({
                            serverFiltering: true,
                            transport: {
                                read: "http://localhost/bioterio/cepa.php",
                                parameterMap: function(options, operation) {
                                    return {
                                        Especie: options.filter.filters[0].value
                                            }
                                        }
                            },
                            schema:{
                                data:"data"
                            
                            }
                        }),
                        placeholder: "Selecionar Cepa...",
                        dataTextField: "Cepa",
                        dataTextValue: "Cepa",
                        cascadeFrom: "especie",
                        autoBind: false
                    });
                    
                   $("#grupo").kendoComboBox({
                          dataSource: new kendo.data.DataSource({
                            serverFiltering: true,

                            transport: {
                                read: "http://localhost/bioterio/Grupo.php",
                                parameterMap: function(options, operation) {
                                    return {
                                        Cepa: options.filter.filters[0].value
                                            }
                                        }
                            },
                            schema:{
                                data:"data"
                            
                            }
                        }),
                        placeholder: "Selecionar Grupo...",
                        dataTextField: "ID_Grupo",
                        dataTextValue: "ID_Grupo",
                        cascadeFrom: "cepa",
                        autoBind: false
                    });

                    
                    
               })(jQuery, kendo);
             </script>

        </div>
           
victor
Top achievements
Rank 1
 asked on 23 Oct 2012
0 answers
109 views
I have a grid which takes a date from a MySQL database in the format year-month-day hour:minute:second and displays it as a UK date in a datepicker in the grid. This seems to work fine.

As soon as I go to edit the date in the inline editor though, I can make the change but it the editor immediately exits, taking me back to the original grid.

It is worth noting though that I am using jQuery 1.8.2

Just wondering if anyone else has seen this before?

My grid along with all of the code is here:
http://dev.openbill.co.uk/admin/viewproject.php?id=9
James
Top achievements
Rank 1
 asked on 23 Oct 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
Bronze
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
Bronze
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?