Telerik Forums
Kendo UI for jQuery Forum
2 answers
79 views
Hi,

How can I create a View dinamically, that is programatically ???

Should I use jQuery to insert in the DOM a Div with a data-role="View" ???

Thanks in advance
mvbaffa
Top achievements
Rank 1
 answered on 24 Mar 2012
0 answers
85 views
We are developing three different projects in parallel and hopefully one will go live during may. That particular one will unfortunately be an internal application for a customer so we won't be able to show it. But the other two will be live and public and one of them will probably also be using Mobile.

We would be really interested to see any live working sites running KendoUI, so please share a link if you have one or know of any.

Stefan
Top achievements
Rank 1
 asked on 24 Mar 2012
3 answers
119 views
Anyone else notice that Telerik seem to quite absent, only repling on the odd post and leaving other for weeks?
Stefan
Top achievements
Rank 1
 answered on 24 Mar 2012
0 answers
80 views
Why in the first time have showed that click again when they don't show ?help me im use jquery 1.7.1 
Seaman
Top achievements
Rank 1
 asked on 24 Mar 2012
0 answers
73 views
I have a problem, the grid inside the data, I would like to determine the third column of each line, if equal to 0, put the background color changes to red, do I do?
Seaman
Top achievements
Rank 1
 asked on 24 Mar 2012
5 answers
939 views
Hy 

I've updated today to the final release of kendo ui, mostly without any problems! 

But either I have a new issue with the combobox. 
I have a combobox that is bound to a remote json data source. Depending on the user input, I have then to change the value of the combobox (I get the id from the server of the new value). The filtering of the combo and also the paging is done on serverside. So what I do on client side is, I call 

var combo = $(this).data("kendoComboBox");
combo.value(newValue);

This works fine as long as the option has already been loaded by the control. But If the value is changed to something that is not in the list that has been loaded when the page has been opened, the control will just display the value, but without the right caption.

So my next try was to use the refresh method. So first I set the value as described before, then I call refresh on the combo. Either this has exactly the same behaviour, no quering of the server if the option is unkown.

My last try was to use the search function, this method does correctly the filtering of the options on the server side, but  then it will always open the suggest box that i don't want to have... I know what it has to be! 

Any suggestions how I can avoid this behaviour? Must i use the datasource directly??


Thank you 
Micha 

Frank
Top achievements
Rank 1
 answered on 24 Mar 2012
4 answers
397 views
Hi,

I would like send the UID from a new entry with the other data to the server. (I use the beta from KendoUI)

schema:
schema: {
                               model: {
                                   id: "ID",
                                   fields: {
                                       Email: { validation: { required: true}},
                                       datauid: { editable: false}
                                   }
                               },
                               total: function(result) {
                                   // Count records
                                   //alert(result.length);
                                   GridCount_dataBound(result);
                               }
                           }

columns:
columns: [
                            { field: "Email", title: "<?php echo $this->translate("Email"); ?>"},
                            { field: "datauid", title: "<?php echo $this->translate("UID"); ?>",  template: "<input type='hidden' name='datauid' value='#= uid #'>"},
                            { command: [
                                        {name: "edit"},
                                        {name: "destroy"}
                                       ], width: "200px"
                            }
                        ],

I can see the uid in the input field but the model is emty:
models  [{"ID":"","Email":"cyxcyxcxy","datauid":""}]

Could you help me?

Best regards
Damir
Damir
Top achievements
Rank 1
 answered on 23 Mar 2012
2 answers
143 views
Hi,

I am starting a new application and I intend to use KendoUI Mobile. When I show an external View like this: 
    <a href="http://kendoui.com/" data-rel="external">Visit KendoUI</a>
    or something like that:
 <div data-role="view">Foo <a href="bar.html" data-role="button">Go to Bar</a></div>


Is there any Postback ??? I Suppose the view is loaded with Ajax without any PostBack, Am I correct ???

Thanks in advance
mvbaffa
Top achievements
Rank 1
 answered on 23 Mar 2012
0 answers
103 views
I'm working on an application that needs to have one element selected in a hierarchy grid. To explain further, there's a top level grid of items, and each item in that list has a sub-grid. I want to make it so that when you select any element in the top level grid or any of the subgrids, it clears the selections out for all the others. Is there an easy way to do this?
David
Top achievements
Rank 1
 asked on 23 Mar 2012
0 answers
148 views
As a software engineer, just now i am learning the Kendo UI, to implement in our future project. 

If i call a page method from ajax ($.ajax), and create a data source, and supply that datasource to the kendo autocomplete, then it works fine.

But I am trying to connect to an Asp Net page method from within a datasource which is inside a kendo autocomplete. Because I am planning to extensively follow this approach in Grid paging, filtering and sorting etc.

But the page method is never called at all. Herewith I show the code.

Client Side:

var _rootUrl = '<%=string.Format("{0}{1}/", Request.Url.GetLeftPart(UriPartial.Authority), HttpRuntime.AppDomainAppVirtualPath)%>';
$(document).ready(function()
        {
            $("#TxtName").kendoAutoComplete(
            {
                minLength: 1,
                dataTextField: "Name",
                dataSource: 
                {
                    transport: 
                    {
                        read: 
                        {
                            type: "POST",
                            url: _rootUrl + "AutoComplete/Default7.aspx/GetEmployeesNames",
                            contentType: "application/json; charset=utf-8",
                            dataType: "json",
                            data: "{}"
                        }
                    },
                    schema: 
                    {
                        data: function(data) 
                        {
                            return JSON.parse(data.d);
                        }
                    }
                }
            });
        });

Server Side Asp Net Page Method:

    [System.Web.Services.WebMethod()]
    [System.Web.Script.Services.ScriptMethod()]
    public static string GetEmployeesNames()
    {
        string StrConnectionString = ConfigurationManager.ConnectionStrings["ConnectionStringEmployeesNormalized2"].ConnectionString;
        SqlConnection SqlConnection1 = new SqlConnection(StrConnectionString);
        SqlCommand SqlCommand1 = new SqlCommand("SELECT Id, Name FROM dbo.Employees ", SqlConnection1);

        DataTable DataTable1 = new DataTable();
        SqlDataAdapter SqlDataAdapter1 = new SqlDataAdapter(SqlCommand1);
        SqlDataAdapter1.Fill(DataTable1);

        List<Employee> List1 = new List<Employee>();
        foreach (DataRow DataRow1 in DataTable1.Rows)
        {
            List1.Add(new Employee(Convert.ToInt32(DataRow1["Id"]), Convert.ToString(DataRow1["Name"])));
        }

        string JsonText = (new JavaScriptSerializer()).Serialize(List1);

        HttpContext.Current.Response.ContentType = "application/json";
        return JsonText;
    }

Could you please help me?
Guna
Top achievements
Rank 1
 asked on 23 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
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
Iron
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
Iron
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?