Telerik Forums
UI for ASP.NET MVC Forum
8 answers
1.8K+ views
     So, in my grid I need the Delete column button to be moved too the Toolbar area where my "Add New record", "Save Changes", and "Cancel Changes" buttons are as well as add check boxes to the grid so we can delete multiple records at once. Can I get any leads to do this please? 
Viktor Tachev
Telerik team
 answered on 17 Mar 2021
1 answer
412 views

Several of the examples use a getFileInfo(e) routine to pull out the file list in the upload control.  This works well in events like onSelect().

Is it possible to retrieve the filename or list of files in the client side onComplete(e) event?

Ivan Danchev
Telerik team
 answered on 16 Mar 2021
3 answers
169 views

I am attempting to add a RadialGuage to a TileLayout - without many options other than the value, this works just fine, however when adding ranges for color bands, the rendering fails and I get a javascript error in the browser console.

I'm not sure if this has something to do with having to use ToClientTemplate() or not, however I'm stumped and have been unable to workaround this so far:

<script id="radial" type="text/x-kendo-template">
<div id="gauge-container">
    @(Html.Kendo().RadialGauge()
    .Name("gauge")
    .Pointer(pointer => pointer.Value((int)Model.DialValue))
    .Scale(scale => scale
        .MinorUnit(5)
        .StartAngle(-30)
        .EndAngle(210)
        .Max(125)
        .Labels(labels => labels
                .Position(GaugeRadialScaleLabelsPosition.Inside)
                .Font("20px Arial")
            )
           .Ranges(ranges =>
            {
                ranges.Add().From(0).To(75).Color("#f44004");
                ranges.Add().From(75).To(100).Color("#a2dd21");
                ranges.Add().From(100).To(125).Color("#2cb235");
            })
    ).ToClientTemplate()
    )
    <span class="widgetlabel">Overall Efficiency<br />@Model.DialValue%</span>
</div>
</script>
Tsvetomir
Telerik team
 answered on 16 Mar 2021
5 answers
2.0K+ views

Hi,

In my clientTemplate I try to do the following:

"<div style=\"display:#if(MimeType == 'application/pdf') {#block#} else {#none#}# \">" +

But when I compare to string it keept giving me an error
"Error: Invalid template:'"

and I treid a lot if different ways to do this.

If I compare to a boolean or integer it goes ok, but for some reason I can't get string compare to work.

Can someone help me out?

thank you.

 

 

 

Muhammad
Top achievements
Rank 1
 answered on 16 Mar 2021
5 answers
375 views

Hello all,

i have been struggling for several days with the export PDF function in MVC Scheduler. When i click the export button i receive a 404 not found in my console. I have already try changing the bundle config, i have moved my files to differents folders, i have included them in my index.cshtml, everything. But i still receive this message, even if my files are on the url that is shown in my console, i really don't know how to make it work. I give you my project folder structure to see if there is something wrong with it. I'm trying it in my development pc.

I hope you can help me, i don't know how to tell my boss that i have spent this amount of hours with this export.

Thank you very much.

Jose Francisco
Top achievements
Rank 1
 answered on 15 Mar 2021
2 answers
901 views

thia my index.cshtml
@(Html.Kendo().Grid<empdepkendo.Models.Employee>
    ()
    .Name("persons")
    .DataSource(dataSource => dataSource
    .Ajax()
    .Model(model => model.Id(m => m.ID))
    .Read(read => read.Action("GetAllEmployees", "Employees"))
    .Update(up => up.Action("UpdateEmployee", "Employees"))
    )

    .Columns(columns =>
    {
        columns.Bound(c => c.ID).Width(200);
        columns.Bound(c => c.FirstName);
        columns.Bound(c => c.LastName);
         columns.Command( cmd => cmd.Edit());

    })

    .Pageable()
    .Sortable()
     .Editable(ed => ed.Mode(GridEditMode.PopUp).TemplateName("Person"))
    )

/

this EditorTemplat/Person.cshtml

@model empdepkendo.Models.Employee

@(Html.Kendo().Grid<empdepkendo.Models.Employee>
    ()
    .Name("EmpGrid")

    .Columns(columns =>
    {
        columns.Bound(c => c.ID).Width(200);
        columns.Bound(c => c.FirstName);
        columns.Bound(c => c.LastName);
        columns.Command(cmd => cmd.Edit()
                   );
    })
    .DataSource(dataSource => dataSource
    .Ajax()
    .Model(model => model.Id(m => m.ID))

    .Read(read => read.Action("Editer", "Employees", new { ID  }))      ///i want to pass the id here
    .Update(update=>update.Action("UpdateEmployee","Employees"))
    )
    )

 

umamaheshwari
Top achievements
Rank 1
 answered on 15 Mar 2021
1 answer
106 views
Cpublic class TestGrid {
    public string col {get;set;}
    public string colFirst {get;set;}
    public List<Temp> temps {get;set;}
} public class Temp {
    public string Id {get;set;}
    public bool IsIt {get;set;}
    public bool DoesNeeded {get;set;}
}

 

How to make table with this class? 

I need like 

col, colFirst, temps1, temps2, temp3 etc

col, colFirst, temps1, temps2, temp3 etc

col, colFirst, temps1, temps2, temp3 etc

 

I need to filter it and create new objects. 

Patrick | Technical Support Engineer, Senior
Telerik team
 answered on 12 Mar 2021
1 answer
547 views

I have a use case in which I have the user uploading a file to a memory stream via Kendo Uploader. From there, information is extracted from the file and recorded in the database. 

What I'd like to be able to do is enable the user to use something like the FileManager to navigate to a folder either on their local hard drive or a UNC path to a network share and select each of the files to be processed. I would like to have each of the files in turn uploaded and processed as described in the first paragraph. I know I can accomplish that with the Uploader. However, what I'd also like to do subsequently is after the file is processed, move the process file from the local drive folder or network share to a folder within the source folder as a way of letting the user know the file has been processed and should not be selected again.

Can I 1) act on selected local/client-side files, 2) move client-side files to a location w/in the client-side directory? If so, can you provide an example or link to documentation of how to do this?

Patrick

Ivan Danchev
Telerik team
 answered on 12 Mar 2021
1 answer
126 views

Hi Team,

We have observed that validation messages are firing in only Submit(Add Button) click event in 2016 kendo Version.

But in latest 2020 Kendo version, validation messages are firing in mouse click events and Tab events.

 

Kindly help on this to trigger only Button click event.

 

 

Ivan Danchev
Telerik team
 answered on 11 Mar 2021
12 answers
4.9K+ views
Hi,
I set a textbox value from another textbox by jquery like this:
$('input[id="Name"]').live('change keyup', function () {
   var urlSegment = $('input[id="UrlSegment"]');
   urlSegment.val("Test");
});
I can see the value "Test" in the second textbox but when clicking on save, the posted value is empty.
I think the problem lies along with ajax cause when changing to server binding the value is posted.

The form is generated in a popup by the grid.

How do I solve this?

Regards,
Mattias
Tsvetomir
Telerik team
 answered on 11 Mar 2021
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
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
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?