Telerik Forums
Kendo UI for jQuery Forum
1 answer
335 views
The chart is using text node in the SVG to display the labels. The chart does not arrange the labels correctly based on the label width. Look at the example below.

http://jsfiddle.net/8W8Kv/

Any solution? 
Is there a max-width property on the labels? I could not find one. :(

Regards,
Ujjwal Karjee
Hristo Germanov
Telerik team
 answered on 15 Oct 2012
1 answer
206 views
Hi,

I opened kendow window in iframe mode with say some site www.microsoft.com and if i observe in IE Developertools script files of site are loaded and after i close the modal window i reopened it then i see 2sets of script files of microsoft. And this is increasing number of times i open the modal window. So when I close the kendo window it is getting destroyed but iframes still remained in DOM? or my IE Developer tool is showing older files also (which i dont think it is).

Nohinn
Top achievements
Rank 1
 answered on 15 Oct 2012
2 answers
350 views
Hi,

Using your grid which currently doesn't support column resize, we notice that sometimes the content, if wider than the width, is not shown.  Can you please add a title attribute to the TD's generated, and duplicate the cell content there (stripped of any html tags...), so when hovering the cell, the user can still read the contents?
Nohinn
Top achievements
Rank 1
 answered on 15 Oct 2012
1 answer
399 views

Hello Dear,

I am so much happy to know Kendo UI web demo now open for all. So I want to use Kendo UI web in my project. At now I am using JQuery UI in my project. I am passing my all data by JSON. Other one is important my project is ASP.NET MVC 3 project. So last few days I am trying to pass JSON data to my project with Kendo UI Web. But I cannot do it easily. I think I am missing something.

Another one I do not want to use Kendo MVC DLL. Only I want to use Kendo UI Web Open source. I can use Kendo MVC DLL.  :)

So my target is use Kendo UI to ASP.NET MVC 3 project with JSON data. My Question is below:

  1. Can I use Kendo UI Web with JSON data in ASP.NET MVC 3?
  2. If Answer will be yes. Then how can I use it in ASP.NET MVC 3?
  3. How do I pass JSON data?
  4. Could you give me any project reference that type?
  5. Could you give any example?

Please Help me…!

Nohinn
Top achievements
Rank 1
 answered on 15 Oct 2012
1 answer
964 views
Is there any way to add a CSS class to a ListView's container?

For example, I would like to add the CSS class "row" so it looks like this:
<div id="CertificationList" class="row k-widget k-listview" data-role="listview">

This is the ListView:
@(Html.Kendo().ListView(Model)
    .Name("CertificationList")
Nikolay Rusev
Telerik team
 answered on 15 Oct 2012
0 answers
171 views
Hi all, i have some problem with create and update data
Look at this

dataSource = new kendo.data.DataSource({
   transport: {
      read: {url:"<?=base_url()?>/bank"},
      update: {url:"<?=base_url()?>/bank/update", type:"POST"},
      destroy: {url:"<?=base_url()?>/bank/destroy",type:"POST"},
      create: {url:"<?=base_url()?>/bank/create",type:"POST"},
   },
   error: function(e) {
      alert(e.responseText);
   },
   batch: true, pageSize: 25,
   schema: {
   model: {
      id: "id_bank",
      fields: {
         nama_bank: { type: "string" },
      }
   }
}
});
//kendo grid
$("#grid_bank").kendoGrid({
   dataSource: dataSource,
   editable:  "popup", height: 450, filterable: true, sortable: true, pageable: true,
   toolbar: ["create"],
   columns: [
      { field: "nama_bank",title: "Nama", filterable: true },
      { command: ["edit", "destroy"], title: " ", width: "160px" }
   ]
});

i'am using codeigniter and this script on class controller
public function index() {
   header("Content-type: application/json");
   $arr = array();
   $data=$this->bank_model->get_bank();
   foreach ($data as $hasil) {
      $arr[]=$hasil;
   }   
   print json_encode($arr);
}
     
public function create() {
   header("Content-type: application/json");
   $nama_bank = $_POST['models'][0]['nama_bank'];
   $query = "INSERT INTO bank VALUES (NULL, '$nama_bank')";
   $rs = $this->db->query($query);
   echo $query;
   if ($rs) {
      echo json_encode($rs);
   } else {
      header("HTTP/1.1 500 Internal Server Error");
   }
}
     
public function update() {
   header("Content-type: application/json");
   $id_bank = $_POST['models'][0]['id_bank'];
   $nama_bank = $_POST['models'][0]['nama_bank'];
   $query = "UPDATE bank SET nama_bank = '$nama_bank' WHERE id_bank = $id_bank";
   echo $query;
   if ($rs) {
      echo json_encode($rs);
   } else {
      header("HTTP/1.1 500 Internal Server Error");
   }
}

the problem is if process creating data is execute after that when will updating data, process always to creating data
and if in first time/page reloaded process updating is execute, that is working, but after that creating data it is problem again

Thank
rooney
Top achievements
Rank 1
 asked on 15 Oct 2012
0 answers
103 views
Hello,

I have an SPA web application.

The menu links are regular <a> tags but they just update the main content area with AJAX. The close on click is set to true but it doesn't close.
I belive this bugs out because of the Ajax way of things working.

Anybody have experience or workarounds?
Dennis
Top achievements
Rank 1
 asked on 15 Oct 2012
0 answers
182 views
Is it possible to use PUT instead of POST for saving a file into the server (as jquery file upload does)?
If not, would be difficult modify / extend your widget for supporting it? I do prefer using only one framework instead of having to use jquery.upload.js and KendoUI.
OnaBai
Top achievements
Rank 2
 asked on 15 Oct 2012
0 answers
157 views
Hi,

I would like to validate this extension of kendo.data.DataSource:

(function () {
    if (kendo.data.DataSource.prototype.set == undefined) {
        kendo.data.DataSource.prototype.set = function (id, model) {
            var idx, length, data = this._flatData(this._data);
 
            for (idx = 0, length = data.length; idx < length; idx++) {
                // Found it?
                if (data[idx].id == id) {
                    // Make sure it's model
                    if (!(model instanceof kendo.data.Model)) {
                        if (this.reader.model) {
                            model = new this.reader.model(model);
                        }
                        else {
                            model = new kendo.data.ObservableObject(model);
                        }
                    }
                    // Update it
                    data[idx] = model;
                    this._change();
                    break;
                }
            }
            // Not found, add it
            if (idx == length) {
                this.add(model);
            }
        }
    }
})();

Any thoughts or suggestions will be appreciated.

Thx,
Lucian
Lucian
Top achievements
Rank 1
 asked on 14 Oct 2012
0 answers
99 views
Hi

I am using MVC 4 with a Kendo Grid.

I have created a grid that is the "many" side of a one-to-many data structure. Basically , its the invoice rows part of an invoice. How do I  now post back an Invoice with the rows (coming from the grid) to the action method of the controller?

        [HttpPost]
        public ActionResult Create(Invoice invoice)


Thanks
Greg
Top achievements
Rank 1
 asked on 14 Oct 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
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
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
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?