Telerik Forums
UI for ASP.NET MVC Forum
8 answers
276 views

Hi,

We just installed version 2020.1.219 of Kendo ASP.NET MVC, 
and we downloaded the SASS sources via npm (npm install @progress/kendo-theme-default), 
and we have some issues

1) SCSS files are wrong, and don't want to "compile"

There are commas that remain at the end of the include. Ex :
.k-popup {
        @include fill(
            $popup-text,
            $popup-bg,
            $popup-border,
        );
    }


2) Some Sass rules are badly written which prevents specifying variables

Ex :
$checkbox-line-height: $checkbox-size + $checkbox-border-width !default;

Replace with

$checkbox-line-height: addtwo($checkbox-size, $checkbox-border-width) !default;

Idem with $checkbox-dash-width & $radio-line-height

3) Issues with grid page numbers

We display both the current page and all the pages. 
This line is missing in the SCSS file (line present in the "standard" CSS case) :

.k-pager-wrap .k-pager-numbers .k-current-page {
    display: none;


And even by adding this rule we have strange behavior of the pages: 
the page numbers disappear but the space between the navigation arrows is present, 
which makes a "hole" between them. It is enough to slightly change the size of the window 
(and therefore of the grid) so that the figures appear. 
I had to add a .Responsive (false) for it to work properly.

4) Issues with grid header && FireFox

This problem was present before this new version, but I take this opportunity to report a problem concerning the calculation of the padding-right on the k-grid-header.
You should know that all our grids have scrollers (Virtual or Endless) 

In Firefox:
<div class = "k-grid-header" style = "padding-right: 0px;"
With Chrome:
<div class = "k-grid-header" style = "padding-right: 17px;"

This causes the header columns to be offset from the body columns

This is not systematic: it happens about 1 in 10 times.

I didn't find the reasons why it happened on some grids and not on others that seem similar

 

 

Regards

Syleps
Top achievements
Rank 1
Veteran
 answered on 15 Apr 2020
7 answers
2.7K+ views
Hi,
I using the Grid control and have a datetime field. I am trying to understand how to update my database with the correct datetime.
The database and website is hosted on a server that is in UTC time. My Grid shows the correct datetime and the client is in Australia. I have setup culture to en-AU and this is working correctly but when I update the database the datetime field is wrong by the timezone of +11 hours.
The Grid always shows the datetime correctly eg. database will have 16/10/2014 12:00:00 AM and it will show in the Grid as Thu Oct 16 2014 11:00:00 GMT+1100 (AUS Eastern Daylight Time). 
When I update the Grid it will put into the database 16/10/2014 11:00:00 AM but show in the Grid Thu Oct 16 2014 22:00:00 GMT+1100 (AUS Eastern Daylight Time)

I then tried the example http://www.telerik.com/support/code-library/using-utc-time-on-both-client-and-server-sides
but this always show in the Grid as UTC time and I want to display the datetime in the local time.
eg. The database has 16/10/2014 12:00:00 AM and the Grid shows Thu Oct 16 2014 00:00:00 GMT+1100 (AUS Eastern Daylight Time). Updating the Grid does the same. 

Is there another way of doing this?
Thanks.
Viktor Tachev
Telerik team
 answered on 14 Apr 2020
3 answers
371 views
Hi,

I have 2 questions about the radial gauge :

1) center gauge area on pointer origin

If we take the example provided in the demonstration, and we change the angles from 90° to 270°, the gauge area is no longer centered relative to the container.
Is there a way for the center of the gauge to always be the origin of the pointer ?

2) 360° gauge angle

If we take the example provided in the demonstration, and we change the angles from 90° to 450°, the 0 and the 180 are displayed one on top of the other.
Is there a way to hide either end of the scale labels ?
This could be using for displaying a clock for example

Regards
Tsvetomir
Telerik team
 answered on 14 Apr 2020
9 answers
1.2K+ views

I have a grid with 2 hierarchy, one parent and one child.

 

I'm trying to override the child grids in built "delete" function by adding a custom command to it and calling a javascript function.

 

When i call the javascript function, i can call 

$(e.target).closest("tr");

to get the current selected row, however i have no idea how i can get the child grid object using javascript.

 

For example, the child grid would be defined as follows:

<script id="cGrid" type="text/kendo-tmpl">
@(Html.Kendo().Grid<CGridModel>()
      .Name("grid_#=Id#")

 Normally you would access any kendo grid by doing the following

var grid = $("#NAME_OF_GRID_HERE").data("kendoGrid");

And so i have tried 

var grid = $("#grid_#=Id#").data("kendoGrid");

But to no avail.

 

What's the correct way of getting the child's grid object using javascript?

Annie hera
Top achievements
Rank 1
 answered on 13 Apr 2020
3 answers
125 views

Hi, we are able to set the format for a date column using column binding such as follows: 

c.Bound(col => col.Created).Title("Date").Format("{0: yyyy-MM-dd HH:mm:ss UTC}");

 

 

Is there a way to dictate formatting at the grid level so that all grid columns receive the format and we don't have to repeat the format string for each column? This would be especially useful for us because we extract our default grid settings to an extension method, so we would be able to dictate the default format for all columns for all grids in one place.

Ivan Danchev
Telerik team
 answered on 13 Apr 2020
5 answers
168 views
Is there a sample for using  returned by a controller as the MVC PivotGrid ?  I can't seem to get data to load in the although I see the getting fetched.
Nikolay
Telerik team
 answered on 13 Apr 2020
9 answers
3.1K+ views

I currently have a kendo grid defined using Razor with read & update actions. It seems that, by default, the update action sends data as a url encoded string (application/x-www-form-urlencoded). Is there a way to set the datasource's update/create/delete actions to post json data instead. 

I ask because our grid rows contain nested objects used in business logic and we've found that the model binding process is really slow on a url encoded string, and very fast when we send the data as a json string (tested in a seperate ajax call).

Aleksandar
Telerik team
 answered on 13 Apr 2020
6 answers
300 views

I have an AnalysisServices Server Installed and i have created a cube in it. I need to add a pivotgrid into my site for browsing said cube.
My site is done using MVC controls and i have added an MVC Pivotgrid using the code below:

@(Html.Kendo().PivotGrid()
        .Name("pivotgrid")
        .ColumnWidth(200)
        .Height(570)
        .Filterable(true)
        .Sortable()
        .Configurator("#configurator")
        .DataSource(dataSource => dataSource
            .Custom()
            .Transport(transport => transport
                .Connection(connection => connection
                .Catalog("CatalogName")
                .Cube("CubeName"))
                //.Read(read => read
                //    .Url("RDC-35")
                //)
            )
            .Events(e => e.Error("onError"))
        )
)

 But i cannot understand where to put the server name. As far as i can tell i need to use .Read(x => x.Url("http://blah.blah") ). and that i need to have an http address for my server installed, as mentioned here: http://docs.telerik.com/kendo-ui/web/pivotgrid/overview

The PivotDataSource component communicates with OLAP cube instance on HTTP using the XMLA protocol
Is this the only way? Can't i use Adomd or ADO.NET?

 

P.S. i have found examples with code like the one below that imply using adomd is an option:

 <AdomdConnectionSettings Cube="Adventure Works" DataBase="Adventure Works DW 2008R2" ConnectionString="Data Source=http://demos.telerik.com/olap/msmdpump.dll;Catalog=Adventure Works DW 2008R2"></AdomdConnectionSettings>

Please forgive me if i have misunderstood anything, i am new to your controls and doing my best to understand them and start using them

Tsvetomir
Telerik team
 answered on 10 Apr 2020
1 answer
351 views

I had this working at one point for a demo... maybe something changed?  But, now I'm baking this into my site for real and pulling a PDF from Azure.  I verify that I'm getting the stream.  Do I have the correct return type?

if (currentContainer.Container == null)
{
    var containerResponse =
        await containerClient.GetAsync(
            currentContainer.ContainerId);
    if (containerResponse.IsSuccess)
    {
        currentContainer.Container =
            containerResponse.Result;
    }
}
if (currentContainer.Container != null)
{
    CloudStorageAccount storageAccount =
        CloudStorageAccount.Parse(
            Glossary.Container.StorageAccountUrl);
    CloudBlobClient blobClient =
        storageAccount.CreateCloudBlobClient();
    CloudBlobContainer container =
        blobClient.GetContainerReference(
            currentContainer.Container.Name);
    if (await container.ExistsAsync())
    {
        CloudBlockBlob blob =
            container.GetBlockBlobReference(
                currentContainer.Path);
        if (await blob.ExistsAsync())
        {
            // pull the zip file into memory
            // load the zipFileStream from the blob
            MemoryStream stream = new MemoryStream();
            await blob.DownloadToStreamAsync(stream);
            return new FileStreamResult(stream, "application/pdf");
        }
        else
        {
            throw new Exception("File not found in Azure container for this record");
        }
    }
    else
    {
        throw new Exception(
            $"Unable to capture Azure container: {currentContainer.Container.Name}");
    }
}
else
{
    throw new Exception($"Unable to capture recorded container for this file.");
}

Ivan Danchev
Telerik team
 answered on 09 Apr 2020
1 answer
306 views

Hi,

With the latest version of kendo (2020.1.219), with numerictexbox, when you type the decimal with the '.' on the numeric keypad, it is blocked and is not replaced by the decimal character which depends on the culture (the comma in my case), unlike previous versions.

Test performed on: https://demos.telerik.com/aspnet-mvc/numerictextbox/globalization

What solution do we have?

 

 

Regards

 

Silviya Stoyanova
Telerik team
 answered on 08 Apr 2020
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
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
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?