Telerik Forums
UI for ASP.NET MVC Forum
5 answers
179 views
Hi,
Is it possible to have a grid bound to a signalR datasource and use inline editing?  I've set up my grid to be bound to a signalR datasource and it is successfully bound and I can update the data.  I am unable to get it to work with inline editing and also I cannot get it to update other instances of the grid.  My application is an MVC 5.1 application and I am running on Visual Studio 2012.  The Telerik version I am using is 2014.1.415.  So can you please answer the following:
1. Can the grid have inline editing but still be bound to a signalR datasource ?  If so, can you give an example?
2. Why aren't other instances of my grid updating with the changes?  Any things I can check?  I've followed your example and it seems I'm doing everything the same.

Please help.
Vladimir Iliev
Telerik team
 answered on 18 Nov 2015
5 answers
734 views

I need to stop collapsing a detail row in kendo grid in some cases, but my code is not working:

var detailGrid = $("#grid-details").kendoGrid({
           < ....>
            detailCollapse: function (e) {
                //operator.views.common.CheckDetailsRow(e.detailRow);
                e.preventDefault();
                return false;
            },

<......>
                   }).data("kendoGrid");

Boyan Dimitrov
Telerik team
 answered on 18 Nov 2015
1 answer
1.2K+ views

Hi,

I have a Kendo Grid in which I use Data method in Read.Action to pass parameters to a controller action. The code is:

<% Html.Kendo().Grid<EvaluationsQuestionsEvaluationPillarsGridViewModel>()
            .Name("Pillars")
            .DataSource(dataSource => dataSource
                  .Ajax()
                  .Model(model => model.Id(a => a.EvaluationMasterPillarId))
                  .ServerOperation(true)
                  .Read(read => read.Action("LoadEvaluationsQuestionsEvaluationPillarsGridAjax", "Evaluations")
                                    .Data("onLoadEvaluationsQuestionsEvaluationPillarsGridData"))
             )​
......

        function onLoadEvaluationsQuestionsEvaluationPillarsGridData(e) {
            var evaluationVersionId = $('#evaluationVersionId').val();  // "evaluationVersionId" is set beforehand
            var showDeletedCheckbox = $('#Checkbox1').val();

            return { evaluationVersionId: evaluationVersionId, showDeleted: showDeletedCheckbox }
        }

        public ActionResult LoadEvaluationsQuestionsEvaluationPillarsGridAjax(DataSourceRequest request, string evaluationVersionId, bool showDeleted)
        {
......

But the controller action "LoadEvaluationsQuestionsEvaluationPillarsGridAjax" is not even invoked. I need help on this. Thanks.

 

Dimiter Madjarov
Telerik team
 answered on 18 Nov 2015
1 answer
2.5K+ views

​Hi there, I was wondering if someone could help me.  How can I bind my dropdown list to a viewbag to ensure it's getting it's data from the right place?  I found a couple of guides but they didn't work for my scenario.  Here is my code.

// #DDL - Broker Companies
       
      IEnumerable<SelectListItem> thestats = seabrokersData.tbl_requirement_status
           
          .Select(c => new SelectListItem
          {
              Value = c.id.ToString(),
              Text = c.thet_status
          });
      ViewBag.theStatus = theStatus;

 

I would like my Kendo Dropdown to use the above viewbag to populate itself.  How can I do this?

Many thanks

 

 

 

Boyan Dimitrov
Telerik team
 answered on 18 Nov 2015
2 answers
295 views

I'm having some accessibility issues with my Kendo MVC Grid. When using the Tab button I am unable to access the pages options at the bottom left corner of the grid. After looking over your documentation I've seen that pressing ALT + Page Up or ALT + Page Down should allow me to move through the pages. Unfortunately this does not work and I'm unsure what may be causing this issue. Here is an example of my code.

        @(Html.Kendo().Grid<AuthDTO.ListUserManagement>()
              .Name("ManageUsersGrid")
              .HtmlAttributes(new {style = " width:100%; height:86%"})
              .Pageable()
              .Pageable(pageable => pageable
                .PageSizes(true)
                .Messages(msg => msg.Display("{0:d0} - {1:d0} of {2:d0} items"))
                .Refresh(true))
              .Reorderable(reorder => reorder.Columns(true))
              .Sortable(sort => sort.SortMode(GridSortMode.MultipleColumn))
              .Filterable(ftb => ftb.Mode(GridFilterMode.Row))
              .ColumnMenu()
              .ColumnResizeHandleWidth(10)
              .Resizable(resizable => resizable.Columns(true))
              .Scrollable(o => o.Height("100%"))
              .DataSource(dataSource => dataSource
                  .Ajax()
                  .Read(read => read.Action("GetUsers", "AppUser", new RouteValueDictionary {{"area", "AppUser"}}))
              )
              .Columns(columns =>
              {
                  columns.Bound(o => o.Id)
                      .Filterable(false)
                      .Width(100)
                      .IncludeInMenu(false)
                      .Sortable(false)
                      .Title("Actions")
                      .ClientTemplate(
                          "# if(" + @ViewBag.DOD + " == 'true')  { # +" +
                          "<a href=\"javascript: void(0);\" onclick=\"userEditItem('#: Id #');\" title=\"Edit\"><i class=\"disabled fa fa-pencil-square-o fa-lg\"></i><span class=\"sr-only\"></span></a>"
                          + "# } else { # " +
                          "<a href=\"javascript: void(0);\" onclick=\"userEditItemCAC('#: Id #');\" title=\"Edit\"><i class=\"active fa fa-pencil-square-o fa-lg\"></i><span class=\"sr-only\"></span></a>"
                          + "# } #" +
                          "<a href=\"javascript: void(0);\" onclick=\"impersonate('#: Id #');\" title=\"Impersonate User\"><i class=\"active fa fa-user fa-lg\"></i><span class=\"sr-only\"></span></a>"
                      );
                  columns.Bound(o => o.LastName)
                      .Width(200)
                      .Filterable(ftb => ftb.Cell(cell => cell.Operator("contains")));
                  columns.Bound(o => o.FirstName)
                      .Title("First Name")
                      .Width(200)
                      .Filterable(ftb => ftb.Cell(cell => cell.Operator("contains")));
                  columns.Bound(o => o.Email)
                      .Title("Email")
                      .Width(250)
                      .Filterable(ftb => ftb.Cell(cell => cell.Operator("contains")));
                  columns.Bound(o => o.Phone)
                      .Title("Phone")
                      .Width(250)
                      .Filterable(ftb => ftb.Cell(cell => cell.Operator("contains")));
                  columns.Bound(o => o.Organization)
                      .Title("Organization")
                      .Width(250)
                      .Filterable(ftb => ftb.Cell(cell => cell.Operator("contains")));
                  columns.Bound(o => o.Active)
                      .Title("Active")
                      .Width(100)
                      .Filterable(false);
                  columns.Bound(o => o.LockedAccount)
                      .Title("Locked Account")
                      .Width(100)
                      .Filterable(false);
                  columns.Bound(o => o.LockoutDateTime)
                      .Title("Lockout Date Time")
                      .Width(200);
              })

              )

 




Justin
Top achievements
Rank 1
 answered on 17 Nov 2015
1 answer
76 views

Hello,

I have a problems with @(Html.Kendo().Editor() in Vistual Studio 2015 ASP.NET 5 MVC 6 beta 8 with "Kendo.Mvc : 2015.3.1111".

No overload for method '​Editor' takes 0 arguments

When will it be available?

Best Regards

Davide

Dimiter Madjarov
Telerik team
 answered on 17 Nov 2015
5 answers
344 views

My use case involves the user editing the content of the editor while the server occasionally updates some of the values in the text

However, when the server sends an update and the editor.value("string") happens, the cursor position is reset to the start of the text, instead of leaving it where it is

I've tried fiddling with selected ranges and such but it doesn't seem to be working

Dimo
Telerik team
 answered on 17 Nov 2015
5 answers
635 views
Hi all!

I'm using the feature described here http://demos.kendoui.com/web/treeview/api.html to filter treeview items by text. 

I already have all nodes loaded (they are not all expanded), but when I apply the filter using the code above, it does not work.

treeview.dataSource.filter({
field: "text",
operator: "contains",
value: filterText
});

Example 

  • Item aa
  • Item bb
    • Item xx
    • Item yy

if search text is "xx", no items are displayed. Instead I would like to have the following result:

  • Item bb
    • Item xx
But if your search text is "aa", "bb" or some string similar to root item texts ... the nodes are displayed

Does anyone knows how to make the filter applying for all nodes?

BTW! I'm using MVC and the last build of Kendo

Thanks!
Alex Gyoshev
Telerik team
 answered on 17 Nov 2015
2 answers
84 views

I'm not sure if this us something that a Keno control could handle but I thought I'd best ask anyway.  On part of my form the user can add multiple entires before submission.  I need to know if it's possible to handle this behaviour with Kendo controls?  I've attached a couple of images to show you what I mean.

The user can add as many items as they want.

Many thanks

 

Allan

Kiril Nikolov
Telerik team
 answered on 17 Nov 2015
1 answer
370 views

Hi,

With filterable->mode set to row, is it possible to filter a date between two dates? I ​found this thread http://www.telerik.com/forums/how-to-define-a-kendo-grid-column-filter-between-two-dates, and currently have ​it applied ​to grid menu filter, but not sure how to make it work when the filterable mode is row.

 

Thanks,

Lisa

 

Vladimir Iliev
Telerik team
 answered on 17 Nov 2015
Narrow your results
Selected tags
Tags
Grid
General Discussions
Scheduler
DropDownList
Chart
Editor
TreeView
DatePicker
Upload
ComboBox
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
ListView (Mobile)
Pager
Accessibility
ColorPicker
DateRangePicker
Wizard
Security
Styling
Chat
MediaPlayer
TileLayout
DateInput
Drawer
SplitView
Barcode
ButtonGroup (Mobile)
Drawer (Mobile)
ImageEditor
RadioGroup
Sparkline
Stepper
TabStrip (Mobile)
GridLayout
Template
Badge
LinearGauge
ModalView
ResponsivePanel
TextArea
Breadcrumb
ExpansionPanel
Rating
ScrollView
ButtonGroup
CheckBoxGroup
NavBar
ProgressBar
QRCode
RadioButton
Scroller
Timeline
TreeMap
TaskBoard
OrgChart
Captcha
ActionSheet
Signature
DateTimePicker
AppBar
BottomNavigation
Card
FloatingActionButton
Licensing
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
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?