Telerik Forums
Kendo UI for jQuery Forum
4 answers
1.7K+ views
Hi :) , 

i'm trying to display my string with json but i'm seeing the tag <br/> instead of the line break:

what i expected:
" this is a 
line break"

what i see:
"this is a<br/>line break"

on my document I've write 
<div>${content}</div>

Someone can help me, please? :) :)
Marco
Top achievements
Rank 1
 answered on 01 Oct 2012
3 answers
119 views
Hi,

Im in the process of reviewing KindoUi to see if it will work for what I need and for the most part things are going well but I ran into a hic-up today when doing some testing.

This happens in android only with stock browser (android 4.0)

What I am doing is creating a simple page with tabs, when I select one of the tabs I have an "onShow" event where I read the JSON object and I create a UL / LI list.

I push this list to a div on the page and then I call $("#dataList").kendoMobileListView(); to format the list. Now this works but I noticed that when I select the tab that fires this event and then transitions the page, right before the page moves it will "blink" (disappear then reaper). I thought this was strange so I looked at the docs and demos and noticed that the demo app did not do this so I started to dig a little deeper into it. I noticed when I did not "format" the list and just pushed the un-styled list to the div that the blinking did not happen, so I thought maybe it was the styling function. I then tried to manually add the classes to the UL/LI, while this did style the elements it still produced the blink. Now I'm at the point where I think its something in the styles but what does not make since is why would it work in the demos then?

I'm kind of at a loss, I hope someone can help.

Thanks

(BTW I am not using a layout template or binding)
Kamen Bundev
Telerik team
 answered on 01 Oct 2012
0 answers
94 views
Hi 
I am looking for the grid customization, as per my design 
http://demos.kendoui.com/web/grid/detailtemplate.html
When u click on the 'name' its popup the window.
and other thing, I want to add same functionality as when u click on the left corner, its expend more table.'

I appreciate your help.

Thanks
faisal
Top achievements
Rank 1
 asked on 01 Oct 2012
1 answer
113 views
on my page i have radsplitter - because kendo split do not work on Crome - it can be not be drag correctly.

Then i filled splitpane with grid. Normall Kendo grid won't simple resize with splitter.
So I added script with resize grid with on pane resize event.
Altoghter, grid height still not display correctly,
On firefox it perfect.
On IE the paging part just goes below window height.
On Crome the paging part is above the window height by 30-40 px.
On safari grid wont resize until grid was clicked.

What is the best way to resize the height of kendo grid when windows or pane is resized?

Best,
Ifdev02
Top achievements
Rank 1
 answered on 29 Sep 2012
2 answers
215 views
Hello,
If I write:

<div data-role="view" id="offers" data-layout="general-home" data-title="Offers" data-show="filterOffers">
            <ul id="pull-to-refresh-offers"></ul>
        </div>
        <script id="productsTemplate" type="text/x-kendo-template">
            <div class="content_offers">
            <span class="title">#= NAME #</span>
            </div>
        </script>


and:

function filterOffers(e) {
     
    var scroller = e.view.scroller;
    scroller.reset();
    categoryID = parseInt(e.view.params.CategoryID);
     
    //console.log(categoryID);
     
    var getOffers = new kendo.data.DataSource({
 transport: {
 read: {
 dataType: "jsonp",
                                               
 beforeSend: function(req) {
 $("#pull-to-refresh-offers").hide();
 app.showLoading();
 },
                                               
 data: {
    action: "getOffers",
    CategoryID: categoryID
    }
 }
 },
 change: function() {
 app.showLoading();
                                               
 setTimeout(function() {
                                                          
 app.hideLoading();
 $("#pull-to-refresh-offers").show();
     }, 200);
                                               
                                               
         },
         schema: {
             data: "res"
         }
         });
     
    $("#pull-to-refresh-offers").kendoMobileListView({
               dataSource: getOffers,
               pullToRefresh: true,
               template: $("#productsTemplate").text()
          });
     
}


At the second time that I run the pull to refresh the "Pull to refresh" label is duplicate (see attached image)
Alexander Valchev
Telerik team
 answered on 29 Sep 2012
4 answers
420 views
Does anyone know how to stop a popup template from loading when the page does?  I really want to utilize my Edit, Add, and Delete ActionResults.  When I add .AutoBind(false) to my Grid, I get an error stating: "Cannot set AutoBind if widget is populated during initialization".  I REALLY don't want the widget to be populated during initialization.

Here's my grid on my Index.cshtml page:

@model IEnumerable<PosPayAndBankRec.Models.AccountListItem>

@{
    ViewBag.Title = "Account List";
}

<div id="grid"></div>

@(Html.Kendo().Grid(Model)
    .Name("Grid")
    .ToolBar(p => p.Create())
    .Columns(columns =>
    {
        columns.Bound(p => p.SourceName).Groupable(false).Title("Source");
        columns.Bound(p => p.BankName).Title("Bank");
        columns.Bound(p => p.AccountName).Title("Account");
        columns.Bound(p => p.AccountNumber).Title("Acct #");
        columns.Bound(p => p.AccountFolderName).Title("Folder");
        columns.Bound(p => p.RamQuestBankNumber).Title("Bank #");
        columns.Bound(p => p.AccountID).Hidden(true);
        columns.Command(p => p.Edit());
        columns.Command(p => p.Destroy());
    })
    .Pageable()
            .Editable(c => c.Mode(GridEditMode.PopUp).Enabled(true).DisplayDeleteConfirmation(true).Window(window => window.Title("Account")).TemplateName("AccountPopup"))
    .Sortable()
    .Scrollable()
    .Filterable()   
    .DataSource(dataSource => dataSource   
        .Ajax()
                .Sort(sort => sort.Add(p => p.BankName))
        .ServerOperation(false)
        .Model(model => model.Id(p => p.AccountID))
        //.Model(d => d.Id("AccountID"))
        .Update(update => update.Action("Edit", "Account"))
        .Create(create => create.Action("Create", "Account"))
        .Destroy(destroy => destroy.Action("Delete", "Account"))
     )
)


Here's my AccountPopup.cshtml:

@using System.Collections
@model PosPayAndBankRec.Models.AccountListItem

@{
    ViewBag.Title = "Account";
    SelectList sources = new SelectList("");
    SelectList banks = new SelectList("");
    if (Model.Sources != null)
    {
        sources = new SelectList(Model.Sources, "SourceID", "SourceName");
        banks = new SelectList(Model.Banks, "BankID", "BankName");
    }
}

<table id="table">
    <tr>
        <td>
            Source
        </td>
        <td>
            @Html.DropDownListFor(m => m.SourceID, sources)
        </td>
    </tr>
    <tr>
        <td>
            Bank
        </td>
        <td>
            @Html.DropDownListFor(m => m.BankID, banks)
        </td>
    </tr>
</table>

Rosen
Telerik team
 answered on 29 Sep 2012
1 answer
124 views
Check http://demos.kendoui.com/mobilethemebuilder/index.html
Tried to change list item font color whether using the color or font tools (rgba(x,x,x,x))
Couldn't do it.

Note that there are other controls whose style properties cannot be accessed from theme builder.
I suggest introducing keys to combine with mouse events, for example:
- default is changing background color (no key pressed while dragging a color over a UI object)
- when B (or Ctrl or whatever) is pressed, dragging a color over a UI object changes the border color
- when F (or Shift or whatever) is pressed, dragging a color over a UI object changes the font color

Kamen Bundev
Telerik team
 answered on 29 Sep 2012
2 answers
147 views
I want to get remote data from jsp with json type.
I have modified the example file :  virtualization-remote-data.html as follows :

            <script>
                $(document).ready(function() {
                    $("#grid").kendoGrid({
                        dataSource: {
                            serverPaging: true,
                            serverSorting: true,
                            pageSize: 100,
                            transport: {
                                read: "http://localhost:8060/data.jsp",
type: "jsonp"
                            },
schema: {
data: "results"
}
                        },
                        height: 280,
                        scrollable: {
                            virtual: true
                        },
                        sortable: true,
                        columns: [
                            "OrderID",
                            "CustomerID",
                            { field:"ShipName", title:"Ship Name" },
                            { field: "ShipCity", title:"Ship City" }
                        ]
                    });
                });
            </script>


And my data.jsp as follows:

<%@ page contentType="application/json" %>
<%@ page pageEncoding="UTF-8" %>

<%
try {
    //String json = "[{\"results\":[{\"OrderID\":\"100\",\"CustomerID\":\"122\",\"ShipName\":\"B\",\"ShipCity\":\"D\"}]}]";
String json = "{\"results\":[{\"OrderID\":\"100\",\"CustomerID\":\"122\",\"ShipName\":\"B\",\"ShipCity\":\"D\"}]}";

    response.getWriter().write(json);
} catch(Exception ex) {
}
%>

But the grid have not show any data after loading.

Is there any missing or mistakes in my code?

Thanks!


vipin
Top achievements
Rank 1
 answered on 29 Sep 2012
0 answers
125 views
Hi,

I want to insert the text of the node of the treeview where the user has dropped the node within editor.
Dropping of the node from  treeview to editor is achieved using Kendo DragAndDrop and Kendo Template. I am using template for each node and mark them as draggable. DragAndDrop feature of treeview is disabled as I don't want the nodes to be drag-n-drop within treeview. I am able to add the text where the cursor is within the editor (by using insertHtml) but not where the user has dropped the node.
For example, if user is trying to drop node on line 3 but the cursor is currently on line 1, the text is getting inserted in line 1 and not line 3.

Any idea how to achieve this?

Regards,
Monish.
Monish
Top achievements
Rank 1
 asked on 29 Sep 2012
3 answers
325 views
How do i wire up a custom grid edit template to have a united kingdom £ and curreny format 999.99 for example.



$('#test').width(250).kendoNumericTextBox({
    format: 'c2'
});

  <script id="popup_editor" type="text/x-kendo-template">
       <input id="test" />
</script>
chris
Top achievements
Rank 1
 answered on 28 Sep 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
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
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
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?