Telerik Forums
Kendo UI for jQuery Forum
0 answers
120 views
hi~
I ask one more question. ^^

If we use labels' option rotation, we show label various way.

But I want to show label text like next.

ex) abcdef  -> a
                       b
                       c
                       d
                       e
                       f

How do i do? Please~
Min
Top achievements
Rank 1
 asked on 20 Jan 2012
8 answers
260 views
Hi,

I found out that the grid is not sorted any more when you scroll the grid up and down, if the virtualization is on. Any idea how to resolve this issue? Thanks in advance.

Please reference the link http://jsfiddle.net/BkCTL/3/ for example.

Best,
Mo
Rosen
Telerik team
 answered on 20 Jan 2012
3 answers
2.0K+ views
I'm stuck and need some help to:
  • move the expand/collapse arrow from the right to the left of the bar
  • remove all the borders from the panelbar, including child items and their items if any
  • override the heading of the panelbar items
  • override child items text colour/font/size

I've used the theme designer to do what I want but this affects all controls, not just the panelbar...

Dimo
Telerik team
 answered on 20 Jan 2012
3 answers
190 views
Hi I'm using the kendo grid control, i can get the columns to display and if i enter the data using the following method :

  $(document).ready(function(){
      $
("#grid").kendoGrid({
          columns
:[
             
{
                  field
: "FirstName",
                  title
: "First Name"
             
},
             
{
                  field
: "LastName",
                  title
: "Last Name"
         
}],
          dataSource
: {
              data
: [
                 
{
                     
FirstName: "Joe",
                     
LastName: "Smith"
                 
},
                 
{
                     
FirstName: "Jane",
                     
LastName: "Smith"
             
}]
         
}
     
});
 
});


The data will display too, however i am trying to populate the grid from an array and thus am using this method:

 $("#grid").kendoGrid({
     data
: people
 
});

My data however will not appear i just get the column headings, please find my code below:

var Container = document.getElementById("divReportContainer");
    Container.innerHTML = "";
    OutputText += "<table id=\"grid\">";     
    OutputText += "<thead>";
    OutputText += "<th data-field=\"strObjectDescription\">Object Description</th>";
    OutputText += "<th data-field=\"dblPercentageLength\">% of Total Actual Length</th>";
    OutputText += "<th data-field=\"dblActualLength\">Total Actual Length(ft)</th>";
    OutputText += "<th data-field=\"intPlanogramsCount\">Count of Planograms</th>";
    OutputText += "</thead>";
    OutputText += "</table>"
    Container.innerHTML = OutputText;

  $("#grid").kendoGrid();
        var MyArray = [{ strObjectDescription: "Test", dblPercentageLength: "1", dblActualLength: "21", intPlanogramsCount: "3"}];
      


        $("#grid").kendoGrid({
            data: MyArray
        });

please could someone advise where i am going wrong???
Naveen
Top achievements
Rank 1
 answered on 20 Jan 2012
4 answers
595 views
I have 3 columns returning with my data source that are Boolean values (True/False). I couldn't figure out how to designate them as a data type of Boolean to actually evaluate them, so I'm bringing them back as strings and evaluation them as == "True" or "False".

Is it possible to return them to the grid control as actual Booleans and evaluate them as such?

dataSource: {
    data:
    [
        @foreach (var report in Model.Reports)
        {
            <text>{Id: @report.Id, ReportId: "@report.ReportId", ReportSample: "@report.ReportSample", ReportLegend: "@report.ReportLegend", ReportFaq: "@report.ReportFaq", ReportName: "@report.ReportName"}, </text>
        }
    ],
    schema: {
        model: {
            id: "Id",
            fields: {
                Id: { type: "number" },
                ReportId: { type: "string" },
                ReportSample: { type: "string" },
                ReportLegend: { type: "string" },
                ReportFaq: { type: "string" },
                ReportName: { type: "string" }
            }
        }
    }
}

I currently have quotes around the Boolean values being returned:
"@report.ReportSample", "@report.ReportLegend", "@report.ReportFaq"
removing the quotes causes the grid to not display

Thanks for the assistance
Naveen
Top achievements
Rank 1
 answered on 20 Jan 2012
3 answers
553 views
Hello,

I have created a tab control. I'm trying to figure out how to select a tab from JavaScript. Currently, I'm trying the following and its not working.

<div id="myTabs">
  <ul>
    <li class="k-state-active">Tab 1</li>
    <li>Tab 2</li>
    <li>Tab 3</li>
  </ul>
 
  <div id="tab1">tab 1 content</div>
  <div id="tab2">tab 2 content</div>
  <div id="tab3"><input type="button" onclick="selectMyTab();" value="button" /></div>
</div>
 
 
<script type="text/javascript">
    $().ready(function () {
        $("#myTabs").kendoTabStrip({
            animation: { open: { effects: ""} }
        });
   });
 
  function selectMyTab() {
    $("#myTabs").kendoTabStrip().select("#tab1");
  }
</script>

What am I doing wrong?
Damon
Top achievements
Rank 1
 answered on 19 Jan 2012
4 answers
177 views
I've got an issue on an internal application.  I've bound a grid and a chart to a dataSource, and serverPaging works fine on it. When I apply a filter to the dataSource, the grid and chart both update to reflect the new data. The grid, however, loses the ability to page - only "1" is displayed.

Is this a bug, or am I implementing the filtering incorrectly?
Lyndsy Simon
Top achievements
Rank 2
 answered on 19 Jan 2012
1 answer
130 views
Hi guys,

I'm using Kendo UI - Grid on existing table.
However since I Kendo -wrap it  I lose all my attributes.
So I'm adding them dynamically using dataBound: property.
But since I'm also declaring it as sortable: , I'm losing them again when a sorting is done.
This is bad when it comes to bind data to an element and get it in the new order, because this data is lost.

Is there a way to set dafault map of attributes of a table and keep them no matter the changes?
Dimo
Telerik team
 answered on 19 Jan 2012
0 answers
162 views
I have created my web service method as

       [WebMethod(Description = "Returns the Enrolled members.")]
       [ScriptMethod(ResponseFormat = ResponseFormat.Json)]
     
        public string LoadData()
        {
            HealthmanagementDataContext db = new HealthmanagementDataContext();
            var linq = from s in db.Edmund_Reporting_Counter()
                       select s;
            string jsonStr = JsonConvert.SerializeObject(linq);


            return jsonStr;
        }
The problem is when i try to get the result from the web service on client side as
 $("#chart").kendoChart({
                        theme: $(document).data("kendoSkin") || "default",

                        dataSource: {
                            transport: {
                                read: {

                                    url: "http://localhost:2316/Service1.asmx/LoadData",   // the problem
                                    dataType: "json"
                     
                                }
                            }
                          
                        },
I can't get back the data coming from the web service.
Thanks,
Edmund
Top achievements
Rank 1
 asked on 19 Jan 2012
0 answers
156 views
Hi ,

What is 'command' in the columns field? Is the "destroy" only command available?

I looked at example  here http://jsfiddle.net/rusev/vHTj6/ . It explained how to change text of command button.

Is there any way I can call my own function on command?

Thank you.

-Edit : Found some explanation in source. And there is no direct way to call a custom function from command.
Amol
Top achievements
Rank 1
 asked on 19 Jan 2012
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
Drag and Drop
Application
Map
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
DropDownTree
ListBox
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
LLM Kit
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?