Telerik Forums
UI for ASP.NET MVC Forum
0 answers
135 views
Hi

How correctly to cause Action from Chart

dataSource: {
                transport: {
                    read: {url: ('@Url.Action("ActionName", "ControllerName")'),
                           dataType: "json",
                           data: { fieldName: $("#Field").val()}
                    }
 
                }
                          
            },

David
Top achievements
Rank 1
 asked on 27 Sep 2012
0 answers
148 views
Hi everyone,

I try to use the LayoutChange-Event to get the height of the previous panel. Here is the method I call with the event:
function onMultiLookupWindowSplitterResize(e)
{
    if (e.sender.resizing != undefined && e.sender.resizing.previousPane != undefined)
        $('#lookupGridContainer').height(e.sender.resizing.previousPane.height() - 40);
}

It really works fine. The only problem is. When I collapse a panel it doesn't really work. The previousPane is undefined and so I don't get the height.

If i resize the splitter first and THEN collapse one panel the previousPane is correctly defined. So the problem occurs only if I collapse a panel BEFORE resizing.

Hope you understand what I mean. Is this a bug? Is there any solution for this?

Thanks,
Mathias
Mathias
Top achievements
Rank 1
 asked on 27 Sep 2012
3 answers
234 views
Hi,

In Chrome the dropdownlist becomes unusable once you move to another browser tab then come back.  When you click on the dropdownlist it will expand then close straight away, preventing you from being able to change the selection. You may need to switch tabs once or twice for this to occur.

Chrome version: 20.0.1132.17

Steps to reproduce:

1. With Chrome, goto http://demos.kendoui.com/web/mvvm/widgets.html 
2. Open a new browser tab.
3. Switch to new browser tab.
4. Go back to first tab.
5. Click on dropdownlist.
6. Repeat steps 3, 4, 5 once more if the dropdownlist still works.

Can someone verify this please?
Georgi Krustev
Telerik team
 answered on 27 Sep 2012
18 answers
988 views
Hello All,

How to ENABLE the row DELETE confirmation alert "Are you sure you want to delete this record?" when you delete a record from the Grid?

Here is the sample code from the "Examples" folder.
I tried calling editable.DisplayDeleteConfirmation(true);.

But "DisplayDeleteConfirmation" does not work irrespective of true or false.

How to ENABLE the row DELETE confirmation alert?

Thank you.


@(Html.Kendo().Grid<Kendo.Mvc.Examples.Models.ProductViewModel>()    
    .Name("Grid")    
    .Columns(columns => {        
        columns.Bound(p => p.ProductName);
        columns.Bound(p => p.UnitPrice).Width(140);
        columns.Bound(p => p.UnitsInStock).Width(140);
        columns.Bound(p => p.LastSupply).Width(140);
        columns.Bound(p => p.Discontinued).Width(100);
        columns.Command(command => { command.Edit(); command.Destroy(); }).Width(200);
    })
    .ToolBar(toolbar => toolbar.Create())
    .Editable(editable => { editable.DisplayDeleteConfirmation(true); editable.Mode(GridEditMode.InLine); })
    .Pageable()
    .Sortable()
    .Scrollable()
    .DataSource(dataSource => dataSource  
        .Ajax()                 
        .Events(events => events.Error("error_handler"))
        .Model(model => model.Id(p => p.ProductID))
        .Create(update => update.Action("EditingInline_Create", "Grid"))
        .Read(read => read.Action("EditingInline_Read", "Grid"))
        .Update(update => update.Action("EditingInline_Update", "Grid"))
        .Destroy(update => update.Action("EditingInline_Destroy", "Grid"))
    )
)
Rosen
Telerik team
 answered on 27 Sep 2012
1 answer
163 views
Hi, Why is this happening ?

http://screencast.com/t/uG2CAhEA 

Thanks.
Georgi Krustev
Telerik team
 answered on 26 Sep 2012
10 answers
3.6K+ views
Hi, 

I am trying to convert my Telerik MVC application to Kendo UI MVC but have hit a problem. 

We have a basic grid on a page that we only want populating after some form values have been entered and a search button pressed. 
I had this working with the Telerik MVC grid by binding the data using javascript after an ajax call to the action. 

var resultsGrid = $('#ResultsGrid').data('tGrid');
resultsGrid.dataBind(json);

Is there a way to have a Kendo grid initially blank and then populated in a similar fashion?

Thanks in advance.
Richard. 
Habib
Top achievements
Rank 1
 answered on 26 Sep 2012
0 answers
114 views
Hello Folks,


I have managed to display the expanded state of treeview after postback. The only thing am stuck with is, i need to set the style for selected node in the treeview using jquery.


Can someone pls help me out here??? 


Thanks in advance.
rajshekar
Top achievements
Rank 1
 asked on 26 Sep 2012
0 answers
391 views
Hi Grurs,

I am using a trial version on Kendo UI for MVC for the purpose of development of the prototype. I have developed everything with the following development configuration
1) VS 2010
2) ASP.NET MVC3
3) Razor
4) Kendo UI
it runs proper when i run it from VS but when i install it on the server then it throws following error
"CS1593: Delegate 'System.Action' does not take 1 arguments"

For following code
Line 77:           .Scrollable(false)
Line 78:           .HtmlAttributes(new { id = "top-panes" })
Line 79:           .Content(@<div>
Line 80:                     
Line 81:                 </div>);

I am using Panel bar here.

Kindly help me to solve this issue

Thanks in Advance

Regards
Swap
Swapnil
Top achievements
Rank 1
 asked on 26 Sep 2012
6 answers
228 views
Hello team;

I'm asked to provide a good strategy for the following case. Then I'll pose a few questions to the team to see what the advice and the strategy would be:

App requirements:

  • The app. needs to be able to run on desktop, tablet & mobile (all as browser app). The desktop version will also perform the "Admin" routine that is not available on mobile. Basically, 60% of the app are the same on all three devices
  • The app. is a very LoB app, meaning lots of data will be retrieved from Database and most contents will come from database. [Makes a great MVC candidate]

Question:

  • As we have the MVC wrappers for the desktop version of KendoUI, do we also have MVC wrappers for the Mobile/Tablet version? This way, the developers can approach building the entire app (Desktop & mobile) in MVC 4 platform?
  • If not, does this mean the desktop needs to be done in MVC and the mobile backend in WebAPI with HTML5 frontend?

So, as the title of this post goes, what strategy does Kendo team suggest for building an app for three devices based MSFT stack that minimizes duplicate of code between devices?

Note: Client has indicated, they prefer to do the entire development on MVC [for desktop] rather than MVC + WebAPI [for mobile].

Your suggestions & guidelines will be much appreciated!
Thanks!
..Ben

Ben Hayat
Top achievements
Rank 2
 answered on 26 Sep 2012
2 answers
401 views
I have a custom editor for the pop-up and everything is working fine. However I would like to hide or show a a section depending on a value from the model. However, these model values are always NULL. 

for example Model.QuoteId is always null

@using (Html.BeginForm(Model))
{
    if (Model.QuoteId == null)
    {
        <fieldset id="selector">
foo
        </fieldset>
    }
}


I do get values for this.

            @Html.EditorFor(model => model.Amount)


thank you!
David A.
Top achievements
Rank 1
 answered on 25 Sep 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?