Telerik Forums
UI for ASP.NET MVC Forum
1 answer
725 views

I am getting this error "The Type or Namespace name ' GridAction' could not be found" while upgrading the application from version 2011.2.712 to 2018.3.1017.

Please let me know how to solve this error.

Tsvetina
Telerik team
 answered on 13 Dec 2018
1 answer
86 views

Hi,

I am using a hierarchical (master/detail) grid.  After I click to save changes to the detail grid, I would like to update the contents of a particular cell in the master.  This displays summary data from the details grid.  So, after the detail changes have been saved I need to make a server call to grab some data from the database and display it in that cell.  How would I make this call, return the data and display it in my chosen cell in the parent?  I appreciate that I could refresh the entire grid (or page) but would prefer to make an Ajax style update to make the process quicker and slicker.

Many thanks,

Colin

 

Konstantin Dikov
Telerik team
 answered on 13 Dec 2018
2 answers
259 views
I've done quite a bit of research on this, but haven't found a conclusive answer, so I'm asking here.  Is there a way to have a grid display all of the Model's fields without having to specify each of them in the Columns section (ie column.bound())?  would it be possible to do a loop for them, or something of that nature, or is there a feature of the grid that i'm not currently aware of?  Maybe something like .Coluns(columns => {columns.each(x=>columns.bound(x))}?
Casey
Top achievements
Rank 1
 answered on 12 Dec 2018
4 answers
115 views

Hi,
I've got a problem with kendo culture and treeView read action. 

I've got bilingual application, with en-US and pl-PL culture, which I set like this:
Client side: (var culture = "pl-PL" or "en-US")

<script src="@Url.Content("~/Scripts/kendo/cultures/kendo.culture." + culture + ".min.js")"></script>
    <script src="@Url.Content("~/Scripts/kendo/messages/kendo.messages." + culture + ".min.js")"></script>
    <script>kendo.culture("@culture");</script>

Server side: (ex.: CultureInfo cultureInfo = new CultureInfo("pl-PL");)

Thread.CurrentThread.CurrentCulture = Thread.CurrentThread.CurrentUICulture = cultureInfo;

It seems to work well.

I've got a view with grid and treeView. Both has read action with additional data, getting like this:

.Read(read => read.Action(@"ReadOfertyTree", @"Oferty").Data(@"filterGrid")) <- treeView
(...)
.Read(read => read.Action(@"ReadOferty", @"Oferty").Data(@"filterGrid")) <- grid
(...)
function filterGrid() {
        return {
            dataOd: dataOd,
            dataDo: dataDo,
            klient: klient,
            zamow: zamow
        };
    }

dataOd and dataDo both are read from kendoDatePicker. In both cases I can see in network in my browser, that date is sending in format dd.MM.yyy for pl culture and MM/dd/yyyy for en culture. In case of en, everything is allright BUT in pl case I faced with strange behaviour.

In controller's action read for grid I got dates:
1.11.2018 is read as 1st of november 2018
30.11.2018 is read as 30th of november 2018
BUT in treeView read action I've got:
1.11.2018 is read as 11th of january 2018
30.11.2018 is read as null

I don't set culture in any other places. Both controlls are in the same cshtml file and both read action in the same controller. What's wrong?

 

Veselin Tsvetanov
Telerik team
 answered on 12 Dec 2018
1 answer
955 views

Hi  - I need help in attaching a Tooltip to a dropdown in my grid – to display additional details for each item in the dropdown list

I have not been able to adapt any of the Tooltip examples I have found – hoping someone can help

My mvc grid column editor template is defined as

columns.Bound(c => c.MostRecentTollGate).EditorTemplateName("MostRecentTollGateDDL").Width(150).Filterable(ftb => ftb.Multi(true).Search(true))


My editor dropdown is as follows

@(Html.Kendo().DropDownListFor(m => m)
    .DataValueField("MostRecentTollGate1")
    .DataTextField("MostRecentTollGate1")
    .Filter("contains")
    .DataSource(source =>
    {
        source.Read(read =>
        {
            read.Action("TableRead", "ForecastDetails", new { tableIn = "MostRecentTollGate" }).Data("getGroupType");
        });
    })
)

 

the drop down works fine - now i need to add a tooltip

Thanks

Jim

 

 

Marin Bratanov
Telerik team
 answered on 06 Dec 2018
1 answer
551 views

Hello,

In my project, we have to provide pdf export for all of our grids. When they are small, there is no real problems. But when we have like 10 or more columns and multiple pages, it seems we can't extract all the columns and the export will only show like 6 columns and only the first page...

Is there another way to display all columns without changing scaling (making text unreadable) or the format size ? (We don't want to print in A0 either...)

 

Thanks in advance !

Alex Hajigeorgieva
Telerik team
 answered on 06 Dec 2018
7 answers
196 views
How to use columns.sortable.initialDirection in UI for ASP.NET MVC grid? reference for javascript: http://docs.telerik.com/kendo-ui/api/javascript/ui/grid#configuration-columns.sortable.initialDirection. Using Assembly Kendo.Mvc, Version=2017.1.223.545.
Viktor Tachev
Telerik team
 answered on 05 Dec 2018
2 answers
103 views
I am using a parameter to allow manually editing group rotation angle, when an angle has been set, moving the affected shape/group causes the height to at least 3x it's original size and width to fluctuate up and down. Also, when a shape has been rotated, the selector doesn't rotate, causing an offset between the shape and it's selector.
Note: I noticed that moving the group after rotation triggers the ItemRotate event;

                    if (dataItem.Align.toUpperCase() === "left".toUpperCase()) {
                        g.append(new dataviz.diagram.Rectangle({
                            width: dataItem.width,
                            height: dataItem.height,
                            fill: dataItem.Color
                        }));

                        g.append(new dataviz.diagram.Rectangle({
                            width: dataItem.width * 0.25,
                            height: dataItem.height,
                            fill: "Red"
                        }));
                        g.rotate(dataItem.Angle, new dataviz.diagram.Point(30, 30));


                    }
I have tried :
Setting the rotation on each shape instead of the group, with the same results. see below
setting rotation angle in shape defaults but each group's Angle varies and was unable to set it dynamically using the dataItem's Angle.
var rect = new dataviz.diagram.Rectangle({
                            width: dataItem.width * 0.25,
                            height: dataItem.height,
                            fill: "Red"
                        });
rect.rotate(dataItem.Angle, new dataviz.diagram.Point(30, 30));
Tjay
Top achievements
Rank 1
 answered on 04 Dec 2018
1 answer
837 views

Every example that has custom paging always fails to address the question. Every example has the controller receiving the DbContext for the ToDataSourceResult method to then do the paging which is not what is wanted.

 

Take a look at the example on this page: https://docs.telerik.com/aspnet-mvc/helpers/grid/binding/custom-binding#custom-ajax-binding

public ActionResult Orders_Read([DataSourceRequest]DataSourceRequest request)
    {
        //Get the data (code omitted).
        IQueryable<Order> orders = new NorthwindEntities().Orders;
 
        //Apply sorting (code omitted).
 
        //Apply paging (code omitted).
 
        //Initialize  the DataSourceResult.
        var result = new DataSourceResult()
        {
            Data = orders, // Process data (paging and sorting applied)
            Total = total // Total number of records
        };
    }

 

The problem is when we don't pass our DbContext this far up.

 

I'm trying to do custompaging on the grid, my controller calls a middle layer which does the paging and filtering and returns an IList<OrderViewModels> with only the 20 items for the page. Except it doesn't work unless I return all 700,000 records. Then it magically pages and somehow this is supposed to be called serverside paging. It is only paging at the UI layer which is incredibly inefficient. Granted it is not doing it on the client, but it is still no good if it is at the UI layer as I'm having to return all records from the datalayer.

 

public ActionResult GetFilteredOrders([DataSourceRequest] DataSourceRequest request, OrderSearchModel model)
        {         
            var dataResults = orderSearcher.GetOrders(model); // Users datalayer to returns the paged 20 items and total    
            var resultObject = new DataSourceResult()
            {
                Data = dataResults.OrderList, // Process data (paging and sorting already applied)
                Total = dataResults.DataTotal // Total number of records
            };
            return Json(result);
        }

 

This only works on page 1 and nothing on any other page, even though I can see that dataResults has data. 

 


Georgi
Telerik team
 answered on 04 Dec 2018
1 answer
124 views

Hi,

Every time I upgrade the Kendo with the upgrade wizard the culture files I need for my non-English language are ignored. It is easy to miss, since most things work after the upgrade, but there are some subtle problems that arise when the culture files are missing. Like NumericTextBox that changes the decimal point character.

 

Would it be possible to have the upgrade wizard handle also the culture and message files? Or at least a reminder on the upgrade wizard log page that this needs to be done?

 

Best regards,

Henrik

Nikolay Mishev
Telerik team
 answered on 03 Dec 2018
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
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
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?