Telerik Forums
UI for ASP.NET MVC Forum
2 answers
191 views

I have an MVC application running on the C: drive of my web server.  I need to access files on the same machine, but a different drive, located at D:\Files.

I can't find an example of how this is accomplished.  The FileManager demo uses the application content folder for file storage, so that is not much help in this instance.  I've searched this forum, google and SO but I can't find a working example of how this is accomplished.  Most of the answers I've found simply point back to the FileManger demo without any explanation.

I would certainly appreciate any insight you can provide for this topic.

Thanks!

Jason
Top achievements
Rank 1
 answered on 23 Mar 2021
1 answer
136 views
Hi - we'd like to host one of our webapps in another app.  ie. in app1, we'd like to if possible have a menu option, window, whatever, that opens up access to our other internal webapp.  We're thinking something similar to iframes but are wondering if there is a browser control or something similar in Telerik's arsenal that we could use for this.  If we could pass in a particular URL to go to then even better.  Essentially, we want multiple webapps to appear as if they are the same app to the users.
Dimitar
Telerik team
 answered on 23 Mar 2021
1 answer
161 views

Hi,

I would like to know if there is a way to define custom shapes or to get predefined shapes as in Syncfusion (i.e. question or diamond) when using diagram with ASP.NET MVC

thanks

Ray

Georgi Denchev
Telerik team
 answered on 22 Mar 2021
11 answers
1.0K+ views

Is there a way I can accomplish the following using the MVC wrapper?

https://docs.telerik.com/kendo-ui/controls/data-management/grid/how-to/various/foreign-key-column-sorting-by-text

 

 

Tsvetomir
Telerik team
 answered on 19 Mar 2021
1 answer
1.5K+ views

Hi,

I am creating my own MVC Helper to wrap the Form component (serverside).

Inside that helper, I do something like this to create a custom html input element event:

StringBuilder sb = new StringBuilder();
string strSaveCall = $"SaveDetailItem(null, '{_formName}', '{_saveActionUrl}', null, null);"; // '/Home/Save'
string onkeyDownEvt = _htmlHelper.Raw("if (event.keyCode == 13) { " + strSaveCall + " }").ToHtmlString();

This renders the following html:

<input type="text" id="LastName" name="LastName" ...
onkeydown="if (event.keyCode == 13) { SaveDetailItem(null, &amp;#39;myForm&amp;#39;, &amp;#39;/Home/Save&amp;#39;, null, null); }" ....">

But I would like to see it rendered without the escaped characaters, like:
if (event.keyCode == 13) { SaveDetailItem(null, 'myForm', '/Home/Save', null, null); }"

How can I achieve this ?

Martin

 

Neli
Telerik team
 answered on 19 Mar 2021
1 answer
169 views

Hi,

I was wondering if there is a generic way to refresh the grid clientside, no matter if the grid uses paging or not.

This works:

    var grid = $('#' + gridId).data("kendoGrid");
    grid.dataSource.query({
        page: 1,
        pageSize: 10
    });

But that code is for paged grids only.

This code below also works, but doesnt set pageIndex to first page.
$('#ProductsGrid').data('kendoGrid').dataSource.read();

 

I was actually looking for something like a generic .refresh() function, which is also there, but doesnt work (anymore?).

 

Martin

 

Tsvetomir
Telerik team
 answered on 19 Mar 2021
1 answer
189 views

Hi,

How can I achieve a column formatted to show buth date as time part. Something like: dd-MM-yyy HH:mm:ss

I tried this format, but it showed only the date part.

And also: how can I achiveve this dependdant of the users' culture ? (available in my application in bith a serverside as a clientside variable).

I prefer to achieve this serverside.

Martin

 

Nikolay
Telerik team
 answered on 19 Mar 2021
1 answer
1.2K+ views

Hi,

I would like to format date columns and decimal number columns in the correct format, according to the logged in users' culture.
I found examples / code snippets of that, but those didnt work. Maybe because a clientside culture variable was needed but not present or so. or maybe because the formats were not supported I dont know.

Anyway, how can I achieve culture formatting in the grid ?

Preferably in a simple serverside way. And also preferably not on application level (by setting application culture), but controller level, or just custom formatting myself serverside, without setting the culture on application level.

For example, I live in the Netherlands, where the date format is: dd-MM-yyyy, and the decimal number format N2, or e.g.: 2.500.000,95

I have the culture of the logged in user both serverside as clientside in a variable.

 

Martin

 

Tsvetomir
Telerik team
 answered on 19 Mar 2021
21 answers
2.3K+ views
Hi,

in one of my usecases, I have a custom command.  When clicked it does some server side calculations and returns an updated data model for the row.  This is kind of like a row edit except the editing is not done by the user directly in the row but via some business logic on the server and the updated row is returned to the grid.

The grid as to overlay this data in to the row.

Is there a way to do this with a regular click action, but then grab the returned row viewmodel and through javascript update the row?

I see the client side click event, but it seems then I would have to wire the ajax call in there.  It would be nice to razor script the action that's invoked when the command is clicked, then intercept the returned data on the client side and amend the row data.

Could you maybe post a couple of lines of code for the best practice to do this?

Thanks
Eyup
Telerik team
 answered on 19 Mar 2021
2 answers
269 views

The input tag used by DropDownList is sometimes briefly visible on the page while JavaScript and CSS assets are loading.

If the input tag is meant to be hidden anyway, why aren't you writing the style attribute out with the HTML from the tag helper?

Instead it's being set by the associated scripts, which means the input is visible until the script has loaded and run.

Ivan Danchev
Telerik team
 answered on 18 Mar 2021
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?