Telerik Forums
Kendo UI for jQuery Forum
1 answer
91 views
Has there been any work done to resolve this issue:

http://www.telerik.com/forums/get-returns-undefined-when-using-serverpaging

To me, its unacceptable to say that these features are just "incompatible". Part of the reason we chose this product was to easily incorporate editable grids with virtual scrolling. Nowhere in the documentation did it mention that this could not be done.

Any updates/assistance would be greatly appreciated.

Thanks
Dimo
Telerik team
 answered on 17 Jul 2014
2 answers
741 views
Hello,

I'm new to Kendo ui grid and Juery.

Working on the Kendo ui grid with an Asp Page for a report (no MVC).

Managed to read the data(using json) but update seems  to be problem.

I can't figure a way to find the data send to server side. 

Technically, my web method in the aspx page is not triggered,transport update is not triggered as well.
Also. some tell me how to debug the kendo it'll be great. Stuck in this for the last two days

Jquery
 var dataSource = new kendo.data.DataSource({
              //autoSync: true,
              transport: {
//Working
                     read: {
                          url: "/Ajax/testAjax.aspx/GetInactiveBrokerData",           
                          type: "POST",
                          dataType: "json",
                          contentType: "application/json; charset=utf-8"
                             },
//Not working
                     update:               
                         {
                             url: "/Ajax/testAjax.aspx/updateBrokersInactiveData",
                             type: "POST",
                             dataType: "json",
                             contentType: "application/json; charset=utf-8"
                             //contentType: "application/x-www-form-urlencoded; charset=UTF-8"
                         },
                     parameterMap:
                            function (options, operation) {
//Working
                                if (operation == "read") {
                                    console.log('Transport READ Event Raised');
                                    //return { models: JSON.stringify(options.models) };
                                }
                                if (operation == "update" ) {
//Not Working
                                    console.log('Transport UPDATE Event Raised');
                                    //return { models: JSON.stringify(options.models) };
                                    }
                                },
                     batch: true,
                     schema: {
                         model: {
                             id: "intLogID",
                             fields: {
                                 intLogID: { type: "number", editable: false, nullable: false },
                                 dtConDate: { type: "date" },
                                 strBranchID: { type: "string", editable: false },
                                 strQuickComments: { type: "string" },
                                 strBranchName: { type: "string", editable: false }
                                        }
                                 }
                             }
                },
                   pageSize: 25
                                         });
              $("#grid").kendoGrid({
                  columns: [

                                                {
                                                    field: "dtConDate",
                                                    title: "Last Contact Date",
                                                    width: 150
                                                }, {
                                                    field: "strBranchID",
                                                    title: "Branch ID",
                                                    width: 100
                                                }, {
                                                    field: "strBranchName",
                                                    title: "Branch Name",
                                                    width: 200
                                                }, {
                                                    field: "strQuickComments",
                                                    title: "Quick Comments",
                                                    width: 250
                                                }],
                  dataSource: dataSource,
                  pageable: {
                      refresh: true,
                      messages: {
                          refresh: "Refresh the grid"
                      },
                      pageSizes: [5, 10, 50, 100],
                      buttonCount: 3
                            },
                  
                  height: 550,
                  groupable: true,
                  navigatable: true,
                  sortable: true,
                  pageSize: 25,
                  resizable: true,
                  filterable:true,
                  toolbar: ["save", "cancel"],  
                  editable: true,
                  saveChanges: function (e) {
                      if (!confirm("Are you sure you want to save all changes?")) {                   
                          e.preventDefault();                      
                      }
                  }
              });

Aspx
 <System.Web.Services.WebMethod()> _
    Public Shared Sub GetInactiveBrokerData()
        HttpContext.Current.Response.Write(getJsonData)
        HttpContext.Current.Response.Flush()
        HttpContext.Current.ApplicationInstance.CompleteRequest()
        HttpContext.Current.Response.SuppressContent = True
    End Sub
    
    <System.Web.Services.WebMethod()> _
    Public Shared Sub updateBrokersInactiveData(ByVal lstTracker As List(Of Tracker))
        'Dim json As String = Request("models")
        Dim strUpdOutput As String = ""
        conMyData = New SqlConnection(ConfigurationManager.AppSettings("tracker"))
        cmdSelect = New SqlCommand("[sunworldplus].[tracker_new_inactive_brokers_update_comments]", conMyData)
        conMyData.Open()
        cmdSelect.CommandType = CommandType.StoredProcedure
        sqldr = cmdSelect.ExecuteReader
        
        While sqldr.Read()

        End While
        
        If IsNothing(sqldr) Then
            sqldr.Close()
            conMyData.Close()
        End If
        ''Return strUpdOutput
    End Sub

It'll be great if someone point me in the right direction.
Binny
Top achievements
Rank 1
 answered on 16 Jul 2014
1 answer
161 views
Is it possible to control the direction of map zoom via the mousewheel?
I Have the following code as a test. The button controls work fine but the mouse wheel only zooms in.

any ideas?

    $("#map").kendoMap({
        center: [48,-103],
        zoomable: true,
        layers: [{
            type: "tile",
            urlTemplate: "http://a.tile.openstreetmap.org/#= zoom #/#= x #/#= y #.png",
            attribution: "&copy; OpenStreetMap"
        }],
        markerDefaults: {
            shape: "pin"
        },
        markers: [{
            location: [48, -103]
        }, {
            location: [48, -100]
        }]
    });

var map = $("#map").data("kendoMap");
 map.bind("zoomStart", function(e) {
        console.log("zoom start @ " + e.sender.zoom());
    });

 map.bind("zoomEnd", function(e) {
     console.log(e.sender)
        console.log("zoom end @ " + e.sender.zoom());
    });
Hristo Germanov
Telerik team
 answered on 16 Jul 2014
2 answers
582 views
Hi,

I am using Kendo Validation throughout my ASP.NET MVC project. I have a problem with email-validation which cost me all the evening:

I use this attribute for my C# property
[EmailAddress(ErrorMessageResourceType=typeof(Resources.PersonResources), ErrorMessageResourceName = "MailAddressInvalid", ErrorMessage = null)]
public string MailAddress { get; set; }


Without Kendo validation, this leads to the following: On validating the Mailaddress, the error message which I defined in the resource file is shown. 

Now with Kendo: It seems Kendo overrides this custom message with a Kendo one, something like "<HTML element id> is not a valid mailaddress".

But I need the one I defined in the resource! So, is a way to disable the Kendo default messages for inputs of type email? I know I could do some custom code to get the message from the input element (something like that could work), but I really hope there is a more intelligent way...

Thanks!
Loren
Top achievements
Rank 1
 answered on 16 Jul 2014
1 answer
80 views
When I add a rotation to a chart's label the text is rotated by its center, not the start of the text.  The result is a very difficult to read chart:

http://snag.gy/m2XxJ.jpg

Is there a way to get the label's rotation to use the start of the label as the center point?
T. Tsonev
Telerik team
 answered on 16 Jul 2014
5 answers
185 views
When grouping by a resource, the layout gets really screwy if one of the resources has more events than the other (in horizontal view). So if the grouping has one resource that looks like the attached pic (where the height of the <tr> surrounding the resource row is set to a height large enough to accomodate the items) then ALL resources are now set to that height regardless of whether they have any events. So if the one resource has a height of 500px then ALL of the rows will be 500px. 
Vladimir Iliev
Telerik team
 answered on 16 Jul 2014
3 answers
134 views
(This was accidentally posted in the wrong forum section, so re-posting it here).


Hi there,

I have run into a bit of a problem with the kendoChart (bullet in this  particular case, but probably concerns the others too) with regard to  responsive design. The scenario I have is three columns, with two  containing textual data and the third one contains some charts. The  layout is constructed with Twitter Bootstrap.  I will set up the layout  below

<div class="row-fluid">
    <div class="span5">First text data</<div>
    <div class="span5">Second text data</div>
    <div class="span2"><div class="rq-kendoChart"  data-chartvalue1="2", data-chartvalue2="90"></div></div>
</div>

So, simple enough setup. My problem is that it appears to only be  possible to tell the chart to be a static pixel size (only accepts a number, which is then written out in the end result (svg) as  "<number>px;". Giving it a static size doesn't mesh very well with the fluid grid, so I was wondering if there is some option I have
missed where you can set a % width, or perhaps some other elegant  solutions to this problem?

I do have one way around it (event on window.resize, obtain the chart  object, hide it, set new size, show it, call chart.redraw) but it seems  very hacky and also not very efficient.
T. Tsonev
Telerik team
 answered on 16 Jul 2014
1 answer
117 views
I am using a Grid that is contained within a partial view.  This grid uses a ClientDetailTemplate

     .ClientDetailTemplateId("plan_client_template")

when the grid is used in one instance, the ClientDetailTemplate is appropriate.  However, in another instance it is not. Is there a way that I can programatically remove the ClientDetailTemplate when used within a partial view. I'm thinking that perhaps I can execute some startup javascript but I'm not sure what code to write. 

Thanks. 
Vladimir Iliev
Telerik team
 answered on 16 Jul 2014
3 answers
104 views
On mobile, if you have a form within the body the dropdown appears in desktop format, if you don't have a form within the body the dropdown appears in the mobile format

The example explains better:

http://jsbin.com/vezoni/2/edit

Here there is a form, if you click on the dropdown then the select list appears underneath the dropdown. If you remove the form the dropdown appears at the bottom of the screen?

thanks
Kiril Nikolov
Telerik team
 answered on 16 Jul 2014
1 answer
77 views
Once a chart is clicked it seems text selection is disabled. See this example.
The problem appears to be that the css "user-select" class is set to "none". Bug?
T. Tsonev
Telerik team
 answered on 16 Jul 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?