Telerik Forums
UI for ASP.NET MVC Forum
8 answers
816 views
Hello,

I'm planning to use Editor in my ASP.NET MVC application to edit and print some HTML content that I store in database. But, as I could see in THIS demo Editor does not contain tools (buttons) such as Save and Print. I've used your ASP.NET Ajax editor in my previous ASP.NET Web Forms applications to achieve same functionality and that editor had this buttons.

My question is, how can I save changes and print ONLY the content of Editor in ASP.NET MVC? Any example?
Paul
Top achievements
Rank 1
 answered on 30 Mar 2018
2 answers
686 views
I've just upgraded my ASP.NET MVC project from Bootstrap 3 to 4. I also updated to the latest Telerik UI for ASP.NET MVC version 2018.1.221. Now I'm just trying to figure out which files need to be included in my bundles to make it work. There was a nice walk-through on the documentation site on setting up bundles for with Bootstrap 3 but I can't find anything equivalent for Bootstrap 4. What needs to be included?
Jesse
Top achievements
Rank 1
Veteran
 answered on 30 Mar 2018
1 answer
248 views

Hi Telerik Team,

Currently I setup my mvc pivot grid as follow:

 

@(Html.Kendo().PivotConfigurator()
                        .Name("configurator")
                        .HtmlAttributes(new { @class = "hidden-on-narrow" })
                        .Filterable(true)
                        .Sortable()
                        .Height(580)
            )

@(Html.Kendo().PivotGrid<EmployeeTurnOverDto>
    ()
    .Name("pivotgrid")
    .HtmlAttributes(new { @class = "hidden-on-narrow" })
    .Filterable(true)
    .Sortable()
    .Configurator("#configurator")
    .ColumnWidth(120)
    .Height(580)
    .BindTo(Model)
    .DataSource(dataSource => dataSource
    .Ajax()
    .Schema(schema => schema
    .Cube(cube => cube
    .Dimensions(dimensions =>
    {
    dimensions.Add(model => model.FullName).Caption(L("Staffs"));
    dimensions.Add(model => model.Institution).Caption(L("Institution"));
    dimensions.Add(model => model.Department).Caption(L("Department"));
    dimensions.Add(model => model.TurnOverDate).Caption(L("TurnOverDate"));
    })
    .Measures(measures =>
    {
    measures.Add("In").Field(model => model.JoinFlag).AggregateName("sum").Caption(L("In"));
    measures.Add("Out").Field(model => model.ResignFlag).AggregateName("sum").Caption(L("Out"));
    })
    )
    )
    .Columns(columns =>
    {
    columns.Add("TurnOverDate").Expand(true);
    })
    .Rows(rows => rows.Add("Denomination").Expand(true))
    .Measures(measures => measures.Values("In"))
    .Events(e => e.Error("onError"))
    )
    )

 

Could you advise how to add the Year and/or Month (in MMM format) component of the TurnOverDate in the Column fields?

 

Note that I am not using cube, but using a flat data.

 

Thank you.

 

Regards,

Hage

 

Alex Hajigeorgieva
Telerik team
 answered on 28 Mar 2018
1 answer
756 views

Hi,

I have a grid which has a column bound to a boolean value indicating if the record is a priority or not.

I wan't to be able to sort the grid so that records with priority set to true to be at the top.

I cannot find any way to do this in the docs, is it possible? I notice that even the default sorting does not work (by clicking the header) so trying to set a sort order on the DataSource model is just failing on page load.

This is the child grid in a hierarchical situation if that makes any difference...

 

.Sort(s =>
{
s.Add(m => m.Priority).Ascending();
s.Add(m => m.Start).Descending();
}))
 
columns.Bound(m => m.Priority).Filterable(false).ClientTemplate("\\#= Priority ? '" + Resources.BUTTON_YES + "' : '" + Resources.BUTTON_NO + "' \\#")
Stefan
Telerik team
 answered on 28 Mar 2018
2 answers
870 views

Hi,

 

I'm having an issue with columns widths on Internet Explorer.

 

This occurred when upgrading from 2017.1.223 to 2018.1.221.

 

Changing the widths of columns on the razor code doesn't change anything in IE. If I render the page, then try to change the width by dragging the header cell, the columns align, but still don't take up the full width, like normal. I have attached a screenshot of the columns aligned after messing with them is called after-align.png

 

I have attached screenshots of the grid in both Chrome and IE too. Again, the grid works in Chrome, but doesn't work in IE. Let me know if you need any more information!

 

Thanks,

Jessica

Viktor Tachev
Telerik team
 answered on 27 Mar 2018
3 answers
205 views

Sample Class (one of the many I have tried) and sample data is at the bottom.

When using the PivotGrid, I could use a little assistance on how to get the row dimensions to properly travel my hierarchy properly.
I am using the following Hierarchy. 

Activities (A)
      Disciplines  (D)
           Systems (S)
                 Tasks (T)

I have been able to get it to work with just one Activities and Disciplines, but I cannot get it working with all 4 items.  I have attached my last attempt, which was creating the class with the ID/Name pair for each of the 4 items, and then filling the records up, but it still keeps choking at the 3rd level.  I have tried nesting them as well, when worked perfectly for the treeview control, but completely blew up on the PivotGrid.

So, what I am trying to accomplish is have a pivot grid that will be as follows when fully expanded.  

A1
     D1
         S1
              T1
              T2
         S2
              T3
     D2
         S3
              T3
A2 ....etc

 

Thanks in advance for your assistance!
Ed

 

 

    public class PhasePivotVM
    {
        public Single Score { get; set; }

        public int ActivityID { get; set; }
        public ActivityTypeVM ActivityTypes { get; set; }

        public int DisciplineID { get; set; }
        public DisciplineTypeVM DisciplineTypes { get; set; }

        public int SystemID { get; set; }
        public SystemTypeVM SystemTypes { get; set; }

        public int TaskID { get; set; }
        public TaskTypeVM TaskTypes { get; set; }

        public PhasePivotVM()
        {
            ActivityTypes=new ActivityTypeVM();
            DisciplineTypes = new DisciplineTypeVM();
            SystemTypes = new SystemTypeVM();
            TaskTypes = new TaskTypeVM();
        }
    }
    public class ActivityTypeVM
    {
        public int? ActivityID { get; set; }
        public string ActivityName { get; set; }
    }
    public class DisciplineTypeVM
    {
        public int? DisciplineID { get; set; }
        public string DisciplineName { get; set; }
    }
    public class SystemTypeVM
    {
        public int? SystemID { get; set; }
        public string SystemName { get; set; }
    }
    public class TaskTypeVM
    {
        public int? TaskID { get; set; }
        public string TaskName { get; set; }
    }

ActivityID DisciplineID SystemID TaskID ItemScore  ItemName
4              NULL           NULL        NULL  100             *Exist but are all hidden for privacy*
4              13                NULL        NULL  100
4              13               40              NULL  100
4              13               40              188     100
4              13               40              278     100
4              13               40              279     100
5              NULL           NULL        NULL  100             
5              23                NULL        NULL  100
5              23               41              NULL  100
5              23               41              414      98

Edward
Top achievements
Rank 1
 answered on 27 Mar 2018
1 answer
302 views
If I use endless scrolling and grouping all seems to work alright, except when I go to collapse the groups. Is this supposed to be supported? When I  try to collapse the group nothing happens.
Stefan
Telerik team
 answered on 27 Mar 2018
2 answers
308 views

I install kendo ui asp.net mvc 2018.1.117 and 2016.

1. I add Style and JS Folder to my project and renamed both of them to "kendo" .

2. add reference to my project

3. I didn't config BundleConfig.cs because there was no BundleConfig.cs in my project

4. I add namespace to web.config

5. I add Styles and ... manually in my project like :

 

<link href="@Url.Content("~/Content/bootstrap.min.css")" rel="stylesheet" type="text/css" />
<link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
 
<link href="@Url.Content("~/Content/kendo/kendo.common-material.min.css")" rel="stylesheet" type="text/css" />
<link href="@Url.Content("~/Content/kendo/kendo.mobile.all.min.css")" rel="stylesheet" type="text/css" />
<link href="@Url.Content("~/Content/kendo/kendo.material.min.css")" rel="stylesheet" type="text/css" />
 
<script src="@Url.Content("~/Scripts/kendo/jquery.min.js")"></script>
<script src="@Url.Content("~/Scripts/kendo/angular.min.js")"></script>
<script src="@Url.Content("~/Scripts/kendo/jszip.min.js")"></script>
<script src="@Url.Content("~/Scripts/kendo/kendo.all.min.js")"></script>

 

I did all these steps and when I add kendo date Picker it doesn't work:

@(Html.Kendo().DatePicker().Name("datepicker"))

 

 

When I click inspect element it shows my css and js file but kendo ui doesn't work.

 

I attach the Picture that show kendo ui doesn't work

Dimitar
Telerik team
 answered on 26 Mar 2018
9 answers
744 views
Hi!

We have implemented some custom filtering and use the grid.dataSource.filter(...) method to request new data via ajax. Normally everything works well. However, a common scenario is that the user first selects one filter and then (before the ajax result is back) selects another. When the user selects the new filter we would like to cancel the ongoing request and send a new one - is that possible?

Also - is it possible to manually trigger the first request and not have the grid auto-request data?


Thanks in advance
Victor Ström
Stefan
Telerik team
 answered on 26 Mar 2018
2 answers
146 views

Hi,

If I use Serverfiltering on the ASP.NET MVC dropdownlist control, my controller method is called with a string text parameter. (the text parameter contains the text that the user is typing on the dropdownlist)

If use serverfiltering on the HTML5/Javascript dropdownlist control, the text parameter is null.

If I look at it with developer tools in Chrome, there is a long querystring added that looks like this: Home/GetPurchasingOrganisations?filter%5Bfilters%5D%5B0%5D%5Bvalue%5D=test&filter%5Bfilters%5D%5B0%5D%5Bfield%5D=Value&filter%5Bfilters%5D%5B0%5D%5Boperator%5D=startswith&filter%5Bfilters%5D%5B0%5D%5BignoreCase%5D=true&filter%5Blogic%5D=and

 

How do I get the filter value out of this querystring in my controller?

Thanks,

Nicolas

Dimitar
Telerik team
 answered on 23 Mar 2018
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
DropDownButton
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
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
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?