Telerik Forums
UI for ASP.NET MVC Forum
1 answer
326 views
i cannot get the animation effects on open and close working. 
Im using the following code: 
@{
    Html.Kendo().Window()
        .Name(winname)
        .Title(title)
        .Events(builder => builder.Close("KendoWinOnClose").Open("KendoWinOnLoad"))
        .Actions(builder=> builder.Close().Maximize().Minimize())
       .Animation(x=> x.Close(builder => builder.Fade(FadeDirection.Out)).Open(builder => builder.Fade(FadeDirection.In)).Enable(true))
        .Content(@<text>
                      
                      
                     <script type="text/javascript" language="javascript">
                         function KendoWinOnClose() {
                              $("#@winname").data("kendoWindow").destroy();
                           
                       }


                       function KendoWinOnLoad() {
                            $("#@winname").data("kendoWindow").center();
                      }


                   </script>
      
                      <p>
                          Alvar Aalto is one of the greatest names in modern architecture and design.
                          Glassblowers at the iittala factory still meticulously handcraft the legendary
                          vases that are variations on one theme, fluid organic shapes that let the end user
                          ecide the use. Interpretations of the shape in new colors and materials add to the
                          growing Alvar Aalto Collection that remains true to his original design.
                      </p>
 
                  </text>)
        .Draggable()
        .Resizable()
        .Width(width)
        .Height(height)
        .Modal(modal)
        .Resizable(x => x.Enabled(true))
        .Render();
}



any ideas ?

Petur Subev
Telerik team
 answered on 12 Oct 2012
1 answer
195 views
I have a Kendo grid with inline editing set, so we are using Ajax as the datasource. On the initial load of the grid,  the records are sorted by modified date descending and all is fine. The problem is that when you click on a page the _Read function loses the sort, because the Ajax call takes over. This is not an issue if I click on the Modified Date column and apply the sorting after the page loads and then click on a page link. Once I do that it will hold the sort.  I understand why it does this, but we need to get it to persist the initial sort order without having to click on the column heading...it's an end user thing.

Is there a way to do this? I tried setting .ServerOperation(false) but it had no affect.

Neither did this
                  .Sort(sort =>
                    {
                        sort.Add(p => p.modifiedDate).Descending();
                    })

Thanks for your help

Paul
Rosen
Telerik team
 answered on 12 Oct 2012
0 answers
165 views
Hi,

I am expering this strange behavior, that a grids rows get append both in the grid and below. see pic.

This is seen on a lenovo thinkpad tablet running android  4.0.  within a chrome for android webbrowser.

Also I noticed that it is calling my controller twice (shown in  developer tools  network  via usb web debugging) for reading the entries.

This works well on the browser on the pc( IE and Chrome).

Has anyone had simular problems ?.

Best 

ole

 
Ole
Top achievements
Rank 1
 asked on 12 Oct 2012
1 answer
79 views
Hi, I am unable to reply to this particular forum post: http://www.kendoui.com/forums/mvc/general-discussions/desktop-mobile-development-strategy---gt-mvc-or-html5-webapi.aspx (no reply button for me?) nor did I ever receive a notification that the guy had replied...
Atanas Korchev
Telerik team
 answered on 12 Oct 2012
1 answer
108 views
Hi,



I recently upgraded to Windows 8 (Released Version for MSDN subscribers) which includes IE 10.  My application was working fine with IE9 under Windows 7.  But now it gives me a couple of JavaScript errors when run in IE10.  It still runs find in FireFox and Chrome.  I am attaching some screen shots of the error.



Vesselin Obreshkov
Top achievements
Rank 2
 answered on 11 Oct 2012
1 answer
126 views
Has anyone implemented Anti Model Injection tokens (http://mvcsecurity.codeplex.com/) in the KendoUI Grid? If not that approach, how is everyone preventing model injection and/or other tampering attacks while using this grid?
Phil
Top achievements
Rank 2
 answered on 11 Oct 2012
1 answer
206 views
I am getting the following error when binding my Model to a Kendo Grid.
InvalidOperationException: A circular reference was detected while serializing an object of type [my type here]

Using the Json.Net serializer with a setting to ignore circular references I am able to get my type serialized without error. So, what I'd like to be able to do is to tell the Kendo framework to use the Json.Net serializer instead of its own built-in DefaultJavaScriptSerializer.  Is this possible?  I see it implements an IJavaScriptSerializer interface, so I'm hoping I can create my own class that implements this interface (and uses the Json.Net serializer).  But I can't figure out how one would tell the Kendo.Mvc.Infrastructure to use my custom implementation of IJavaScriptSerializer.
Please help.
JFB
Top achievements
Rank 1
 answered on 11 Oct 2012
1 answer
316 views
Hi All,

I want my textbox to display the name of file selected by telerik upload control. Please find the code snippet below.
  <td>
                                           
                                                @Html.TextBox(txtBox, null, new { style = string.Format("width:200px") })
                                            </td>
                                            <td style="padding-top: 1%; padding-left: 8%">
                                                @(Html.Telerik().Upload()
                                                .Name(BrowseButton)
        //.HtmlAttributes(new { @class = "myCustomClass" })
                                                .Multiple(false))

Currently the textbox is displaying null.
Dimo
Telerik team
 answered on 11 Oct 2012
0 answers
211 views
Hello,
 
I have a Problem with Chart Binding . Now I am trying to generate a chart in MVC3  that display values from the database using  Entity Framework. and I follow all the instructions from the link below

http://docs.kendoui.com/getting-started/using-kendo-with/aspnet-mvc/helpers/grid/overview
But that Gives the Error below.

"This request has been blocked because sensitive information could be disclosed to third party web sites when this is used in a GET request. To allow GET requests, set JsonRequestBehavior to AllowGet."

How to solve this problem.
Can you provide any sample code of charts that using Entity framework?
Sunu
Top achievements
Rank 1
 asked on 11 Oct 2012
1 answer
430 views
Hi,

I am trying to bind(2-way) a boolean column to a checkbox,

So far I have managed to do it one way bind  like this:

columns.Bound(o => o.Status0).Width(40).Title("0").ClientTemplate("<input type='checkbox' value='true'  name='Status0_\\#=Id\\#'" + "\\#=Status0?'Checked':''\\#" + "/>");

 

How can I bind it 2 ways, do anyone have a sample of how to do that ?.

Thanks

Ole

 

Matt
Top achievements
Rank 1
 answered on 10 Oct 2012
Narrow your results
Selected tags
Tags
Grid
General Discussions
Scheduler
DropDownList
Chart
Editor
TreeView
DatePicker
ComboBox
Upload
MultiSelect
ListView
Window
TabStrip
Menu
Installer and VS Extensions
Spreadsheet
AutoComplete
TreeList
Gantt
PanelBar
NumericTextBox
Filter
ToolTip
Map
Diagram
Button
PivotGrid
Form
ListBox
Splitter
Application
FileManager
Sortable
Calendar
View
MaskedTextBox
PDFViewer
TextBox
Toolbar
MultiColumnComboBox
Dialog
DropDownTree
Checkbox
Slider
Switch
Notification
Accessibility
ListView (Mobile)
Pager
ColorPicker
DateRangePicker
Security
Wizard
Styling
Chat
DateInput
MediaPlayer
TileLayout
Drawer
SplitView
Template
Barcode
ButtonGroup (Mobile)
Drawer (Mobile)
ImageEditor
RadioGroup
Sparkline
Stepper
TabStrip (Mobile)
GridLayout
Badge
LinearGauge
ModalView
ResponsivePanel
TextArea
Breadcrumb
ExpansionPanel
Licensing
Rating
ScrollView
ButtonGroup
CheckBoxGroup
NavBar
ProgressBar
QRCode
RadioButton
Scroller
Timeline
TreeMap
TaskBoard
OrgChart
Captcha
ActionSheet
Signature
DateTimePicker
AppBar
BottomNavigation
Card
FloatingActionButton
Localization
MultiViewCalendar
PopOver (Mobile)
Ripple
ScrollView (Mobile)
Switch (Mobile)
PivotGridV2
FlatColorPicker
ColorPalette
DropDownButton
AIPrompt
PropertyGrid
ActionSheet (Mobile)
BulletGraph
Button (Mobile)
Collapsible
Loader
CircularGauge
SkeletonContainer
Popover
HeatMap
Avatar
ColorGradient
CircularProgressBar
SplitButton
StackLayout
TimeDurationPicker
Chip
ChipList
DockManager
ToggleButton
Sankey
OTPInput
ChartWizard
SpeechToTextButton
InlineAIPrompt
TimePicker
StockChart
RadialGauge
ContextMenu
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?