Telerik Forums
UI for ASP.NET MVC Forum
3 answers
210 views

Hi,

I am trying to get the MVC date picker to parse and format dates the same as the ASP.Net date picker does, eg. user enters 1/1/11 and the picker formats it into 1/1/2011.

How do I get the MVC date picker to do this?

Thanks.

Viktor Tachev
Telerik team
 answered on 06 Apr 2016
5 answers
443 views
Hi guys,

I'm working with the asp.net MVC panelbar. I have succeeded in creating the databound panelbaritems but I don't know how to create the child items.
I have one class
public class Item
{
    public string Header{get;set;}
    public string Description{get;set;}
    public DateTime PostedDateTime{get;set;}
}

The panelbaritems contain the PostedDateTime and the Header, and now I want the child to contain the Description.

Can you show me an example of how to do this?

thanks
Hristo Valyavicharski
Telerik team
 answered on 06 Apr 2016
3 answers
332 views

I have written my issue. Please help

llink

Rosen
Telerik team
 answered on 06 Apr 2016
1 answer
91 views

Hello Everyone,

Tested in IE 11 and FF 45.0.1 with same results.

Follow demo link here:

https://demos.telerik.com/aspnet-mvc/spreadsheet/disabled-cells

Click the Disable / Enable Quantity Column button.

It appears the cells in Quantity Columns are disabled and user can't type anything on them.

But:

User can press CTRL+C CTRL+V to overwrite the cell value.

Also Dragging the Cell "Fill Handle" will overwrite the cell value

As a side effect, once a cell has been pasted into a disabled cell, the disabled cell becomes editable (even if you paste copying from an already

disabled cell which also means that the disabled attribute is not copied/pasted over)

Best Regards

Mihai
Telerik team
 answered on 06 Apr 2016
1 answer
368 views

Is it possible to set the grid column editor function using the MVC wrappers?

http://docs.telerik.com/kendo-ui/api/javascript/ui/grid#configuration-columns.editor

I only see see EditorTemplateName(string) to specify an MVC editor template. I need to do the editor on client side because I need access to the whole model to dynamically create a control based on model value.

 

Or is it possible to set this function after initialization?

I tried $("#grid").data("kendoGrid").columns[1].editor = function(container, options) {...}

This did not work.

Rosen
Telerik team
 answered on 05 Apr 2016
1 answer
1.0K+ views
I am using ASP.NET MVC 5, C#, Entity Framework 6 and Telerik MVC suite to build my application. Can you please point me to an example that illustrates the usage of stored procedure to load a grid? I need the grid to support paging, sorting and filtering. 
Viktor Tachev
Telerik team
 answered on 05 Apr 2016
2 answers
123 views

Hello.

I'm having some troubles with some grids in Internet Explorer and Mozilla Firefox. I have noticed that the filters windows, the datepickers and dropdowns inside the rows don't appear in the correct position. Those try to appear at the bottom of the page instead of when they should be. Sometimes that makes them to appear and disappear in an instant. This happens when the window is small or the grid is at the bottom of the window. When the window is big there's no problem.

In the browsers Google Chrome and in Opera works perfectly.

I think maybe I have a css/javascript conflict or I'm mising some css/js file.

Thank you.

Nassouh Chehayeb
Top achievements
Rank 1
 answered on 04 Apr 2016
1 answer
883 views

I have a grid that I am using the pop-up editing in. I am using a custom template with drop-downs. The drop-downs have an "Other" option that when selected shows a textbox that you can enter the "Other" details in. This was all in a regular form before I added it to a grid for entry. So I have code for custom validation that would validate these fields if they were showing that worked in a regular form. However, since moving them into the grid pop-up editor, the custom validation is not firing for some reason.

I'm unsure what to do, I have tried to hook the validator up to the grid like so:

$("#DeviceGrid").kendoValidator({
            rules: {
                otherrequired: function (input) {
                    if (input.is("[data-val-otherrequired]")) {
                        var iVal = input.val();
                        var pFld = $("[name='" + input.attr("data-val-otherrequired-parentfield") + "_input']");
 
                        if (input[0].id === "DevicePhoneNum") {
 
                            if (pFld.val().toLowerCase().indexOf("phone") >= 0 && iVal === "") {
                                return false;
                            }
                        }
 
                        if (pFld.val() === "Other" && iVal === "") {
                            return false;
                        }
                    }
                    return true;
                }
            },
            messages: {
                otherrequired: function (input) {
                    return input.attr("data-val-otherrequired");
                }
            },
            validateOnBlur: true
        });

 

But I'm not sure that this is even the correct way of going about it.

Any insight into this would be appreciated!

Thanks,

Dustin

Boyan Dimitrov
Telerik team
 answered on 04 Apr 2016
1 answer
235 views
I'm building a grid that I'd like to be responsive. When the window shrinks horizontally the grid information on bottom such as paging, refresh, and Items per page drops down to the next line. In the example these options become hidden as the window shrinks horizontally. I'm assuming I am missing a call or may have to implement some jquery. I'm wondering why my grid footer information drops down to the next line instead of becoming hidden like in the demo.

Thanks.
Dimiter Madjarov
Telerik team
 answered on 04 Apr 2016
1 answer
149 views
Strange behavior for Buttons in a Window


I am having a problem that I am not really sure if it is being caused by something in my KendoUI Windows, my KendoUI Buttons, my JavaScript, or my MVC razor code, but for starters, I am going to post this in both the Button and Window Forums, so please bear with me.

First, the setup:

I have an MVC app, which has a main view, with several PartialViews on it.

2 of the PartialViews have Kendo buttons where each button opens a different Kendo window; 1 of the PartialViews ('View A') has 2 buttons and the other PartialViews ('View B') has 1 button.

Each of the windows has 3 buttons on it; 'Save', 'Clear', and 'Close'. The code for the buttons and the JavaScript called by them is identical, except, of course, for the object and function names.

Now, my problems:

On 1 of the windows from 'View A' and the window from 'View B', all 3 of the buttons do exactly what they are supposed to do; Save the data, Clear the window, or Close the window.

The second window from 'View A', even though the code is all the same as the others, is exhibiting really strange behavior.

First time window is opened - the buttons all look like regular Kendo buttons (Buttons_Before.jpg), but NONE of the buttons do anything at all.

Second time window is opened - the buttons all look like regular Kendo buttons (Buttons_Before.jpg), and the 'Save' and 'Clear' buttons work just fine, BUT the 'Close' button fires the JavaScript twice.

Any time after the second time the window is opened - the buttons no longer look like Kendo buttons (Buttons_After.jpg) AND they all do nothing at all, again.

I have tried to use the debugger, but none of the window code shows up there, so I went old school and put in alerts, but they are just telling me the function either fired or didn’t, and most of the time the function doesn’t fire.

If anyone has any suggestions, I will really appreciate it. None of the other developers around here have been able to help.

TIA,
Bob Mathis
Dimo
Telerik team
 answered on 04 Apr 2016
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
MultiColumnComboBox
Dialog
DropDownTree
Checkbox
Slider
Switch
Notification
Accessibility
ListView (Mobile)
Pager
ColorPicker
DateRangePicker
Wizard
Security
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
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?