Telerik Forums
Kendo UI for jQuery Forum
1 answer
147 views
I need to export an image of a RadialGauge. I would like to have a title and value included in the image. Is there anyway to do this?
Iliana Dyankova
Telerik team
 answered on 28 Apr 2014
2 answers
135 views
When I submit an update given my data source, it generates the following HTTP request. Note the TEIID_TEST(2M) part - it should just be 2, corresponding to a numeric ID of 2: 

PUT http://amr-dsiprod05:8080/odata/SDA/TEIID_TEST HTTP/1.1
Content-Type: application/json
Accept-Language: en-us
Authorization: Basic dXNlcjp1c2Vy
Accept: application/json, text/javascript, */*; q=0.01
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; MS-RTC LM 8)
Host: amr-dsiprod05:8080
Content-Length: 147
Connection: Keep-Alive
Pragma: no-cache
 
{"__metadata":{"uri":"http://amr-dsiprod05:8080/odata/SDA/TEIID_TEST(2M)","type":"SDA.TEIID_TEST"},"NAME":"test","FAVORITE_COLOR":"Blues","ID":"2"}

Here's my code:

<script type="text/javascript"> 
    jQuery.support.cors = true;
    var call = $.ajax({
        url: "http://amr-dsiprod05:8080/odata/SDA/TEIID_TEST",
        type: "GET",
        headers: {
            Authorization: "Basic dXNlcjp1c2Vy"
        },
        dataType: "json",
        success: function(data){
            var results = data.d.results;
            var len = results.length;
            var text = '<p>Successfully fetched ' + len + ' rows from the database</p>';
            $('#RESULT').html(text);
        },
        error: function(err){
            //alert(err.statusText);
            $('#RESULT').html('<p>Failed to fetch data due to ' + err.statusText);
        }
    });
    call.done(function (data, textStatus, jqXHR) {
        $('#example').dataTable({
            "bDestroy": true,
            "bProcessing": true,
            "aaData": data.d.results,
            "aoColumns": [
                { "mData": "NAME" },
                { "mData": "FAVORITE_COLOR" },
                { "mData": "ID" }
            ]
          });
    });
    call.fail(function (jqXHR,textStatus,errorThrown){
        alert("Error retrieving Tasks: " + jqXHR.responseText);
    });
</script>

Thoughts? Why does the M appear?
Kiril Nikolov
Telerik team
 answered on 28 Apr 2014
1 answer
132 views
Hello
my requirement is to put three controls in one column of Kendo grid()
1st two Controls are a dropdown list and 3rd control is numeric field with will have value like '0000.0000345'
here is my column code looks like

columns.Bound(o => o.MicGreaterLess).Title("MIC").Width(175).Encoded(false).ClientTemplate(
@Html.Kendo().DropDownList()
.Name("MICGreaterLess")
.DataTextField("Text")
.DataValueField("Value")
.Value("1")
.BindTo(
new List<SelectListItem>(){  new SelectListItem() { Text = "=", Value = "1" },
new SelectListItem() { Text = "&lt;", Value = "2" },
new SelectListItem() { Text = "&gt;", Value = "3" }
})
.HtmlAttributes(new { Style = "width:20px;" })
.ToClientTemplate()
.ToHtmlString()
+ " " +
@Html.TextBox("UOM", "uom", new { Style = "width:50px;" }).ToHtmlString()
+ " " +
@Html.TextBox("Value", "value", new { Style = "width:50px;" }).ToHtmlString()
).HtmlAttributes(new { Style = "vertical-align:top" });

after this all I see in the grid is three text boxs with the value 1, 'UOM', 'Value' (I need to see the drop down for 1st two controls)
and when the user selects I should be able to save these values in db.

please help - thanks in adv.
Alexander Popov
Telerik team
 answered on 28 Apr 2014
14 answers
178 views
Hello! I have this chart I am drawing with area chart up top, and a navigator at the bottom. Tho I have only daily data from 2010/01/01 to 2014/12/31, when using StockCharts, I get extra categoryAxis values from 2015... I cannot block this, is it a bug or a fixable problem?

Data;

[{
"date": "2010-01-01",
"revenue": 3370,
"costs": 1381,
"income": 1989
}, ....

{
"date": "2014-12-31",
"revenue": 4854,
"costs": 744,
"income": 4110
}]

I attached the resulting error;
Any help appreciated!!






T. Tsonev
Telerik team
 answered on 28 Apr 2014
7 answers
150 views
Hello,

I need to have a value Axis in stock chart, that needs to be static, which means have a fixed range and labels and never change with the navigation. I have control over min & max values of an value Axis but those are loosely defined, I need a strict fixed min max values set for valueAxis. Is this possible? If so what is the way to achieve this. Thanks =)
Hristo Germanov
Telerik team
 answered on 28 Apr 2014
1 answer
198 views
Anyone know of a reference application that uses Kendo UI and TypeScript?  

Richard
Top achievements
Rank 1
 answered on 26 Apr 2014
1 answer
144 views
Hello,

My testing code:  http://trykendoui.telerik.com/ObaV

It's happened When I created new task, and I want to edit it,
but I think the Popup window is not edit-window, 
because it doesn't have the 'Delete' button.

When I clicked the 'Cancel' button, 
the task I created would be removed!

It doesn't happen if I set dataSource with transport.
Does any configuration I need to set?

Thanks for your help,
Ming
Alexander Popov
Telerik team
 answered on 25 Apr 2014
1 answer
192 views
There is problem with Cascading ComboBox in edit mode. When using for inserting new record – it’s working fine, allowing to choose City and then district in the city selected. When opening record for edit, then Child-ComboBoxFor is empty, although it has value assigned.
It seems that during initialization, Parent-ComboBoxFor reinitializing Child-ComboBoxFor and value is cleared. How to keep value during Edit?
I found some articles that similar issue was fixed in 2012 version and we are using latest version of Kendo UI for MVC.
Code sample is provided below.

Code for Parent-ComboBoxFor:

@(Html.Kendo().ComboBoxFor(model => model.CityId)
    .HtmlAttributes(new { id = Html.IdFor(m => m.CityId).ToString() })
    .DataTextField("CityName")
    .DataValueField("CityId")
    .Filter(FilterType.Contains)
    .DataSource(source =>
    {
        source.Read(read =>
            {
                read.Action(MVC.Object.ActionNames.Cities_Read, MVC.Object.Name);
            });
    })
)

Code for Child-ComboBoxFor:

@(Html.Kendo().ComboBoxFor(model => model.CityAreaId)
    .HtmlAttributes(new { id = Html.IdFor(m => m.CityAreaId).ToString() })
    .Placeholder("Choose area...")
    .DataTextField("Name")
    .DataValueField("Id")
    .Filter(FilterType.Contains)
    .DataSource(source =>
    {
        source.Read(read =>
        {
            read.Action(MVC.Object.ActionNames.GetCascadeCityAreas, MVC.Object.Name).Data("filterCityAreas");
        })
        .ServerFiltering(true);
    })
    .Enable(false)
    .AutoBind(false)
    .CascadeFrom(Html.IdFor(m => m.CityId).ToString())
)<script>
    function filterCityAreas() {
        return {
            cityId: $("#@Html.IdFor(m => m.CityId)").val(),
            cityAreasFilter: $("#@Html.IdFor(m => m.CityAreaId)").data("kendoComboBox").input.val()
        };
    }
</script>
Vladimir Iliev
Telerik team
 answered on 25 Apr 2014
1 answer
355 views
i have a list view and it is getting populated with remote data, the kendoPage with the exact same datasource comes
back as no items to display.

HTML
<div class="layout-section">
        <div id="layoutView"></div>
        <div id="pager" class="k-pager-wrap" ></div>
</div>
 
<script type="text/x-kendo-template" id="template">
        <div class="product">
                <img src="#= Layoutfilepath #" alt="#= LayoutName # Layout" />
                <h3>#=LayoutName# Layout</h3>
                <p>#:kendo.toString("Select Layout")#</p>
         </div>
</script>

Scripting

var layouts2 = new kendo.data.DataSource({
                    transport: {
                        read: {
                            url: "Default.aspx/GetLayouts",
                            contentType: "application/json; charset=utf-8",
                            type: "POST",
                            dataType: "json"
                        }
                    },
                    schema: {
                        data: "d"
                    },
                    pageSize: 1
                });
                 
                $("#layoutView").kendoListView({
                    dataSource: layouts2,
                    template: kendo.template($("#template").html()),
                    selectable: "single"
                });
 
                $("#pager").kendoPager({
                    dataSource: layouts2
                })


Any thoughts
Alexander Valchev
Telerik team
 answered on 25 Apr 2014
1 answer
100 views
Hi,

Please find the demo here 

http://jsfiddle.net/8tzgc/136/

Create/Update Doesn't fire in above Demo. Can any one you suggest.

Here is the error we get locally.

Thanks,
Chatrapathi Chennam
Rosen
Telerik team
 answered on 25 Apr 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
Drag and Drop
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
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
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?