Telerik Forums
Kendo UI for jQuery Forum
6 answers
323 views
With the new Vertical type tabs, is there a way to change the default width/size from 35x31 to say, 32x32.

The tabs look odd then they are wider than taller, especially as I'm using a square image instead of text.

Also, please can we have vertical text... the side tabs are handy but they would make more sense if the text was at 90 degrees rather than flat as flat text would take up too much of the page, reducing the controls usefulness.
Nathan
Top achievements
Rank 2
 answered on 07 Aug 2015
1 answer
798 views

Hello,

I have the code to export to excel, and to even format the date cells, but when I try to format to include am/pm it is not working. I am using the same format text to display am/pm in the grid successfully with "tt" but it does not seem to apply to excel's cell. It displays, for example, "08/06/2015 21:33:02 tt" instead of "8/6/2015  9:33:02 PM" which is the desired result.

excelExport: function(e) {
                var sheet = e.workbook.sheets[0];
 
                for (var rowIndex = 1; rowIndex < sheet.rows.length; rowIndex++) {
                    var row = sheet.rows[rowIndex];
                    for (var cellIndex = 0; cellIndex < row.cells.length; cellIndex ++) {
                        row.cells[cellIndex].format = "MM/dd/yyyy hh:mm tt"
                    }
                }
            }

Roger
Top achievements
Rank 1
 answered on 07 Aug 2015
1 answer
241 views

Hi,

i am asking if it is technically possible to use server side paging, sorting together with grouping using the kendo grid extension methods. I successfully implemented a repository that is executing a DataSourceRequest on an queryable sequence.

private PagedListResult<T> BuildResult(SearchQuery<T> searchQuery, IQueryable<T> sequence)
{
    var resultCount = sequence.Count();
 
    // Filter
    sequence = (IQueryable<TEntity>)sequence.Where(this.FilterDescriptors);
      
    var result = (searchQuery.Take > 0)
                     ? (sequence.Skip(searchQuery.Skip).Take(searchQuery.Take).ToList())
                     : (sequence.ToList());
 
    var hasNext = (searchQuery.Skip > 0 || searchQuery.Take > 0) &&
                  (searchQuery.Skip + searchQuery.Take < resultCount);
 
    return new PagedListResult<T>
           {
               Entities = result,
               HasNext = hasNext,
               HasPrevious = (searchQuery.Skip > 0),
               Count = resultCount
           };
}

 I tried to ​add grouping as well, but i cannot find a way how to handle it. There is an extension method that looks pretty: 

public override IQueryable<TEntity> ApplyGroups(IQueryable<TEntity> sequence)
{
    if (this.GroupDescriptors.Any())
    {
        var queryable = sequence.GroupBy(this.GroupDescriptors);
        return (IQueryable<TEntity>)queryable; // fails
    }
  
    return sequence;
}

But i am not able to cast it to IQueryable again in order to apply further filters and paging. The returned object is of type "Kendo.Mvc.Infrastructure.AggregateFunctionsGroup" and thats why I keep getting an invalidcastexception.

"System.Data.Entity.Infrastructure.DbQuery`1[Kendo.Mvc.Infrastructure.AggregateFunctionsGroup]" cannot be converted to type "System.Linq.IQueryable`1[MyEntity]" 

The internal query is looking as expected. Is there a way to cast it or what i am doing wrong? If not, how do you have to use this extension method in this custom binding scenario that must return a PagedListResult?

Many thanks in advcance, 

Holger

 

 

Boyan Dimitrov
Telerik team
 answered on 07 Aug 2015
1 answer
110 views
Along the way I missed the deprecation of .data('kendoSplitter').trigger('resize').

 
I couldn't find any examples of calling trigger within the api docs at all anymore. This led me to the guides section which details calling .data('kendoSplitter').trigger('resize') manually. I did not miss it, it is not listed on the API docs. And sure enough, it behaves properly unlike the now deprecated trigger.

Dimo
Telerik team
 answered on 07 Aug 2015
10 answers
94 views

When using Kendo MVC NavBar with platform "ios7" in iPhone, when ever clicking on NavBar (left side where the drawer for exmaple), iPhone URL address bar will popup on top of the NavBar instead of above it.

You can also see example for this issue on your mobile demo website (demos.telerik.com/kendo-ui/m/index), just open link in horizontal view on iPhone 5 and try to click somewher on NavBar.

 

 

 

 

 

Nikolay Rusev
Telerik team
 answered on 07 Aug 2015
2 answers
131 views

Is it possible to draw a month view with more than one day in the same column instead of one column for each day? I'm trying to club together more than one day in the same slot/column.

For example: August, 2015 should draw ​15/16 columns, each containing 2 days together.

Vladimir Iliev
Telerik team
 answered on 07 Aug 2015
1 answer
1.5K+ views
Hello,

We are using the single local DataSource at many places so we want to clone the DataSource. Please suggest the best way to clone 
the dataSource.

Best Regards,
Nilesh Padbidri
Alexander Valchev
Telerik team
 answered on 07 Aug 2015
1 answer
191 views

Hi,

Is it possible to locate a Milsetone on top of a task (parent or child) bar?  My Gantt chart does not include any dependencies, and I was just hoping to display a diamond on top of a task bar on the particular date is it set to be reached.  If not, I was wondering what alternative options I might have to show the milestone.  Thanks.

Dimitar Terziev
Telerik team
 answered on 07 Aug 2015
1 answer
193 views

Hi,

 Is it possible to have a unique tooltip template for different types of tasks?  I have a field which tells me which type (of four possible options) a task is and I'd like to use that information in conditional statements to implement four different custom tooltip templates.  Thanks for your help.

Dimitar Terziev
Telerik team
 answered on 07 Aug 2015
5 answers
1.2K+ views

Hello,

I am wanting to persist the Grid settings (column re-ordering, sort order, etc), such that on subsequent page loads the grid settings are restored. The following JSBIN example http://jsbin.com/tonewefale/1/edit?js demonstrates my attempt to fetch and then restore the settings, however this does not seem to work as expected.

I am not sure, if I am missing on something obvious. Would be nice to have experts help me get a resolution to this problem.

Best Regards,
Nilesh Padbidri

Konstantin Dikov
Telerik team
 answered on 07 Aug 2015
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
Licensing
ScrollView
Switch
TextArea
BulletChart
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
TimePicker
FloatingActionButton
CircularGauge
ColorGradient
ColorPalette
DropDownButton
TimeDurationPicker
ToggleButton
BottomNavigation
Ripple
SkeletonContainer
Avatar
Circular ProgressBar
FlatColorPicker
SplitButton
Signature
Chip
ChipList
VS Code Extension
AIPrompt
PropertyGrid
Sankey
Chart Wizard
OTP Input
SpeechToTextButton
InlineAIPrompt
StockChart
ContextMenu
DateTimePicker
RadialGauge
ArcGauge
AICodingAssistant
SmartPasteButton
PromptBox
SegmentedControl
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?