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

I am new to Kendo Grid I am gring to show data from a API using kendo and then add an addtional column for Quanity that would be an input field.

The idea is a list of items that a person can add quaity to and then click add to cart and another script runs.The script would add the items to a separate area.

I believe I have the button working to add items but I am having difficulty with adding the input column as it is not bound to the data source.

Is this possible?  I have looked at using Row Templates but they seem to bond back to the data source.  Can some one help provide some idea?

Georgi Denchev
Telerik team
 answered on 18 Mar 2021
2 answers
284 views

Hi everybody,

I am continuing my diagram development and facing the following issue.

I need to have a Yes No check on the component (as per the drawing), I would like to know if it is doable and if it can be linked to the component data.

thanks for the support

Ray

 

Tsvetomir
Telerik team
 answered on 17 Mar 2021
3 answers
852 views

Hello, I would like to localize a kendo grid so that all messages and formats are using a specific language (german in my case).

By default, the grid uses english language.

I tried to include the language script and kendo.culture in the view.

<script src="@Url.Content("~/lib/kendo-ui/js/cultures/kendo.culture.de-DE.min.js")"></script>

kendo.culture('de-DE');

This causes two problems. The culture is now changed globally, whereas I would only like to localize a specific control.

Secondly, if I edit a cell in the grid, it does not display the german format, but uses english format.

Neli
Telerik team
 answered on 17 Mar 2021
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
423 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
173 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.1K+ 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
386 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
905 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
109 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
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
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
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?