Telerik Forums
Kendo UI for jQuery Forum
2 answers
313 views
I have a grid that I have hooked up to a PHP webservice. The dataSource.transport.read option is set to the following:

function(operation)
{
    if($('#grid').data('bindData') !== false)
    {
        var params = operation.data;
        params['id'] = $('#grid').data('webServiceId');
        $.ajax({
            url: 'webservice.php',
            contentType: 'application/json',
            type: 'POST',
            data: kendo.stringify(params),
            success: function(response) { operation.success(response); }
        });
    }
}


The bindData is just a boolean condition I'm setting so that it won't make requests to the webservice at certain points.

This works for normal functionality. The issue here is that I'm dynamically setting the pageSize option based on how much available vertical space is in the content area of the grid. So when I initialize it, I don't want to make a webservice request right away, so I set the option to false, calculate the space, set the pageSize, then want to make the call to run the transport function, but not sure how to do this properly. I can call it manually using $('#grid').data('kendoGrid').dataSource.transport.read(); but that doesn't send the parameters to it so the 'operation' parameter is undefined and the webservice doesn't get any of the paging, sorting or filtering options. And calling dataSource.read() or refresh() doesn't seem to work either.

How can I accomplish this? Is there a way to pass the transport function the necessary parameters or is there a better way to handle it?

Let me know if there's anything else you need.
Stacy
Top achievements
Rank 2
 answered on 08 Aug 2013
2 answers
927 views
Hi ,

I am trying to log the events in kendo grid, but I am getting the "kendoConsole undefined" error message. I found in a forum thread that says, I need "kendo.console.js" to support this feature in the kendo grid. I tried to find this file in my commerial kendo but could not see it.

Please tell me how to access "kendo.console.js" file.

Thank you,

Poonam
Christian
Top achievements
Rank 1
 answered on 08 Aug 2013
1 answer
5.8K+ views
I looked thru the ThemeBuilder but I can't edit the font and line height there.

Using the MVC Helper, can I specify the Line Height and Font Size of the text in the grid (header, body and footer) ?

I'm looking to get all the text and line height of the grid to be 75% of what there is there now natively.

Ian
Iliana Dyankova
Telerik team
 answered on 08 Aug 2013
3 answers
94 views
I have data that looks like this: [99.44], [99.52], [99.61], [8.52], [99.54], [99.61], [99.53], [99.64], [99.64].

As you can see, the 8.52 is the outlier. The difference between the 8.52 and the rest of the data is so huge that the differences between the data is not noticeable.

Is there a way for me to display an outlier in another color or below the horizontal axis?

Thanks.
Iliana Dyankova
Telerik team
 answered on 08 Aug 2013
1 answer
126 views
Can someone please help me with this. I've asked a few times and I just can't believe I'm the only one who has encountered this. I have never created a form where the same fields I'm editing are the same fields I'm inserting. It appears the kendo grid uses the same template to display the edit and the insert fields. Example: I may way to insert a status but not be able to update it. Again, i never came across an application I have developed where the same fields are used for both an insert and an update..

I used a template but again it keeps firing the same template for the edit and update. Frustrating, please help.

@(Html.Kendo().Grid(Model)
        .Name("Grid")
    .Columns(columns =>
    {
        columns.Bound(p => p.CodeID);
        columns.Bound(p => p.CodeDescription);
        columns.Bound(p => p.Title);
        columns.Bound(p => p.Status).Filterable(false);
        columns.Command(command => command.Edit()).Width(200);
        
    })
    .ToolBar(toolBar => toolBar.Create().Text("Add New Code"))
    
    .Sortable()
    .Scrollable()
    .Pageable()
    .Filterable()
    .Selectable(selectable => selectable.Mode(GridSelectionMode.Single))
    .Resizable(resize => resize.Columns(true))
    .DataSource(dataSource => dataSource
        .Ajax()
        .Events(events => events.Error("error_handler"))
        .ServerOperation(false)
        
        .Model(model => model.Id(p => p.CodeID))
          .Update(update => update.Action("Edit", "CodeManager", new { classifications = @ViewBag.SelectedCatgory }))
          .Create(create => create.Action("Create", "CodeManager", new { classifications = @ViewBag.SelectedCatgory }))
                                )
          .Editable(ed => ed.Mode(GridEditMode.PopUp).TemplateName("_CodeEditor"))
        )

thanks
dennis
Chrys
Top achievements
Rank 1
 answered on 08 Aug 2013
3 answers
89 views
This is what I use and it's just so much code in my config code...I prefer no animations so it's everywhere.  Is there a shorter way to achieve the same thing?

animation: {
                close: {
                    effects: "none",
                    duration: 0
                },
                open: {
                    effects: "none",
                    duration: 0
                }
            },
Kiril Nikolov
Telerik team
 answered on 08 Aug 2013
7 answers
145 views
Hey,

We have added localization of the editor tooltips etc in a localization file (kendo.nb-NO.js, but it doesn't seem to work for backColor and imageAltText. Everything else works, but not these two. Is this a known problem? Below is some of the translations for the editor:

kendo.ui.Editor.prototype.options.messages =
  $.extend(kendo.ui.Editor.prototype.options.messages, {

  /* These work */
      bold: "Fet",
      italic: "Kursiv",
      underline: "Understreket",
      strikethrough: "Gjennomstreket",
      superscript: "Fremhevet",

      /* These two doesn't work */
      imageAltText: "Alternativ tekst",
      backColor: "Bakgrunnsfarge"
      
  });


Regards, 
Jan Erik
Dimo
Telerik team
 answered on 08 Aug 2013
1 answer
136 views
I'm just starting out with the Kendo UI Complete for MVC and ran across the Kendo Labs "kendo-ui-forms" project which got me thinking.  Since I'm using the MVC extensions, wouldn't the extensions do this for me already and detect the browser and output the appropriate form element type, be it an HTML5 element or a PolyFill?

So, the question is: does the MVC Extensions do this or are there plans for the MVC extensions to do this?
Sebastian
Telerik team
 answered on 08 Aug 2013
1 answer
159 views
Hi,

   can any one post pay pal sample code plz. is it possible to write paypal code in icenium? is it secure? we can get total code by the .apk file by converting the apk file into zip file. if paypal code written in this is it secure one or not? in native application .js files wont get by just converting apk file into zip. but in hybrid total code and designing we can get how to make it secure?
Steve
Telerik team
 answered on 08 Aug 2013
1 answer
80 views
We've decided to only use the ThemeBuilder for styling.

I haven't been able to change the background and text color of the footer using the ThemeBuilder. Is there a way?

I define my footer in the Column (MVC)

columns.Bound(e => e.Client)
       .FooterTemplate(@<text>
                            @foreach (var acct in accountsRollups)
                            {
                                @Formatters.FormatCurrency(acct.UnrealizedGainLoss)
                                <br/>
                            }
                        </text>)

Iliana Dyankova
Telerik team
 answered on 08 Aug 2013
Narrow your results
Selected tags
Tags
Grid
General Discussions
Charts
Data Source
Scheduler
DropDownList
TreeView
MVVM
Editor
Window
Date/Time Pickers
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)
SPA
Filter
Drawing API
Drawer (Mobile)
Globalization
Gauges
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
OrgChart
TextBox
Effects
Accessibility
ScrollView
PivotGridV2
BulletChart
Licensing
QRCode
ResponsivePanel
Switch
Wizard
CheckBoxGroup
TextArea
Barcode
Collapsible
Localization
MultiViewCalendar
Touch
Breadcrumb
RadioButton
Stepper
Card
ExpansionPanel
Rating
RadioGroup
Badge
Captcha
Heatmap
AppBar
Loader
Security
Popover
DockManager
FloatingActionButton
TaskBoard
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
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?