Telerik Forums
UI for ASP.NET MVC Forum
1 answer
116 views
Hi all,

I'm using the grid with pop-up editing and the function to delete the selection.

Everything goes well. Deleting multiple rows, inserting new rows, no problem. However, when I select all the rows of the current page and delete them, the rows get deleted but when I insert a new row, strange behavior occurs.

Sometimes the popup opens and closes and sometimes I am able to fill in the fields but when I click on update, the grid hangs. It only occurs when deleting all the rows on the page.

Is there something I can do to fix this?

Kind regards,

JS
Petur Subev
Telerik team
 answered on 01 Nov 2012
1 answer
173 views
Hello!

I am curious what's new in the latest version update released for 2012.2.1029, as in any new additions or fixes ?

I have noticed the latest version update reported on kendo website is for Q2 2012 SP1 (version 2012.2.913) and wondering why there is no mention of the newer update released through Visual Studio telerik manager.

Cheers,
JS


Kamen Bundev
Telerik team
 answered on 01 Nov 2012
5 answers
796 views
I am new to MVVM and I am just confused with what Kendo UI for asp.net mvc bring new to the table. I read about Kendo UI and MVVM and it makes sense but how does it benifit .net developer.
Can we actually use MVVM with kendo ui for asp.net mvc extensions. If yes, could someone please provide an example. If not, then how does it make things different from telerik extensions for asp.net mvc. 
preet
Top achievements
Rank 1
 answered on 01 Nov 2012
4 answers
379 views
Hi! 

I have 2 different elements that i want to work together with filtering a grid.
1 Autocomplete (Works as a search function) and 1 ComboBox

When i select a filter in the comboBox i want it to filter the the grid and include the filter in the combobox.

Here is my code now for filtering separate:

    function autoComplete_selected(arg) {
        var value = this.value();
        var grid = $("#GridField").data('kendoGrid');
 
        if (value) {
            grid.dataSource.filter({ field: "SalonName", operator: "contains", value: value });
        }
        else {
            grid.dataSource.filter({});
        }
}

    //
    // Filter by ComboBox
 
    function selectFilterComboBox(arg) {
            var grid = $("#GridField").data('kendoGrid');
            var dataItem = this.dataItem(arg.item.index());
            if (dataItem.Value != null) {
            grid.dataSource.filter({ field: "StatusId", operator: "eq", value: parseInt(dataItem.Value) });
        }
        else {
        grid.dataSource.filter({});
        }
}


Sameer
Top achievements
Rank 1
 answered on 01 Nov 2012
3 answers
225 views
Hi,
When we can expect the basic @Html helpers to be available with the Kendo UI bundle?

  • Text Input plugin. 
  • Multiline Text Input plugin
  • Combo Box doesn’t have an option to prevent typing custom text.
  • Dropdown List should be able to have null value.
  • There is no Radio Buttons List plugin
  • There is no Checkbox List plugin
Please let me know. If there is no plan to launch the new version with these plugins, then please let me know.
OR
Suggest the best alternative of this.

regards,
Haidar
Sebastian
Telerik team
 answered on 31 Oct 2012
4 answers
286 views

Menu items #1 "Admin Home" and #5 "Help" work fine, but #2, 3 & 4 with submenus are not expanding.

@(Html.Kendo().Menu()
.Name("AdminMenu")
.OpenOnClick(true)
.Items(items =>
{
    items.Add().Text("Admin Home")
          .ImageUrl(Url.Content("~/Content/icons/baseball.png"))
          .HtmlAttributes(new { style = "width:170px" })
          .ImageUrl("~/Content/Icons/ajax.png")
          .Action("Index", "Admin");
 
    items.Add().Text("Manage")
         .ImageUrl(Url.Content("~/Content/icons/golf.png"))
         .HtmlAttributes(new { style = "width:170px" })
         .Items(children =>
         {
             children.Add().Text("Donors").ImageUrl("~/Content/Icons/rep.png").Action("ManageDonors", "Admin");
             children.Add().Text("Recipients").ImageUrl("~/Content/Icons/sitefinity.png").Action("ManageRecipients", "Admin");
             children.Add().Text("Friends").ImageUrl("~/Content/Icons/test.png").Action("ManageFriends", "Admin");
             children.Add().Text("Admin Guys").ImageUrl("~/Content/Icons/win.png").Action("ManageAdmin", "Admin");
             children.Add().Text("Password Reset").ImageUrl("~/Content/Icons/wpf.png").Action("PasswordReset", "Admin");
         });
 
    items.Add().Text("Marketing")
         .ImageUrl(Url.Content("~/Content/icons/golf.png"))
         .HtmlAttributes(new { style = "width:170px" })
         .Items(children =>
         {
             children.Add().Text("Email").ImageUrl("~/Content/Icons/rep.png").Action("ManageFriends", "Admin");
             children.Add().Text("Newsletter").ImageUrl("~/Content/Icons/sitefinity.png").Action("Newsletter", "Admin");
             children.Add().Text("Announcements").ImageUrl("~/Content/Icons/test.png").Action("Announcements", "Admin");
             children.Add().Text("New Members").ImageUrl("~/Content/Icons/win.png").Action("NewMembers", "Admin");
             children.Add().Text("Current Web Site").Url("http://www.life-renewal.org");
         });
 
    items.Add().Text("My Mail")
         .ImageUrl(Url.Content("~/Content/icons/golf.png"))
         .HtmlAttributes(new { style = "width:170px" })
         .Items(children =>
         {
             children.Add().Text("Email").ImageUrl("~/Content/Icons/rep.png").Action("MyMail", "Admin");
             children.Add().Text("Tasks").ImageUrl("~/Content/Icons/sitefinity.png").Action("MyTasks", "Admin");
             children.Add().Text("Calendar").ImageUrl("~/Content/Icons/test.png").Action("MyCalendar", "Admin");
 
         });
 
    items.Add().Text("Help")
          .Action("Help", "Admin")
          .HtmlAttributes(new { style = "width:170px" })
          .ImageUrl("~/Content/Icons/wpf.png");
 
}))
Aron
Top achievements
Rank 1
 answered on 31 Oct 2012
0 answers
150 views
Hi,

How would I assign an id to an item to go along with the text? 

Thanks a lot.
Armen
Top achievements
Rank 1
 asked on 30 Oct 2012
3 answers
274 views
I can see an option for setting the color on a series e.g .Color("red)", however I don't see a colorField.

Is it possible to use a field from the model to set the color of the series, when using the mvc helpers?

Thanks
Alan
Daniel
Telerik team
 answered on 30 Oct 2012
1 answer
207 views
When i set the property .Selectable() on a grid which is bound to a datamodel that has a parent model i get an error. 
It looks like its trying to get the parent datamodel but it cant because the object context is closed.

 here is my code 
 
@using Kendo.Mvc.UI
   
@{
 
     var addressList = Model.DataList as List<Intelli.Data.Parties.EFDAL.Entity.GeoAddress>;
  
  }
 
    @(Html.Kendo().Grid(addressList)
    .Name("GridPartyGeoAddresses")
    .Columns(columns =>
            {
                columns.Bound(p => p.ID).Title("ID").Hidden(true);
                columns.Bound(p => p.Address).Title("Address").Width(160);
                columns.Bound(p => p.Region).Title("Region").Width(80);
 
                columns.Bound(p => p.Zipcode).Title("Zipcode").Width(80);
                columns.Command(commands => commands
                                                .Custom("btnviewgeoaddress")
                                                .Text("View")
                                                .Click("viewgeoaddress")
                                                .HtmlAttributes(new { style = "text-align: center" }));
                columns.Command(commands => commands
                                                .Custom("btndeletegeoaddress")
                                                .Text("Remove")
                                                .Click("deletegeoaddress")
                                                .HtmlAttributes(new { style = "text-align: center" }));               
                 
 
            })
 
    .Scrollable(scr => scr.Enabled(true).Height(300))
    .Sortable(builder => builder.Enabled(true))
    .Resizable(resizing => resizing.Columns(true))
    .Selectable()
                    .DataSource(dataSource => dataSource
                                                  .Ajax()
                                                   .ServerOperation(false)
 
                        )
     
    )

 
GeoAddress datamodel has a parent model 'Person' in the ef model.

the error i get is : 
 'The ObjectContext instance has been disposed and can no longer be used for operations that require a connection.'

If i comment out these properties : 

.Selectable()
  .DataSource(dataSource => dataSource
                         .Ajax()
                         .ServerOperation(false)
                        )


Then it works.
It looks like that setting selectable tries to call all model properties (and if one of those is lazy loading data from db error occurs). 
I also have no problem on other models that do not have parent associations with other data models.





Vesselin Obreshkov
Top achievements
Rank 2
 answered on 29 Oct 2012
0 answers
137 views
Hello,

is there any sample for shared pagable datasource with gridview and listview. I would like to call a json controller method an bind the result to a listview and a gridview. Is there a way to do this with the mvc wrappers?

Regards,
Dominic
Top achievements
Rank 1
 asked on 29 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
Dialog
MultiColumnComboBox
DropDownTree
Checkbox
Slider
Switch
Notification
Accessibility
ListView (Mobile)
Pager
Security
ColorPicker
DateRangePicker
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
SmartPasteButton
PromptBox
SegmentedControl
LLM Kit
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?