Telerik Forums
Kendo UI for jQuery Forum
0 answers
88 views
I am looking at applying row wise data type validations for my kendo grid(editable).
for e.g. row 1 - accepts string values only
row 2 accepts number values only.
Right now i can apply column wise data type by model/schema fields definitions.
Is there a way to define this row wise ?

thanks in advance

mahesh
Mahesh
Top achievements
Rank 1
 asked on 20 Mar 2012
0 answers
73 views
I am looking at applying rowwise datatype validations for my kendo grid(editable).
for e.g. row 1 - accepts string values only
row 2 accepts number values only.
Right now i can apply column wise datatype by model/schema fields definitions.
Is there a way to define this row wise ?

thanks in advance

mahesh
Mahesh
Top achievements
Rank 1
 asked on 20 Mar 2012
2 answers
199 views
Hi,

I would like to bind Kendo Grid using Ajax enabled WCF and returning a data either in json or xml format. But the problem is that my kendo UI Grid is not binding with my web service. The webservice returns the data without any problem. Any help would be greatly appreciated.

Webservice Data :

{"d":["20417","20418","20419","20420","20421","20422","20424","20425","20426","20427","20443","20480","20489","20491","20492","20495","20497","20498"]}

[ServiceContract(Namespace = "QS")]
[AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
public class PSService
{
     
    [OperationContract()]
    [WebGet(BodyStyle = WebMessageBodyStyle.WrappedRequest)]
    public string[] GetJobs()
    {
        try
        {
            StringBuilder sb = new StringBuilder();
            sb.Append("select ID from ff_job");
            string sql = sb.ToString();
            DataTable dt = Database.Instance.ExecuteQueryToDataTable(sql);
            List<string> IJobList = new List<string>();
            string sJobID;
            foreach (DataRow dr in dt.Rows)
            {
                sJobID = dr["ID"].ToString();
                IJobList.Add(sJobID);
            }
            return IJobList.ToArray();
        }
        catch (Exception ex)
        {
            Console.WriteLine(ex.Message.ToString());
            return null;
        }
 
    }


<div id="grid">
</div>

<
script type="text/javascript">
       $(document).ready(function () {
           $("#grid").kendoGrid({
               dataSource: {
                   type: "odata",
                   transport: { read: "http://localhost:3444/BootStrap/PSService.svc/getjobs" },
                   pageSize: 10
               },
               schema: {
                   model: {
                       fields: {
                           ID: { type: "number" }
 
                       }
                   }
               },
               height: 360,
               groupable: true,
               scrollable: true,
               sortable: true,
               pageable: true,
               columns: [{
                   field: "ID",
                   width: 90,
                   title: "Job No."
               }]
           });
       });
   </script>
Muhammad
Top achievements
Rank 1
 answered on 20 Mar 2012
1 answer
59 views
Hello,

 I downloaded and gone through the demos. We have requirement of  Doughnut Chart types .
 Is kendo UI supported by Doughnut Chart types ..?

Thanks,
Rajesh
Hristo Germanov
Telerik team
 answered on 20 Mar 2012
1 answer
115 views
It´s possible to build range chart to display on ipad?

Where can I find examples?

Thanks!
Iliana Dyankova
Telerik team
 answered on 20 Mar 2012
1 answer
310 views
Hello,

I'm trying Kendo UI mobile. I would like to have the inset style for a databound listview. I just added 'data-style="inset"' to your sample (http://demos.kendoui.com/beta/mobile/listview/databinding.html), but it doesn't seems to work.
How can I achieve this ?

Cordially,
Kakone.
Petyo
Telerik team
 answered on 20 Mar 2012
2 answers
150 views
Hi,

I use at the moment the grid from Q1 Beta. I use the editing inline method for the grid and I would like use a button (passButton) in each row, after "edit cancel" cell. But I don't see a button, only "..."! When i click edit, I see a button.... It is a bug or...????

$("#grid").kendoGrid({
                        dataSource: dataSource,
                        navigatable: true,
                        pageable: true,
                        sortable: true,
                        height: 400,
                        filterable: false,
                        toolbar: [
                                  { name: "create", text: "<?php echo $this->translate("Add Account"); ?>" }
                              ],
                        columns: [
                            { field: "Company", width: "120px", title: "<?php echo $this->translate("Company"); ?>" },
                            { field: "Name", width: "120px", title: "<?php echo $this->translate("Name"); ?>" },
                            { field: "Email", width: "200px", title: "<?php echo $this->translate("Email"); ?>" },
                            { field: "AccountID", width: "150px", title: "<?php echo $this->translate("Account ID"); ?>" },
                            { field: "Active", width: "60px", title: "<?php echo $this->translate("Active"); ?>" },
                            { field: "Date", width: "110px", title: "<?php echo $this->translate("Expired"); ?>", template: '#= kendo.toString(Date,"dd.MM.yyyy") #' },
                            { command: [
                                        {name: "edit"},
                                        {name: "destroy"}
                                       ]
                            },
                            { field: "PassButton", width: "60px", title: "<?php echo $this->translate("Send"); ?>", template: "<input type='button' class='k-button k-button-send' value='' onclick='myFunction(\"#=AccountID#\")'/>" }
                        ],
                        editable: "inline"
                    });

Best regards
Damir
Damir
Top achievements
Rank 1
 answered on 20 Mar 2012
0 answers
68 views
       <script type="text/javascript" >
            $(document).ready(function(){
                $("a[href ^= 'contractdetailed1.jsp']").click(function(){
                    alert("xxxxxxx");
                    return false;
                });
 var inlineTemplate = kendo.template("<a href='contractdetaile.jsp?id="+'#= num #'+"'>#= num #</a>");
...
...
...
columns: [
                        { title: "CustomNum", field: "num", width: 130,template:inlineTemplate}
           });
        </script>
Now, I click on the column num, no alert play out, not this event is activated, why? 
Seaman
Top achievements
Rank 1
 asked on 20 Mar 2012
2 answers
201 views
Hello fellow Kendo's,

sorry to be n00by, probably it's very simple...
I am trying to read out a value of a dropdown-list to pass to a php file for mysql query...

Attached is the file, you can also see it live here:
http://www.trinamic.com/psearch/

Upon selecting a motor type, i can already coax out an alert, but how do i get the value in there?

I've tried a variety of stuff:
(motor.text());

and

var mdropdownlist = $("#motor").data("kendoDropDownList");
var text = mdropdownlist.text(); 

but to no avail...

Can anyone help? It would be much appreciated ; )


Kind regards from Germany, Ubbo
Jan Ubbo
Top achievements
Rank 1
 answered on 20 Mar 2012
1 answer
112 views
When a dropdown menu overlaps another control, selecting an option will also execute the click command of that control.  This applies to the combobox and autocomplete as well.

To duplicate:

1. go to the dropdownlist demo
2. click on the "Cap Size" menu
3. select "M - 7 1/4" by putting your finger on the text
4. This will also click on the "customize" button

This is probably just part of dealing with touch devices, but I am wondering if you can give some suggestions for a work around.  I was thinking maybe disabling other controls when the menu is open and then re-enabling them.  I'm going to play around with it but just wanted to get any ideas Telerik support or the community might have.
Georgi Krustev
Telerik team
 answered on 19 Mar 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
Chat
MultiColumnComboBox
Dialog
DateRangePicker
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Accessibility
Effects
PivotGridV2
ScrollView
Switch
TextArea
BulletChart
Licensing
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
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
SegmentedControl
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?