Telerik Forums
Kendo UI for jQuery Forum
2 answers
133 views
How can I retain some of the custom styling I wish to have in my view if loaded within a tabstrip. 
Styles in following code block were lost when loaded from tabstrip, however, they work when loaded separately.
thanks,
Saurabh
<!DOCTYPE html>
<html>
<head>
    <title>River Stage Info</title>
    <style type="text/css">
        dl.RiverStageInfo
        {
            border-style: solid;
        }
         
        .RiverStageInfo dt
        {
            float: left;
            width: 100px;
        }
         
        .RiverStageInfo li
        {
            display: table-cell;
            margin: 5;
            width: 70px;
            border-left-style: solid;
        }
         
        .RowItem ul
        {
            list-style-type: none;
            border-top-style: solid;
            margin: 0;
        }
         
        .CellHeader ul
        {
            margin: 0;
            list-style-type: none;
        }
    </style>
</head>
<body>
    <div data-role="view" id="RiverStage" data-layout="mobile-tabstrip">
        <dl class="RiverStageInfo">
            <dt> </dt>
            <dd class="CellHeader">
                <ul>
                    <li>River Mile</li>
                    <li>Normal Ft</li>
                    <li>Current Ft</li>
                </ul>
            </dd>
            <dt>Coney Island</dt>
            <dd class="RowItem">
                <ul>
                    <li class="RiverMile">459.1</li>
                    <li class="NormalFt">50</li>
                    <li class="CurrentFt">52</li>
                </ul>
            </dd>
            <dt>Island One</dt>
            <dd class="RowItem">
                <ul>
                    <li class="RiverMile">500.1</li>
                    <li class="NormalFt">50</li>
                    <li class="CurrentFt">44</li>
                </ul>
            </dd>
            <dt>Second Island</dt>
            <dd class="RowItem">
                <ul>
                    <li class="RiverMile">200.1</li>
                    <li class="NormalFt">50</li>
                    <li class="CurrentFt">22</li>
                </ul>
            </dd>
        </dl>
    </div>
</body>
</html>
Saurabh
Top achievements
Rank 1
 answered on 02 Apr 2012
2 answers
441 views
Hi,

I just downloaded the new trial version of Kendo UI. According to the documentation, for my mobile project, I must include the script kendo.mobile.min.js . But, if I only include this script, I can't use the MVVM framework (for example, observable method is not known on the kendo object). If I include the script kendo.all.min.js, all works fine. So, the MVVM framework is not included in the Kendo UI Mobile package ? What script must I include in addition to kendo.mobile.min.js for MVVM ?

Cordially,
Kakone.
Saurabh
Top achievements
Rank 1
 answered on 02 Apr 2012
0 answers
132 views
i have a TreeView that once the user drops the item to the desired position, it displays a dialog box and asks for confirmation, if the user selects cancel, how would i also cancel the placement of the item so it goes back to its original position? my current code is below but isnt working:

var newDiv = $(document.createElement('div'));
            newDiv.html('<p><span class="ui-icon ui-icon-circle-check" style="float:left; margin:0 7px 50px 0;"></span>Are you sure you want to move the item: ' + title + ' </p>');
            newDiv.dialog( {
                autoOpen: true,
                width: 600,
                buttons: {
                    "Save": function () {
                        $(this).dialog("close");
                    },
                    "Cancel": function () {
                        $(this).dialog("close");
 
                        e.setValid = false;
 
                    }
                }
            });
matt
Top achievements
Rank 1
 asked on 02 Apr 2012
1 answer
163 views
Hi!
Is it possible to get data from wcf service and than put it into chart? I know how to connect with wcf in javascrpit, and how to build chart in kendo, but I have no idea how to join it :(

Kamil
Alexander Valchev
Telerik team
 answered on 02 Apr 2012
4 answers
174 views
Hi,
KnockoutJS "valueUpdate" additional parameter for "value" binding is really missing in your implementation.
Pleasure consider adding such a setting, thx!
Mat
Mathias
Top achievements
Rank 1
 answered on 02 Apr 2012
5 answers
99 views
Hello,

grid does not refresh in IE9.

Can you please have a look at my (partial) sample code in attachment?
Notice that the code works fine (grid refreshes) with Chrome and FF.

The code that fails is in the method: onCallHandlerSuccess

I server side delete a row (with success), but client side I see no changes!

Thanks a lot

Matteo

Sander
Top achievements
Rank 1
 answered on 02 Apr 2012
3 answers
153 views
Is it possible to get an event after the view transition animation has completed?
Show fires when the animation is started.
Petyo
Telerik team
 answered on 02 Apr 2012
2 answers
534 views
in Default.aspx

<script type="text/javascript">
        var dataSource = new kendo.data.DataSource(
            {
                transport: {
                    read: {
                        contentType: "application/json; charset=utf-8",
                        type: "POST",
                        dataType: "json",
                        url: "http://localhost:1249/KendoUI2nd/WebService.asmx/LoadData"                        
                    }
                },
                pageSize: 10,
                schema: {
                    model: {
                        fields: {
                            Pkid_Emp: { type: "number" },
                            fkid_Dept: { type: "string" },
                            txt_Name: { type: "string" },
                            txt_Address: { type: "string" },
                            txt_Phone: { type: "string" },
                            txt_Salary: { type: "string" }
                        }
                    }
                }
            });
        alert(dataSource);

        $(document).ready(function () {
            $("#myGrid").kendoGrid({
                dataSource: dataSource,
                height: 250,
                columns: [
                 { field: "Pkid_Emp", title: "Pkid_Emp" },
                 { field: "fkid_Dept", title: "fkid_Dept" },
                 { field: "txt_Name", title: "txt_Name" },
                 { field: "txt_Address", title: "txt_Address" },
                 { field: "txt_Phone", title: "txt_Phone" },
                 { field: "txt_Salary", title: "txt_Salary" }
                        ]
            });
        });
    </script>

 <div>
            <div id="myGrid">
            </div>
        </div>


in Webservice.cs

[WebMethod]
    [ScriptMethod(ResponseFormat = ResponseFormat.Json)]
    public string LoadData()
    {
        MyDataClassesDataContext MyDB = new MyDataClassesDataContext();

        var sharedDataSource1 = from x in MyDB.Emps
                                  select x;

        var serializer = new JavaScriptSerializer();

        return serializer.Serialize(sharedDataSource1);
    }



when is called webservice i get JSON Data . still my grid is empty . Please Help me ...






Thanks i read ur example n i implement read() into my project
but it showing me
System.NotSupportedException: Cannot serialize interface System.Collections.Generic.IEnumerable`1[[EmployeeClass, App_Code.7o30vskr, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null]].
   at System.Xml.Serialization.TypeDesc.CheckSupported()
   at System.Xml.Serialization.TypeScope.GetTypeDesc(Type type, MemberInfo source, Boolean directReference, Boolean throwOnError)
   at System.Xml.Serialization.ModelScope.GetTypeModel(Type type, Boolean directReference)
   at System.Xml.Serialization.XmlReflectionImporter.ImportTypeMapping(Type type, XmlRootAttribute root, String defaultNamespace)
   at System.Web.Services.Protocols.XmlReturn.GetInitializers(LogicalMethodInfo[] methodInfos)
   at System.Web.Services.Protocols.XmlReturnWriter.GetInitializers(LogicalMethodInfo[] methodInfos)
   at System.Web.Services.Protocols.MimeFormatter.GetInitializers(Type type, LogicalMethodInfo[] methodInfos)
   at System.Web.Services.Protocols.HttpServerType..ctor(Type type)
   at System.Web.Services.Protocols.HttpServerProtocol.Initialize()
   at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing)

I Dont Know why ???? 
Please Help Me ... 
Rahul
Top achievements
Rank 1
 answered on 02 Apr 2012
1 answer
101 views
Hi,

I have a grid in which one of the column is of type "number". But when i filter on that column, i can see that it compares the value only when the number has two zeros after a decimal point. Like, if for 260, i select "Is equal to" and enter 260, it does not filter that row. But if i have a value say, 150.00 than in that case, "Is equal to" works. I don't want decimal points. How can i resolve that?

Regards,
Khushali
Alexander Valchev
Telerik team
 answered on 02 Apr 2012
1 answer
632 views
Hi,

I'm currently working with a Dropdownlist and I'd like to access the change event via MVVM and fire an AJAX call whenever the value of the Dropdown changes.

Currently
data-bind="event: { change: changeEvent }"

does not work and says the binding is unsupported by the dropdown list. I've got changeEvent setup correctly in my MVVM. Do I need to setup a custom handler for this? In Knockout I could achieve the following result by using a computed observable, or adding a listener on the dropdown value observable.

Any suggestions on the Kendo way of achieving my goal?
Rosen
Telerik team
 answered on 02 Apr 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?