Telerik Forums
Kendo UI for jQuery Forum
2 answers
660 views

I'm trying to configure this grid so that all the columns auto-expand enough to show all the data in every column.

Regardless of what I've tried, it seems that the table stays the same width with no scrolling, and calling autoFitColumn just *shrinks* that column to better accommodate the others (vs the way Format > Column > AutoFit Selection works in Excel.)

http://dojo.telerik.com/iRIqU

 

Can someone advise how to get the columns to auto-expand?

shiv
Top achievements
Rank 1
 answered on 17 Jan 2018
7 answers
114 views

In kendo spreadsheet, if you

1. select 2 un-adjacent cells, 

2. ctrl-x to cut, and selected cell contents are cleared

(in the console, error "Unsupported for multiple ranges" is thrown)

3. but when you paste with ctrl + v, the content is lost.

 

If you do the same thing for copy (ctrl + c), an dialog pop-up with message "That action cannot be performed on multiple selection". I think this should also happen for cut operation.

Veselin Tsvetanov
Telerik team
 answered on 17 Jan 2018
1 answer
210 views

Hi there,

I was wondering if it was possible to sort the grid view data with the treeview. 

I would want to load my data of say.... cars and display it in the treeview, but also sort everything in the treeview ex, by owner, by brand, etc. 

If this is possible, how would i go about handling the data loading. Do I need to make a new structure for the data or can I simply use a different datasource?

Thanks. 

Ivan Danchev
Telerik team
 answered on 17 Jan 2018
4 answers
2.8K+ views
I was hoping someone could help me out with how I can hide a grid if the datasource returns with no results.

I was doing this in my code behind before I switched to a Kendo grid, but am quite new to javascript, and can't seem to find any good info on how to do this.

Please let me know if you have any questions.

Thanks,

Scott
Manasa
Top achievements
Rank 1
 answered on 17 Jan 2018
4 answers
135 views

Hi.

I use Metro theme.

When hovering a combo box, an unnecessary green underline appears by location.

It is the first combo box of the following sample.

http://dojo.telerik.com/IkaMUs

(I confirmed it with chrome.)

Is there a way to fix this problem?

kako
Top achievements
Rank 1
 answered on 17 Jan 2018
2 answers
604 views

According to the Kendo UI template documentation, you can use either the #=Field# or #:Field# notation, with the #:Field# notation encoding the text. However, I cannot seem to get this to work.

I created a field in my model that just returned a string, "<b>Todd</b>". Then, I used the template like this:

<a href="/page.aspx?path=#=Field#"></a>

and also like this:

<a href="/page.aspx?path=#:Field#"></a>

In BOTH cases, the output was

<a href="/page.aspx?path=<b>Todd</b>"></a>

While I would expect that for the #=Field# notation, for the #:Field# notation, I was expecting:

<a href="/page.aspx?path=%3Cb%3ETodd%3C/b%3E"></a>

Any ideas on why this isn't working like I am expecting?

ExactBid
Top achievements
Rank 1
 answered on 16 Jan 2018
10 answers
2.4K+ views
I'm wondering if it is possible to put all rows into edit mode while doing batch editing. It obviously isn't built into the API, but maybe there is a way around this?

Specifically, I have a grid of 4 columns. Only 1 column is editable. That column happens to be a drop down list. I have been told that I need to display all of the records with that one column as editable drop downs. This makes sense in that it helps communicated to the user that this grid is batch editable. Otherwise it takes a little faith and exploration from the end user to understand that if they click in one of the cells they will be able to edit it.

I have tried providing a drop down list for both the 'template' and the 'editor' function. However, that caused some flickering and didn't seem to update the template after leaving edit mode.

Thoughts?
BOTTOLLIER
Top achievements
Rank 1
 answered on 16 Jan 2018
6 answers
427 views
I am trying to use the upload widget to add Outlook emails.  When dragging an email from Outlook nothing happens.  It does not error and does not upload the email.

I am only able to save the message then drag the saved file. Is there a way to upload directly by dragging from Outlook?
Brian
Top achievements
Rank 1
 answered on 16 Jan 2018
1 answer
1.2K+ views

I have multiple MultiSelect Instances:

@foreach (var group in Model.WellnessGroups)
                       {
                           <div class="hpanel hblue">
                               <div class="panel-heading hbuilt">
                                   @group.Name
                               </div>
                               <div data-groupId="@group.Id" class="panel-body" style="display: block;">
                                   <select multiple data-groupId="@group.Id" class="groupMultiSelect"></select>
                               </div>
                           </div>
                       }

 

Each MultiSelect instance is wrapped in a groupId.

I would like for each MultiSelect instance to reflect in it's placeholder/value the specific items that have been saved to the database under that id.

I have an ajax call to a controller that will save the selected values on each "select" event so that when I select an employee, the ajax call grabs the employeeId and groupId and saves it into the database:

$(".groupMultiSelect").kendoMultiSelect({
                placeholder: "Select Employees",
                dataTextField: "displayName",
                dataValueField: "objectId",
                dataSource: dataSource,
                autoBind: true,
                select: function(e) {
                    var employeeId = e.dataItem.objectId;
                    var wellnessGroupId = $(this).closest("div").prevObject[0].element[0].getAttribute('data-groupId');
                    wellnessGroupId = parseInt(wellnessGroupId);
                    $.ajax({
                        url: "@Url.Action("SaveEmployeeToGroup")",
                        cache: false,
                        data: {
                            employeeId: employeeId,
                            wellnessGroupId: wellnessGroupId
                        },
                        type: "Post",
                    }).done(function(res) {
                        toastr.success("Employee Saved to Wellness Group");
                    }).fail(function(err) {
                        toastr.error("There was a problem saving this entry.);
                    });
                },
                value: {
                    //TODO: bind values of each multiselect field to reflect data that has been saved.
                }
            });
        });     
Dimitar
Telerik team
 answered on 16 Jan 2018
3 answers
511 views

I'm using the Kendo Editor for Angular JS.
I want to set the default Formatting tool value to be Paragraph when the editor is loaded.
Is there a way to do that?

Other than that, in the thread https://www.telerik.com/forums/clean-the-paragraph-format it says that "The Paragraph format option is the default structural markup option", but when only a single-line text is entered with no formatting, the <p> tags are not added to it.
for example in http://dojo.telerik.com/aCUke , if the character 'a' is written in the editor and the focus is removed, the value is saved as only 'a' and not '<p>a</p>'.

Is this the editor's behavior by design? Or is it a bug?

Thanks,
Arik

Ivan Danchev
Telerik team
 answered on 16 Jan 2018
Narrow your results
Selected tags
Tags
Grid
General Discussions
Charts
Data Source
Scheduler
DropDownList
TreeView
MVVM
Editor
Window
DatePicker
Spreadsheet
Upload
ListView (Mobile)
ComboBox
TabStrip
MultiSelect
AutoComplete
ListView
Menu
Templates
Gantt
Validation
TreeList
Diagram
NumericTextBox
Splitter
PanelBar
Application
Map
Drag and Drop
ToolTip
Calendar
PivotGrid
ScrollView (Mobile)
Toolbar
TabStrip (Mobile)
Slider
Button (Mobile)
Filter
SPA
Drawing API
Drawer (Mobile)
Globalization
LinearGauge
Sortable
ModalView
Hierarchical Data Source
Button
FileManager
MaskedTextBox
View
Form
NavBar
Notification
Switch (Mobile)
SplitView
ListBox
DropDownTree
PDFViewer
Sparkline
ActionSheet
TileLayout
PopOver (Mobile)
TreeMap
ButtonGroup
ColorPicker
Pager
Styling
Chat
MultiColumnComboBox
Dialog
DateRangePicker
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Accessibility
Effects
PivotGridV2
ScrollView
Switch
TextArea
BulletChart
Licensing
QRCode
ResponsivePanel
Wizard
CheckBoxGroup
Localization
Barcode
Breadcrumb
Collapsible
MultiViewCalendar
Touch
RadioButton
Stepper
Card
ExpansionPanel
Rating
RadioGroup
Badge
Captcha
Heatmap
AppBar
Loader
Security
TaskBoard
Popover
DockManager
FloatingActionButton
CircularGauge
ColorGradient
ColorPalette
DropDownButton
TimeDurationPicker
ToggleButton
ContextMenu
TimePicker
BottomNavigation
Ripple
SkeletonContainer
Avatar
Circular ProgressBar
FlatColorPicker
SplitButton
Signature
Chip
ChipList
VS Code Extension
AIPrompt
PropertyGrid
Sankey
Chart Wizard
OTP Input
SpeechToTextButton
InlineAIPrompt
StockChart
DateTimePicker
RadialGauge
ArcGauge
AICodingAssistant
SegmentedControl
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?