Telerik Forums
Kendo UI for jQuery Forum
3 answers
1.1K+ views

For the Application > Form Elements > Text type standard box how does one specify the empty text. This is the text that appears in a standard textbox when do data has been entered. See iOS Contacts application when adding a New Contact the First, Last, Company appear grayed in the first three boxes almost like a watermark. 

This improves the interface as it does not require us to set label text for each textbox and it looks closer to how the native iOS data entry forms work.
Arturo
Top achievements
Rank 1
 answered on 03 May 2012
4 answers
267 views
Hi,

I have a strange error with Kendo Grid. I have a model defined :

var allocationGridModel = new kendo.data.Model({
           id: "Symbol",
           fields: {
               IsCheckedForDelete: { type: "boolean" },
               AssetClassCode: { type: "string", editable: false, nullable:false },
               AssetClassColor: { type: "string", editable: false, nullable:false  },
               Symbol: { type: "string", editable: false, nullable:false  },
               SecurityDescription: { type: "string", editable: false, nullable:true  },
               TargetAllocation: { type: "number", editable: true, validation: { min: 0.01}, nullable:false  },
               DriftMin: { type: "number", editable: true, nullable:false  },
               DriftMax: { type: "number", editable: true , nullable:false },
               MinBuyWeight: { type: "number", editable: true, nullable:true  },
               MinBuyValue: { type: "number", editable: true , nullable:true },
               MinSellWeight: { type: "number", editable: true, nullable:true  },
               MinSellValue: { type: "number", editable: true , nullable:true },
               SellOrder: { type: "number", editable: true, nullable:false  },
               IsInFavorites: { type: "boolean", editable: false,nullable:true },
               Equivalences : {type : "string", editable:false,nullable:true }
           }
       });

I have a grid which uses this model. In the grid I have rowTemplates defined. What I observed is, if in one of the columns which is editable, I put a 0 value and after, if I try to re-edit the same cell afterwards the numeric text box in the grid cell is not rendered. In some cases a simple input is rendered in other cases the value 0 disappears and no control is displayed in the cell.

Here is the column definition for the marked column in the attached image:

{
          field: "MinBuyWeight",
          title: "Min Buy Weight",
          template: '<div style="text-align:right;">#= kendo.toString(MinBuyWeight,"0.00") # % OR</div>',
          width: "90px"
      }

Do you have any kind of ideas what am I doing wrong?

Thanks in advance!!

Gergo
Top achievements
Rank 1
 answered on 03 May 2012
8 answers
401 views
Both Kendo UI Mobile & jQuery Mobile are in beta stages. I would like to see a comparison matrix at the some point between the two. I am planning to build a mobile web app and it seems I will be choosing one from these two.
iggy
Top achievements
Rank 1
 answered on 02 May 2012
2 answers
141 views
hello
I have a function to which you want to add a checkbox to have a function but this function need to pass the name of my form will add it to function with the single quote '
but when added to the grid do not show me anything the grid
how I can add the name of my form but show me what the grid

in a post showing how to add html elements to the grid in the property template
template: "#= kendo.toString(\'<form name=\"form_r\" method=\"post\" action=\"activauno.asp\" onSubmit=\"return enviarForm();\">
<input id=\"radio-01\" type=\"checkbox\" name=\"enviar\" value=\"1\" onClick=\"SelectedCheckBox(this,'form_r',1);\"/>
<button id=\"boton\"name=\"boton\" type=\"submit\">
</button> </form>\') #"


greetings and thanks in advance
Ricardo
Top achievements
Rank 1
 answered on 02 May 2012
0 answers
114 views
Basically, I need to be able to have a grid that manages a heterogeneous collection of two different kinds of objects. To give you some context, I need to be able to handle contact information for both individuals and groups. While they share most of their info, they differ in that individuals have both a first name and last name, while a group has only one name. So I am faced with the problem of how to handle editing for both types of objects in the same grid. 

Is that enough information, or do you need more? Does anyone have any suggestions on how to handle this tricky problem?

Thanks. 
Joshua
Top achievements
Rank 1
 asked on 02 May 2012
0 answers
170 views
Hi,

I am looking to a MCV example for kendo Grid where I can have Paging Sorting and Filtering on server side.
I have implemented the filtering option on server side in my code Here is my Code

/// On Server 
public class GridCommand
    {
        public FilterExpression Filter { get; set; }       
    }


    public class FilterExpression
    {
        public string Logic { get; set; }
        public IEnumerable<GridFilter> Filters { get; set; }
    }


    public class GridFilter
    {
        public string Operator { get; set; }
        public string Field { get; set; }
        public string Value { get; set; }
    }

public ActionResult GetContracts(GridCommand command)
        {
//Some Code
            return Json(list, JsonRequestBehavior.AllowGet);            
        }


////On Client
$("#grid").kendoGrid({
                        dataSource: {
                            type: "jsonp",
                            transport: {
                                read: {
                                    url: "/Test/GetContracts"
                                },
                                parameterMap: function(options) {                       
                 var result = {};
                 if (options.filter) {
                     result["filter.logic"] = options.filter.logic;
                     var filters = options.filter.filters;
 
                     for (var idx = 0, length = filters.length; idx < length; idx++) {                               
                         result["filter.filters[" + idx + "].operator"] = filters[idx].operator;
                         result["filter.filters[" + idx + "].field"] = filters[idx].field;
                         result["filter.filters[" + idx + "].value"] = filters[idx].value;                               
                     }                          
                 }                       
                 return result;
             }
         
                            },
                            schema: {
                                model: {
                                    fields: {
                                        AccountName: { type: "string" },
                                    AccountNumber: { type: "string" },
                                        ContractName: { type: "string" },
                                        ContractNumber: { type: "string" },
                                        ContractProductType: { type: "string" }
                                    }
                                }
                            },
                            pageSize: 10,
                            serverPaging: true,
                            serverFiltering: true,
                            serverSorting: true
                        },
                        filterable: true,                                               
                        pageable: true,
                        height: 400,                        
                        columns: [
                            { field: "AccountName", title: "Account Name", width: 150 },
                            { field: "AccountNumber", title: "Account Number", width: 150 },
                            { field: "ContractName", title: "ContractName", width: 150 },
                            { field: "ContractNumber", title: "Contract Number", width: 100 }
                        ]
                    });
                });

All I want when any action perfor in grid like sorting,Filtering or paging my "GridCommand command" have that option on server.

How can I modify  parameterMap: function(options) {    } function to send all option on server in GridCommand .



Anilesh
Top achievements
Rank 1
 asked on 02 May 2012
0 answers
146 views
Is Kendo UI compatible with salesforce..???
Vishnu
Top achievements
Rank 1
 asked on 02 May 2012
10 answers
1.7K+ views
I have the need to use a third-party widget (https://github.com/harvesthq/chosen/) in a data template but am unsure of how to instantiate it. It basically wraps a multi-select element, which is simple enough, but I need this auto-generated from my view model.

In Knockout, there's an "afterRender" event that I can use to call into my view model, passing the newly created HTML elements. Does anything like this exist in Kendo's MVVM framework?

For most of the Kendo widgets, I seem to be able to use the data-role attribute to handle widget creation.

Thanks
Mark
Top achievements
Rank 1
 answered on 02 May 2012
1 answer
293 views
Is there a way to change the validation on a field in the datasource after the datasource has been bound to a grid?

These two approaches don't work although I see the properties get updated.

var datasource = $("#customers").data("kendoGrid").dataSource;
datasource.options.schema.model.fields.Forename.validation = { required: false };
datasource.options.schema.model.fields.Surname.validation.required = false;
 
$("#customers").data("kendoGrid").refresh();
Iliana Dyankova
Telerik team
 answered on 02 May 2012
0 answers
150 views
I've added a PanelBar to a view and have it working.  However, I am unable to get this panel bar to fill all available space, without hard codin pixel values, instead of just being as large as content within.

<head>
    <title></title>
    <script src="kendoui.mobile.2012.1.406.commercial/js/jquery.min.js" type="text/javascript"></script>
    <script src="kendoui.mobile.2012.1.406.commercial/js/kendo.mobile.min.js" type="text/javascript"></script>
    <script src="kendoui.web.2012.1.322.commercial/js/kendo.panelbar.min.js" type="text/javascript"></script>
    <link href="kendoui.web.2012.1.322.commercial/styles/kendo.common.min.css" rel="stylesheet" type="text/css" />
    <link href="kendoui.web.2012.1.322.commercial/styles/kendo.default.min.css" rel="stylesheet" type="text/css" />
    <link href="kendoui.mobile.2012.1.406.commercial/styles/kendo.mobile.all.min.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <div data-role="view" data-title="Views">
    <header data-role="header">
        <div data-role="navbar">
            <span data-role="view-title"></span>
            <a data-align="right" data-role="button" class="nav-button" href="#index">Index</a>
        </div>
    </header>
    <ul id="panelBar">
    <li>
        Item 1
        <ul>
            <li>Sub Item 1</li>
            <li>Sub Item 2</li>
        </ul>
    </li>
    <li>
        Item 2
        <ul>
            <li>Sub Item 1</li>
            <li>Sub Item 2</li>
        </ul>
    </li>
</ul>
</div>
<script>
    var app = new kendo.mobile.Application(document.body);
    $(document).ready(function () {
        $("#panelBar").kendoPanelBar();
    });
</script>
</body>
</html>
Benjamin
Top achievements
Rank 1
 asked on 02 May 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
Dialog
Chat
DateRangePicker
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
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
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?