Telerik Forums
UI for ASP.NET MVC Forum
7 answers
2.9K+ views

Hello,

I tried to conditional set Grid column Editable status at run time as below code but caused page error. Could anyone give me advice how to do it?  Thanks in advance.

 

      .Model(model =>

              {

                  model.Id(p => p.Id);

                  model.Field(p => p.JobTitle).Editable("isEditable");  <---

                  model.Field(p => p.FirstName).Editable(true);

                  model.Field(p => p.LastName).Editable(true);

              })

 

<script>

    function isEditable(dataItem) {

        return dataItem.Id !=3;

    }

</script>

Tsvetomir
Telerik team
 answered on 30 Sep 2020
2 answers
2.4K+ views
Hi, I just installed new version of Progress ASP NET MVC library, the installer ended without errors and updated my VS 2019 correctly, but now I don't have a telerik menu in VS UI and if I try to create a new Telerik project from: Extensions-> Telerik->Telerik UI ASP.NET MVC->Create new Telerik project it just open normal project template list without any Telerik template inside (see attach)
I tried to uninstall and reintall Telerik MVC Package, also reinstall just the VS extension but nothing changed
Vesko
Telerik team
 answered on 29 Sep 2020
12 answers
2.1K+ views

I'm not sure if this only happens in the Grid, but I have been consistently getting a 404 error upon getting http://localhost/Content/kendo/2015.2.902/images/kendoui.woff?v=1.1.  Any idea what might be happening?

Thanks.

Laurie

Misho
Telerik team
 answered on 29 Sep 2020
3 answers
198 views

Hello all, I am using telerik MVC grid in my application, i have problem with the loading indicator in chrome browser but is shown in firefox(laptop with resolution 1680*1050), but the loading image is shown in both chrome and fiefox browsers in desktop with resolution 1920*1080. What could be the problem? has anyone has encountered this problem?

 

 

Geetha
Top achievements
Rank 1
Veteran
 answered on 29 Sep 2020
8 answers
334 views

Hello,

Scheduler event color doesn't show with datasource autobind set to false

Datasource of the scheduler is being read after dropdownlist is loaded  ...

        var scheduler = $("#scheduler").data("kendoScheduler");
        scheduler.dataSource.read();

 

Once the editor was open and closed, the color of the events will be shown, see attachment.

 

Neli
Telerik team
 answered on 29 Sep 2020
1 answer
150 views

We have a problem that after implementing the localization as described in article https://docs.telerik.com/aspnet-mvc/globalization/overview the text "items per page" is only localized after hitting F5 once. Initially it is always displayed in English.

I then created a vanilla Telerik MVC project incl. the grid, from the the default Telerik templates. When I activate paging there, the text is automatically correctly localized.

What I am wondering about ist, that I don't see any localized JS files in that project. Can you tell me how your template project applies the localization? It seems to differ from the mentioned article in this regard.

 

Regards

Kai

Alex Hajigeorgieva
Telerik team
 answered on 25 Sep 2020
1 answer
197 views

Hello,

I have problem in my timelineWeekview, that if too many Events are shown, the Columns will be shorter than the Scheduler (EventRow.png).

so I have this class in my css file :

#scheduler .k-scheduler-timelineWeekview tr:nth-child(2) td:nth-child(2) .k-scheduler-content .k-scheduler-table tbody tr{
    height:100vh !important;
}

 

what i need, is doing this in jquery and every time the user adds an Event (scheduler changes its Height !), it should change the height of this row too.

so i tried this :

$("#scheduler .k-scheduler-timelineWeekview tr:nth-child(2) td:nth-child(2) .k-scheduler-content .k-scheduler-table tbody tr").css("height","widget.height");

 

so i thought that the problem is from the css widget height, that I'm not being able to get the new height, so i tried too many other functions (hide(), remove(), attr(), . . . . . .), but the problem is that i can't select this classes.

 

any help will be great 

thanks in advance

Blackout

Aleksandar
Telerik team
 answered on 25 Sep 2020
1 answer
115 views

Hello,

I want to be able to scroll only in the scheduler and not in the whole WebPage, so stopping the User from scrolling in the page is an easy Part to do, but i couldn't find a solution for the scrollbar inside the View ! 

In the First one I see the scrollbar and this is because i have the dayView and not the TimeLineView ! (scrollbarInDayView_LI.jpg)

In the Second one there is no scrollBar because it's a TimeLineWeek View! (TimeLineWeekView_scrollbar_LI.jpg)

 

Thanks in advance

Blackout

K.Ramadan
Top achievements
Rank 2
Veteran
 answered on 22 Sep 2020
1 answer
334 views

Hello,

I tried to set Grid column defaultvalue at run time as below code. but "Jenny" does not display in "FirstName" column when I add new record. Could anyone give me advice how to do it?  Thanks in advance.

in .cshtml file:
 .Edit("onEdit");

In javascript:

   function onEdit(e) {
        if (e.model.isNew()) {
          
            e.model.set("FirstName", "Jenny");
         
        }
   }

Georgi
Telerik team
 answered on 22 Sep 2020
8 answers
627 views

Hello,

 We have a problem with a NumericTextBox within a Grid.
We would like to automatically select the text when the control NumericTextBox take focus (or only when the input value is 0).

This is defined in a NumericTextBox EditorTemplate as follows in the attached word file. I had to attach a file because of losing text formats while copy/pasting in your rich text editor in this forum (with IE10+Office2013+Win8):

Do you have an idea to make it because we are requested to do it for an intensively used and critical application ?

Thx

Mathieu P
.Net Developper
DEVOTEAM Application Practice (Luxembourg)

Anton Mironov
Telerik team
 answered on 21 Sep 2020
Narrow your results
Selected tags
Tags
Grid
General Discussions
Scheduler
DropDownList
Chart
Editor
TreeView
DatePicker
Upload
ComboBox
MultiSelect
Window
ListView
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
Licensing
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
AICodingAssistant
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
+? 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?