Telerik Forums
Kendo UI for jQuery Forum
1 answer
154 views
Problem: Ensure TreeView is constantly checking for updates?
--------------------------------------------------------------------------------------------
I need to keep data shown in treeview constantly in sync and up-to-date with the tables in my database.  How can i do this when my webpage never interacts directly with the database and only talks directly with a web service( which does the hands on communication with the actual database ).


Html/javascript page
                   |
                   |
ASP.NET MVC Web Service( WEB API )
                   |
                   |
SQL Server 2012 Database


Alexander Valchev
Telerik team
 answered on 30 May 2013
1 answer
1.0K+ views
Hi there,

I have occasion to style a few of my grids slightly differently to the defaults in my theme; what I really like to be able to do is specify, in the options for these grids, a custom CSS class to be applied to the generated k-grid element. 

Basically, by default, my tables should not have any kind of border applied.  However in several circumstances I do want to have a border applied around the whole grid.  I have tried applying a CSS class to the table to which I bind (using kendo-knockout) but of course this table becomes the content table and thus the border does not appear around the header.  Is there any way, save through JavaScript manipulation, that this can be achieved.  I was hoping something like the columns.attributes configuration property would be available for the whole grid, but this, sadly, does not seem to be the case.

Regards,
Chris Meek
Dimo
Telerik team
 answered on 30 May 2013
1 answer
317 views
Hi!

There is dashboard  page with several kendo window objects.
I'd like to store window size, position, minimize state and z-order

I was able to retrieve and save window postion and size
('#div_widget').kendoWindow ({
    actions: ["Refresh", "Maximize", "Minimize"],
    height : get_widget_setting (id_widget, "height", "300px"),
    width  : get_widget_setting (id_widget, "width", "600px"),
    minWidth: 600,
    minHeight: 260,
    title  : w.label,
    iframe : true,
    content: w.href,
    resize : function(e){
     var widget = e.sender.element.data("kendoWindow");
 
        var is_maximized = widget.options.isMaximized; // Is this a dirty hack? Are there another ways?
        if (is_maximized) {
            set_global_setting ("maximized_widget", id_widget);
            return;
        }
 
        var wrapper = widget.wrapper;
        save_widget_setting(id_widget, "height", wrapper.css("height"));
        save_widget_setting(id_widget, "width", wrapper.css("width"));
    },
    dragend : function (e) {
        var position = e.sender.element.data("kendoWindow").wrapper.offset();
        save_widget_setting(id_widget, "top", position.top + "px");
        save_widget_setting(id_widget, "left", position.left + "px");
    }
})

- How can I catch minimize button click? I want to save window maximize/minimize state.
- Is there a way to determine window z-order change event and window currrent z-order?
Dimo
Telerik team
 answered on 30 May 2013
3 answers
132 views
Hello All,

I have started exploring the different types of charts. Mainly, I am looking for Pie and Bar charts. I have attached the razor file. I would like to create the charts like images.

What are the legend settings available to create the chart in the same manner for Pie chart?

How can I fill the bar with the data level and the rest should be transparent?

Let me know what are the solutions available to create such charts.

Thanks!
Hristo Germanov
Telerik team
 answered on 30 May 2013
6 answers
140 views
Just downloaded 2012 Q3 Beta with so much hope for RTL support, but sadly it's not working the way it should. Is it be cause of beta, or something in my pc configuration?

I tested it with Chrome 22, Firefox 14 and IE 9 on my win 7 64bit. 
In all of theme layout was not rtl, and column header's weren't align with their body.
Dimo
Telerik team
 answered on 30 May 2013
3 answers
220 views
We are retrieving details for the selected row in a grid from a remote data source. The data retrieval works as expected. We have an Observable object from the data returned from this call. We would like this information to be bound to few textboxes and checkboxes on page using the Kendo.Bind() method, but for some reason it does not work. It does work if we bind it to a drop down list but not to a textbox or label for that matter.

I understand we are getting a table from the remote data (in JSON), but what we would like is to bind certain row and column to a textbox.

This is the example of data returned from remote service -
var data = [{ "FundingResourcePolicyDetailId": 1146060, "PatientFundingResourceId": 3594866, "IdNumber": "91234567y1", "IssueDate": "04/30/2012", "StartDate": "04/15/2012", "EndDate": "04/30/2012", "Group": "", "CoPay": 0.0, "Deductible": 0.0, "PercentageCoverage": 0, "Basic": 0, "Preventive": 0, "Major": 0, "IsVerified": false, "IsAssingmentAccepted": true, "CardFirstName": "MICKEY", "CardLastName": "TESTPATIENT", "CardMiddleInitials": "TICKLE PIN" }];

Here is a example of what we are trying to accomplish-

http://jsfiddle.net/qvKRk/402/

Thanks.
Sameer
Daniel
Telerik team
 answered on 30 May 2013
1 answer
196 views
Is it possible to set the border width and color for the pie chart to emboss the whole pie chart?

Please refer the attached pie chart image.
T. Tsonev
Telerik team
 answered on 30 May 2013
1 answer
359 views
hi, 
Onclick event (when the user clicks on a particular date) is not firing in DatePicker and DateTimePicker controls, this happens when the web page uses the following meta tag <meta name="apple-mobile-web-app-capable"content="yes"> (this meta tag is
used to run the web applications in full screen mode in safari browser
when accessed from iPAD),  Without the above mentioned Meta tag both the controls are working fine.
Alexander Valchev
Telerik team
 answered on 30 May 2013
3 answers
203 views
I have a GridView with a custom rowtemplate, looking like this:
@(Html.Kendo().Grid(Model.UnitTypes)
            .Name("Grid")
            .RowTemplate(@<tr>
                <td>
                    <div>@item.Name</div>
                </td>
                <td>
                    <div>@item.CurrentRun.Operation.WellContract.Location</div>
                </td>
                <td>
                    <div>@item.CurrentRun.Operation.WellContract.Name</div>
                </td>
                <td>
                    <div>@item.CurrentRun.Id</div>
                </td>
                <td>
                    <div>@item.CurrentRun.RunTask</div>
                </td>
                <td>
                    <div>@item.Status.StatusText</div>
                </td>
                <td>
                    <div>Lamp</div>
                </td>
                <td>
                    <div>
                        <div class="progress progress-warning">
                            <div class="bar" style="width: 50%">
                                <span class="offset6" style="color: #676767;">@Math.Round(item.CurrentRun.LatestWellLogEntry.Depth.Value, 2)</span>
                            </div>
                        </div>
                    </div>
                </td>
                <td>
                    <div>@Math.Round(item.CurrentRun.LatestWellLogEntry.Speed.Value, 2)</div>
                </td>
                <td>
                    <div>@Math.Round(item.CurrentRun.LatestWellLogEntry.Tension.Value, 2)</div>
                </td>
                <td>
                    <div>@item.CurrentRun.Name</div>
                </td>
                <td>
                    <form method="POST" action="~/UnitDetails/Index/@item.Id">
                        <input type="submit" class="k-button" value="Details" />
                    </form>
                </td>
            </tr>
            )
            .HtmlAttributes(new { style = "height:430px;" })
            .Columns(columns =>
                {
                    columns.Bound(p => p.Name).Title("Unit");
                    columns.Bound(p => p.CurrentRun.Operation.WellContract.Location).Title("Site");
                    columns.Bound(p => p.CurrentRun.Operation.WellContract.Name).Title("Well");
                    columns.Bound(p => p.CurrentRun.Id).Title("Run");
                    columns.Bound(p => p.CurrentRun.RunTask).Title("Task");
                    columns.Bound(p => p.CurrentRun.Operation.Description).Title("Operation");
                    columns.Bound(p => p.Status.StatusText).Title("Status");
                    columns.Bound(p => p.CurrentRun.LatestWellLogEntry.Depth).Title("Depth (m)");
                    columns.Bound(p => p.CurrentRun.LatestWellLogEntry.Speed).Title("Speed (m/min)");
                    columns.Bound(p => p.CurrentRun.LatestWellLogEntry.Tension).Title("Weight (kg)");
                    columns.Bound(p => p.CurrentRun.Name);
                    columns.Command(command => command.Custom("Edit Unit").Action("Index", "UnitDetails")).Width(85);
                })
            .DataSource(dataSource =>
                      dataSource.Server().Model(m => m.Id(p => p.Id)))
            .Pageable()
            .Scrollable(builder => builder.Height(250))
            .Sortable())
Whenever I open my page and look at the grid, it contains spacing both at the top and bottom of each row, causing the lines that separates the columns to be spaced apart vertically. (See attached image)

Am I doing the template thing wrong or am I missing something?
Dimo
Telerik team
 answered on 30 May 2013
1 answer
50 views
How to export chart that including many pictures,not only one picture?I can export one picture,How to export more than one chart?
T. Tsonev
Telerik team
 answered on 30 May 2013
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
Dialog
DateRangePicker
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Accessibility
Effects
PivotGridV2
ScrollView
Switch
BulletChart
Licensing
QRCode
ResponsivePanel
TextArea
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
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
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
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?