Telerik Forums
Kendo UI for jQuery Forum
1 answer
377 views

I've looked around and seen many examples about how to edit records within a grid via an external form, and I've got that all up and running without incident.

but I also need to allow users to add new records to this grid as well.  can this be accomplished?  I don't want to use popup or inline editing when creating new records, and then have a different mechanism for editing existing records since this will be confusing.

 

using inline editing as an example, sort of works, in that, I can click create, a new row is created, I then click that row, and the external edit form will let me update some fields, but not all (https://dojo.telerik.com/eYUfiRuZ) and this solution is far from ideal, unless I can get the newly created row to be the default selection when the create button is selected.

 

Any thoughts?

 

Ivan Danchev
Telerik team
 answered on 20 Jul 2020
5 answers
818 views

In the examples, a virtual path is used to the ~/Content folder. How can I remove all traces of this? The override on ContentPath can't return a real path or an error is thrown. I don't want any virtual paths at all. Only actual paths.

The reason for this is that I don't feel the images should reside in the application folder inetpub/wwwroot/MYAPP. Because if I republish MYAPP I am worried about content being replaced. Additionally it requires security right changes for the IIS_USR to this folder.

What I really want is to use a real path, even to a separate drive like d:\myapp\images\screen\username\. MyApp is the name of the application, screen is the name of the page hosing this specific editor, and username is the session user.

Aleksandar
Telerik team
 answered on 20 Jul 2020
2 answers
124 views

Hello.

I have a Combobox widget that loads a ton of data using paging. Each element of the combobox has a DisplayName and an Id property.

The DisplayName propery is displayed on the input (UI) as an element is selected, the ID is the value that we use on our application's logic.

The problem starts when I select a value that it's not in the first page and the save the data. When we open the widget again, the ID value is displayed on the UI until I scroll to through the combobox elements and it loads the selected value.

I'm guessing that the id property it's being displayed there because it's the only property saved by us and the DisplayName is not loaded yet.

 

Is there any way to get the selected element using the saved Id ?

Neli
Telerik team
 answered on 20 Jul 2020
5 answers
722 views

I watched a demo on using Kendo UI for PDF export at http://www.telerik.com/campaigns/kendo-ui/devchat-jul18

The demo showed very good rendering of the page contents and then of a grid (using the toolbar item).  Alas, they did not show a combined export where a page contains many elements including a grid.

I am aware of the pageTemplate, but we need to export the page header, text, selections of drop lists, etc. along all rows in the grid.  We do this now with another tool that has very good fidelity but poor performance, especially on Azure where we were required to create a separate service for it (see attached).

We also use Telerik Reporting, so I know you have a great PDF engine.  My question is, is there a solution to rendering the page HTML and all of the grid?

Best,
Scott

Alex Hajigeorgieva
Telerik team
 answered on 20 Jul 2020
1 answer
237 views
Can we have cell values binded to dropdownList having remote DataSource?
Dimitar
Telerik team
 answered on 20 Jul 2020
1 answer
679 views

Looking for an example on how to modify the submit to

 

 

-POST to a REST service

-Not redirect the page

weak attempt.. 

        //add to existing dom

ui.content.find('#add').append('<form id="addFrm" method="POST" onsubmit="svc.addResource();return false;"></form>'.format(_host.service));
page.addForm = $("#addFrm").kendoForm({
            formData: {
                id: 0,
                modifiedBy: _user.email,
                projectName: page.project.name,
                role: '',
                resourceType: '',
                upn: '',
                userDisplayName: ''
            },
            items: [{     editor: 'DropDownList', field: 'role', label: 'Project Role',
                    validation: { required: true, message: "must specific resource role" },
                    hint: "Hint: Solution Architect, Project Manager, Technical Lead, etc..",                
                    editorOptions: { optionLabel: 'select project role...',dataSource: page.roles, dataTextField: 'role', dataValueField: 'role'}  },

                 { editor: 'DropDownList', field: 'resourceType', label: 'Resource Type',

                    validation: { required: true, message: "must specific type resource of resource" },

                    hint: "Hint: Vendors existing supplier, Contractors are independently hired, Any if TBD..",
                    editorOptions: {
                        optionLabel: 'select type of resource...',
                        dataSource: [{ text: 'Any' }, { text: 'Employee' }, { text: 'Vendor' }, { text: 'Contractor' }],
                        dataTextField: 'text',
                        dataValueField: 'text'
                    }
                }
            ]
        });

 

Dimitar
Telerik team
 answered on 20 Jul 2020
2 answers
68 views

Hi,

     I'm trying to display a year scale data, however categoryAxis with type "area" are not showing well and with type "line" won't showing anything.

     Is it possible to make navigator looks like a miniature of the StockChart above?

     Thanks!

Bob

 
Top achievements
Rank 1
Veteran
 answered on 20 Jul 2020
4 answers
1.5K+ views

Hello,

we ran into the issue when grid automatically convert datetime to local one, but in popup for explme we have a form with standard  DateTime picker which does not do that, as a result of it we have diff dates in grid & in the popup when we edit the grid row. 

are there any solution we can use to make it consistent? The preferable will be DateTime picker behavior when date is displayed as it is 

 

Thx Alex

 

 

Tsvetomir
Telerik team
 answered on 17 Jul 2020
2 answers
246 views

2020.2.617  version : bed dropdown!
https://dojo.telerik.com/@kjvjung/iQeDUjov


2020.1.114  version : good dropdown!
https://dojo.telerik.com/@kjvjung/exALONIb

 

How do I print it like the 2020.1.114 version?

Ivan Danchev
Telerik team
 answered on 17 Jul 2020
1 answer
120 views

I have this simple tabStrip

var tabStrip = $("#tabstrip").kendoTabStrip({
  dataSource: [
    { text: 'Tab1', url: '' },
    { text: 'Tab2', url: '' },
    { text: 'Tab3', url: '' },
    { text: 'Tab4', url: '' }
  ],
  dataTextField: 'text',
  dataUrlField: 'url'
}).data("kendoTabStrip");

 

Let's do two transformations on it

// Move Tab4 before Tab1
tabStrip.insertBefore(tabStrip.tabGroup.children().last(), tabStrip.tabGroup.children().first());
// Remove Tab3
tabStrip.remove("li:last");

 

If I look at the dataSource of my tabStrip, I don't see the above transformations.

// Expected: [{"text":"Tab4","url":""},{"text":"Tab1","url":""},{"text":"Tab2","url":""}]
// Result: [{"text":"Tab1","url":""},{"text":"Tab2","url":""},{"text":"Tab3","url":""},{"text":"Tab4","url":""}]   
kendo.stringify(tabStrip.dataSource.data());

 

How can I keep the dataSource in sync with what is actually rendered?

Here is a dojo snippet reproducing my issue.

Regards

Nencho
Telerik team
 answered on 17 Jul 2020
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?