Telerik Forums
Kendo UI for jQuery Forum
6 answers
504 views
Hi,

I have the following code to show hyperlinks on my kendo grid, however it shows a link all the time, even when the value is null. Is there a way I can get the link to only show when the value (PDFString) is not null?

columns.Template(@<text>
                                                   @Html.ActionLink("View", "PayrollHistory", "ViewPDF")  
                                                 </text>)
                                                 .ClientTemplate("<a href='/PayrollHistory/ViewPDF/#= PDFString#' target='_blank'>View</a>")
                                                 .Title("View PDF");

Any suggestions welcome!
Web Support
Top achievements
Rank 1
 answered on 28 May 2014
2 answers
241 views
Hi,

I'm having some trouble with styling the tabstrip. First, I have a simple tabstrip, with 2 buttons. The code is like this:

        <div data-role="footer" id="footer">
            <div data-role="tabstrip" id="badges-tabs">
                <a href="#destaques" data-icon="favorites" data-badge="0">Destaques</a>
                <a href="#ofertas" data-role="button" data-icon="cart" data-badge="0">Ofertas</a>
            </div> 
        </div>

Without any custom CSS, my tabstrip looks like this (please note I'm using flatUI as layout):

<tabstrip1.jpg>

How can I make the tabstrip display the 2 buttons with equal width, and make them fit the tabstrip container ?

I have to manually set dimensions but this is not good for a responsive design.

So I set a background color for the tabstrip, and a background color for the active state property. Also, I set the color to white. My tabstrip looks like this:

<tabstrip2.jpg>

You can see the active state button is a bit outside the tabstrip, and they are aligned on the center, together.

If I change my smartphone to landscape mode, this is what happens:

<tabstrip3.jpg>


I have another problem with CSS on the back button. I copied the back button code from one of the examples on the website:

<a data-role="backbutton" data-align="left" data-icon="back">Voltar</a>

But its not showing the back arrow along with the text. How can I display the back arrow on the back button?

Thanks for the help!
Kamen Bundev
Telerik team
 answered on 28 May 2014
2 answers
355 views
Hi,

I'm trying to display hourly data on a line chart for multiple days.

Currently the CategoryAxis just displays the time (hour) which is what I want, How can i add a note on category axis with full date? (at each day 24:00 hour interval)

I saw some example in forum which add static notes on the category axis.

is there a way to add the note dynamically? (with Javascript/html code)

Thanks!
Raghu
Top achievements
Rank 1
 answered on 27 May 2014
8 answers
409 views
Hello,

I've got a grid where I'm trying to use locked columns.  One of those columns has a client template which is a Kendo Menu control.  It looks like the logic that calculates the row heights for the locking is considering the height of the fully expanded menu (in my case I have one item at the top level of the menu and 2 items in the level below that.)  This results in my grid rows being much taller than needed for the rest of the data.  If I remove the column with the menu control the height calculates properly based on the rest of the data in the grid cells.  Is there a way to exclude the menu - or at least the sub-level menu items - from the height calculations?  Thanks for your help!  I'm on the latest internal build 4.1.519.

Regards,
Brian
Brian Roth
Top achievements
Rank 1
 answered on 27 May 2014
1 answer
66 views
Hello,

I'm trying to recreate something similar to the stock demo. The problem I run into is that I do see the chart, but the navigator is not visible

I use the following simplified script (I allredy played with options)

$(function () {
 
    function createChart() {
 
        var id = $("#chart").data('id');
 
        $("#chart").kendoChart({
            theme: "metro",
            legend: {
                position: "bottom"
            },
            dataSource: {
                transport: {
                    read: "/api/details/" + id,
                    type: "odata"
                }
            },
            series: [{
                type: "line",
                field: "AvgResponseTijd"
            }],
            categoryAxis: {
                field: "Datum",
                type: "date",
                baseUnit: "hours",
                labels: {
                    rotation: -30
                }
            },
            navigator: {
                series: [{
                    type: "line",
                    field: "AvgResponseTijd"
                }],
            }
        });
    }
    $(document).ready(createChart);
    $("#example").bind("kendo:skinChange", createChart);
 
});

The json as the following pattern:
<TestResultaatPeriodiek>
<AvgResponseTijd>177.00</AvgResponseTijd>
<Datum>2014-05-22T15:10:00</Datum>
</TestResultaatPeriodiek>
<TestResultaatPeriodiek>
<AvgResponseTijd>99.00</AvgResponseTijd>
<Datum>2014-05-22T15:20:00</Datum>
</TestResultaatPeriodiek>
<TestResultaatPeriodiek>
<AvgResponseTijd>120.00</AvgResponseTijd>
<Datum>2014-05-22T15:30:00</Datum>
</TestResultaatPeriodiek>

Any help would be appreciated ;-)

-- jan willem


Iliana Dyankova
Telerik team
 answered on 27 May 2014
1 answer
412 views
Hi Telerik Team,

      Here I have got three tabs.
     I want to get tabindex while selecting each tab and based on this tabindex I have to bind a grid.How to get tabindex while selecting tab?

Tab is shown as an attached file.

<script>
function rtsTasksSelect(e) {
}
</script>

  @(Html.Kendo().TabStrip()
          .Name("rtsTasks")
           .Items(tabstrip =>
           {
               tabstrip.Add()
                   .Text("All")//To set Extra tab
                   .Selected(true)//To get default selection of this tab
                   .HtmlAttributes(new { Style = "Width:100%;" });
           })
          .BindTo(Model.ItemType.CreateTabStrip(),
                (item, navigationData) =>
                {               
                    item.ImageUrl = "../" + "../" + navigationData.ImageUrl;
                                                                   
                })
          .Events(events => events
              
              .Select("rtsTasksSelect")              
               )
         
            )
Dimo
Telerik team
 answered on 27 May 2014
2 answers
153 views
My web service returns the following values:

[
{
"TotalStores":777
,"Status1":642
,"Status2":45
,"Status3":90
}
]


How could I make a pie chart or donut chart for status?
Atanas Korchev
Telerik team
 answered on 27 May 2014
5 answers
209 views
Is there way or a sample code that can populate the data to grid from the upload. Here is the scenario.

I have a Kendo Upload and it is returning a Model. I want that model to populate the Grid after Save method of Kendo Upload. See the attached.

Thanks,
RLN

Dimiter Madjarov
Telerik team
 answered on 27 May 2014
6 answers
308 views
Thanks to the Kendo staff for getting me on track with my date handling (separate thread post).   I have run across some odd behavior in the grid.  I am now properly showing data in the grid using Javascript Date objects, which allows for proper sorting / filtering.     What I have found is that while I can filter by a date properly, if I use grouping function on a date column, it breaks out each date as it's own group  (see attached files for a FILTER snap and a GROUP snap on the same data).   

I also duplicated the behavior in this sample fiddle that has been floating round the forums (run it, then drag OrderDate column header up to the grouping bar):
 
http://jsfiddle.net/divotfixer/TTRbm/
harisa
Top achievements
Rank 1
 answered on 27 May 2014
3 answers
150 views
Hi
  I have some text with an ellipsis, I need a tooltip, I think the popover is possibly a good fit for that.

It seems that to get a popup you need some clickable element, can you attach a popup to some random Dom element?

e.g. a popover to the below without changing the styling

<span>Some text that's too lon.....</span>

If not can you use the Tooltip control on Mobile?

thanks
Kiril Nikolov
Telerik team
 answered on 27 May 2014
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
MultiColumnComboBox
Chat
DateRangePicker
Dialog
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Effects
Accessibility
PivotGridV2
ScrollView
BulletChart
Licensing
QRCode
ResponsivePanel
Switch
Wizard
CheckBoxGroup
TextArea
Barcode
Breadcrumb
Collapsible
Localization
MultiViewCalendar
Touch
RadioButton
Stepper
Card
ExpansionPanel
Rating
RadioGroup
Badge
Captcha
Heatmap
AppBar
Loader
Security
TaskBoard
Popover
DockManager
FloatingActionButton
CircularGauge
ColorGradient
ColorPalette
DropDownButton
TimeDurationPicker
ToggleButton
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
ContextMenu
DateTimePicker
RadialGauge
ArcGauge
AICodingAssistant
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
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
Bronze
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?