Telerik Forums
UI for ASP.NET MVC Forum
1 answer
2.7K+ views

Hi Team,

Very Good!!

Currently i am using Kenod.mvc.dll for 2018 version . 

I am not able to restict decimal places in grid bound column , could you help on this . i have tried different format's  but didn't successed.

  c.Group(p => p.Title((string)ViewBag.Month01)
                                            .Columns(f => f.Bound(fo =>fo.month01FD).Format("0:n1}").                                               Width(colWidthFD).ClientFooterTemplate("#=getTotals('month01FD',false)# ").HtmlAttributes(new { @class = "telerik-edit-cell-                                                       inline" }))

                                            .Columns(f => f.Bound(fo => fo.month01AC).Format("{0:n1}").Width(colWithAC).ClientFooterTemplate("#=getTotals('month01AC',true)#").HtmlAttributes(new { @class = "telerik-edit-cell-inline" })));

 

 

Petar
Telerik team
 answered on 17 Aug 2020
3 answers
248 views
When the user clicks Cancel, the filename is removed from the list on the page, but I noticed the actual file fragment still exists on the server.  Is there any way to also delete the cancelled file from the file system?  I tried adding removeFileByUid() to the onCancel function, but I get the following JavaScript error:
Uncaught ReferenceError: upload is not defined
    at init.onCancel ((index):96)
    at init.trigger (kendo.all.js:164)
    at init._onFileAction (kendo.all.js:71201)
    at HTMLButtonElement.d (jquery.min.js:2)
    at HTMLDivElement.dispatch (jquery.min.js:3)
    at HTMLDivElement.r.handle (jquery.min.js:3)
onCancel    @   (index):96
trigger @   kendo.all.min.js:25
_onFileAction   @   kendo.all.js:72295
d   @   jquery.min.js:2
dispatch    @   jquery.min.js:3
r.handle    @   jquery.min.js:3

I assume this is because my removeFileByUid() call runs before the built-in "Cancel" code, which is also trying to remove the file that was already removed...?

I also tried making an Ajax call to my C# "remove" function directly, and I get the following error: "The process cannot access the file...because it is being used by another process."

For reference, here is my uploader:
@(Html.Kendo().Upload()
    .Name("files")
    .Async(a => a
        .Save("Chunk_Upload_Save", "Home")
        .Remove("Async_Remove", "Home")
        .AutoUpload(true)
        .ChunkSize(1024000) //bytes
    )
    .Events(events => events
        .Cancel("onCancel")
    )
)


Martin
Telerik team
 answered on 14 Aug 2020
2 answers
113 views

Hello,
I have a Button(s) in the Editor, when User clicks on that Button then a Telerik Window will be opened with a Terlerik Grid (in that Window)   (SEE attached Files)
So .. if i click on it, and choose a Row from the Grid .. and then save the selected option (SEE attached Files) and then try to save the Event (Without changing another Value) ..
So normally if i change the selected option from any DropDownList or any Item that directly Programmed in that way :

<div class="k-edit-label">
    <label for="Prioritaet">Priorität</label>
</div>
<div data-container-for="Prioritaet" class="k-edit-field">
 
    @(Html.Kendo().DropDownListFor(model => model.Prioritaet)
                         .DataTextField("Prioritaet")
                         .DataValueField("Prioritaet")
                         .OptionLabel("auswählen")
                         .Events(events => events.DataBound("onDataBound_DropDownListFor_Prioritaet_KOMM"))
                         .ValuePrimitive(true)
                         //.Value(ViewData["Prioritaet"].ToString())
                         .BindTo(new[]
                         {
                         new {Prioritaet = "1 = Niedrig", PrioritaetColor = "blue"},
                         new {Prioritaet = "2 = Normal",  PrioritaetColor = "green"},
                         new {Prioritaet = "3 = Hoch",    PrioritaetColor = "red"}
                         })
                    )
</div>

 

So this "data-container-for" will take care of it usually .... but not in my situation ! Because I'm selecting the Value from the Grid and Not From the Button, Exp. :

<div class="k-edit-label">
    <label for="Recid_person">Person</label>
</div>
<div data-container-for="Recid_person" class="k-edit-field">
    @(Html.Kendo().Button()
        .Name("PersonenSuche_BTN")
        .HtmlAttributes( new {type = "button"} )
        .Content("Personen Suchen"))
</div>

 

So i need that the Event Editor the Update() calls, so that i can Update only that Field (if Only one Field (Value) changed) ..

 

Steps To Follow :

1 - Editor_Buttons_Grid

2 - Editor_Buttons_Grid_Button

3 - Update_Speichern_X

 

 

Thank you in advance 

 

regards Karam

Aleksandar
Telerik team
 answered on 14 Aug 2020
6 answers
2.7K+ views

When profiling load time on my UI for ASP.NET MVC web app, the slowest is kendo.all.min.js and is causing significant delay in start-up time for my web app.

However, most of the Telerik demos and docs seem to reference kendo.all.min.js rather than the individual scripts for the individual controls.

When I attempt to use only kendo.menu.min.js and kendo.grid.min.js, I get various errors including the following: window.kendo is undefined, D is undefined, etc, etc, etc.....

So what additional scripts are required for use with kendo.menu.min.js?

What additional scripts are required for use with kendo.grid.min.js?

Telerik should provide meaningful documentation and demos for use with individual controls and individual scripts that do NOT require use of kendo.all.min.js!!!!

That file kendo.all.min.js has grown way too large and slow on download and startup of a web app if placed at the top of a web page.  However every time I have attempted to place it at bottom of web page, it does not seem to work properly.

So what about some better demos and docs that provide alternatives to use of kendo.all.min.js and that pay attention to speed and load time at startup???

Telerik could also consider improving speed and response time of its own support web site as demonstration example???  I often find myself waiting and waiting just to login to the site and/or access my products page looking for updates on my products.  Why so slow?

Ianko
Telerik team
 answered on 14 Aug 2020
1 answer
198 views

I have a column which is an enum ( -1 :Error, 0:False, 1:True)

The column in the grid displays this correctly, but the filter drop down is not sizing to display the options. ( see attachment)

My assumption is that it is adjusting the width to the values (-1,0,1) rather than the text?

Is there something I need to do with the model or a way I can manually adjust? 

The whole filter row sizing is crazy too big.. something else I need to sort out. ( I always struggle trying to compress the grid down to a compact size)

Cheers

Rob

Preslav
Telerik team
 answered on 13 Aug 2020
2 answers
1.1K+ views

Hey,

all kendo widgets I'm using are set to German and all of them are working properly except for the PDFViewer. I set the localization like that for all the widgets:

<script>
    $(function () {
        kendo.culture("de-DE");
    })
</script>

 

But only the PDFViewer is in English. How can I change that?

 

- Daniel

Daniel
Top achievements
Rank 3
Iron
Iron
Iron
 answered on 13 Aug 2020
1 answer
335 views

I have a MVC .NET application. In one of the page I have Kendo chart and dropdownlist .

the problem is when I <script src="~/Scripts/kendo/kendo.all.min.js"></script> charts will render but it throws error for dropdownlist

Uncaught TypeError: kendo.ui.DropDownList.requestData is not a function
    at Object.data ((index):730)
    at init.setup (kendo.all.js:5945)
    at init.read (kendo.all.js:5924)
    at kendo.all.js:7006
    at init._queueRequest (kendo.all.js:7221)
    at init.read (kendo.all.js:6999)
    at init.query (kendo.all.js:7422)
    at init._filterSource (kendo.all.js:29706)
    at init._filter (kendo.all.js:29807)
    at init.search (kendo.all.js:29842)
a

and if I remove <script src="~/Scripts/kendo/kendo.all.min.js"></script> dropdown works fine but charts will not work. throws error saying kendoChart is not a function

 

Please if anyone can Help me on this..

Nikolay
Telerik team
 answered on 13 Aug 2020
1 answer
606 views

I have a function that runs an SQL query, creates a DataTable from it, then creates a DataSourceResult based on the DataSourceRequest parameters.

I would like create a filteredDataTable with the results of filteredDataSourceResult.

 How can I do that? My code is below:

 

public ActionResult GrabFiltersApplytoQueryProcessFilteredResults([DataSourceRequest]DataSourceRequest request){

    String sqlConnectionString = db.Database.Connection.ConnectionString;

    SqlConnection sqlConnection = new SqlConnection(sqlConnectionString); sqlConnection.Open();

    string sqlCommandText = "";

    sqlCommandText = "execute sp_query";

    SqlCommand sqlCommand = new SqlCommand(sqlCommandText, sqlConnection); SqlDataAdapter dataAdapter = new SqlDataAdapter();

    dataAdapter.SelectCommand = sqlCommand;

    DataTable dataTable = new DataTable();

    dataAdapter.Fill(dataTable);

    sqlConnection.Close();

    DataSourceResult filteredDataSourceResult = dataTable.ToDataSourceResult(request);
    //copy columns
    DataTable filteredDataTable = dataTable.Clone();
    //how do I add filteredDataSourceResult.data into filteredDataTable?
    ...
    // other processing that requires a DataTable
    ...
}

Thanks,

Peter

Veselin Tsvetanov
Telerik team
 answered on 13 Aug 2020
3 answers
117 views

i have added js and example code but i have getting widh issue for all view and dont look good pdf.

please help me..

Rupali
Top achievements
Rank 1
 answered on 13 Aug 2020
2 answers
143 views

Hi Team,

I have a requirement that to load child data from database every time i clicked on expand icon but right now its only load data on first time of expand button but I need it on every click.

 

Harpreet
Top achievements
Rank 1
Veteran
 answered on 13 Aug 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?