Telerik Forums
Kendo UI for jQuery Forum
5 answers
235 views
Hello,
I wonder if it's possible to have the Navbar parent element with transparent background like the attachment.

Cristiano
Kamen Bundev
Telerik team
 answered on 22 May 2013
1 answer
343 views
This may be trivial but I tried many ways and just cannot get it right. I have 2 situations where I populate a grid: 
1. I filled the grid from the contents of a table similar to one of the demos.
2. I populate a grid by starting from an empty grid which I populate with data including cells which has an autocomplete editor as well.

I tried different variations of the CRUD example but it seems that if you do not have a read statement in transport the update do not work.

I want to save the contents of the whole grid to a mysql database by using php. Is there an example that I missed or how can this be done?
Vladimir Iliev
Telerik team
 answered on 22 May 2013
1 answer
219 views
In the main grid , I have specified the ClientDetailTemplateId("Temptemplate")

<script id="Temptemplate" type="text/kendo-tmpl">

                    @(Html.Kendo().Grid<NIMROD.Models.Test>()
                        .Name("Testid#")
                        .Columns(columns =>
                        {
                            columns.Bound(o => o.test1).Title("Test");
                            columns.Bound(o => o.test1Qty).HtmlAttributes(new { style = "text-align:right" });
                            columns.Bound(o => o.test2Qty).HtmlAttributes(new { style = "text-align:right" });
                           
                        })

                         .Editable(ed => ed.Mode(GridEditMode.InCell))
                         .Selectable(sel => sel.Mode(GridSelectionMode.Single))                       
                         .Events(ev =>{
                                         ev.Edit("edit");    
                                      })
                         .DataSource(dataSource => dataSource
                                    .Ajax()
                                    .Batch(true)
                                    .Read(read => read.Action("details", "Order"))
                                    .Update("UKEditPhaseReviewDrops", "Order")
                                    .Model(model => { model.Id(p => p.id); })
                                    .Events(ev => {
                                                   ev.RequestEnd("oncomplete");   
                                                   ev.Error("error_handler");  } )
                                    )
                                     .Events(ev =>{
                                         ev.Edit("onPhaseReviewedit");    
                                      })
                         
                         .Events(ev => ev.Save("onsave"))
                         .ToClientTemplate())    
</script>


Our requirement test1qty & test2qty cell should be editable or readonly based on condition .
Validation should be done for each cell by calling the action result ,Validation message should be displayed as javascript alert

Thanks In Advance
Petur Subev
Telerik team
 answered on 22 May 2013
7 answers
148 views
We are using standard html radio button control <input type="radio".../> and cannot get it to style correctly on the android stock browser.  It looks fine on ipad but just renders as a gray dot on a Samsung Galaxy SII stock android browser so cannot tell which radio button is "checked".  It works okay in Chrome on the Android.  Can you help us with the styling here?

Thx...Bob Baldwin
Trabon Solutions
Petyo
Telerik team
 answered on 22 May 2013
2 answers
294 views
I have a bunch of pages that share a navigation template and common viewModel navigation properties that can be bound to a particular entity ID being passed between pages.

Doesn't really matter if I haven't explained that too well but bottom line is the properties are pretty much identical for each viewModel apart from an ID tagged on the end of a URL string

Along the lines of this post regarding Knockout ...

http://stackoverflow.com/questions/16569810/knockout-viewmodel-base-class-javascript-inheritance

is it possible to in the Kendo framework to implement a baseViewModel that other viewModels can inherit from?



Darryl
Top achievements
Rank 1
 answered on 22 May 2013
2 answers
1.2K+ views
hello.  currently the number in my tooltip looks like this "$ 1234567" but how do i make it look like "$ 1,234,567"?
$J("#chart").kendoChart({
    dataSource: {
        data:source,
        group: {
            field: "MDetail",
            dir: "asc"
        },
        sort: {
            field: "Month",
            dir: "asc"
        }
    },
    theme: "blueOpal",
    title: {
        text: "Total Cost of Workforce for " + year
    },
    legend: {
        position: "bottom"
    },
    seriesDefaults: {
        type: "area",
        format: "${0:0,000}"
    },
    series: [{
        field: "Amount",
        groupNameTemplate: "#= group.value # "
    }],
    valueAxis: {
        labels: {
            template: "#= kendo.format('$ {0:N0}', value / 1000000) # M"
        },
        majorUnit: 100000000,
        line: {
            visible: false
        },
        axisCrossingValue: -10
    },
    categoryAxis: {
        field: "Month",
        majorGridLines: {
            visible: false
        }
    },
    tooltip: {
        visible: true,
        format: "$ {0:0,000}"
    }
});
toy
Top achievements
Rank 1
 answered on 21 May 2013
2 answers
128 views
Hello:

In the following example, the 1st popup receives a dynamic passed ID value, (use the Refresh() ), whereas the 2nd popup uses the fixed ID value.  There is no difference displaying these 2 popup shown in the Browser, all have scrollbars, and scroll correctly.  

However, when the website (MVC4 razor) is access in tablet, i,e. iPad, the 1st popup does NOT scroll, it moves with the background, and anything longer than 400px height, it cuts off.  the 2nd popup scrolls by itself, the background stays, this is the correct outcome, the same as Browser.

I use these two popup just to show that the Refresh() created windows doesn't scroll correctly in tablet devices.

<div id="divEleWrapper">
    @(Html.Kendo().Grid<ElementViewModel>()
.Name("gridEle")
.Columns(cols =>
{
    cols.Bound(e => e.EleNum)
        .ClientTemplate("<span id='btn_#=EleID#' onClick='showDetail(#:EleID#)'>#:EleNum#</span>");
 
    cols.Bound(e => e.EleNum)      
        .ClientTemplate("<span id='btn2_#=EleID#' onClick='showDetail2(#:EleID#)'>#:EleNum#</span>");
     
})
.DataSource(dataSource => dataSource
    .Ajax()
    .Read(read => read.Action("GetElements", "Rating", pi).Type(System.Web.Mvc.HttpVerbs.Get))
)
)
   
 
</div>
<div>
     
    @{Html.Kendo().Window()
        .Name("winStandard")
        .Title("Detail")
        .Visible(false)
        .Modal(true)
        .Width(600)
        .Height(400)
        .Draggable()
        .Scrollable(true)
.Render();
    }
 
    @{Html.Kendo().Window()
        .Name("winStandard2")
        .Title("Detail")
        .Visible(false)
        .Modal(true)
        .Width(600)
        .Height(400)
        .Draggable()
        .Content(@<text>
        @{Html.RenderAction("GetStandard", "Standard", new  { eID = 54805 });}
        </text>).Render();
    }
    
</div>
 
<script>
    function showDetail(eID) {
        var dialog = $("#winStandard").data("kendoWindow");
        dialog.refresh({
            url: "./Standard/GetStandard",
            data: { eID: eID }
        });
        dialog.center().open();
    }
 
    function showDetail2(eID) {
        $("#winStandard2").data("kendoWindow").center().open();
    }
 
</script>

Please advise
Thank you

HSO
Top achievements
Rank 2
 answered on 21 May 2013
9 answers
1.9K+ views
Hi:
I'm using Editable Mode: "popup", within a template, and I can't find information about how to set width of the popup windows, here is part of my code:
I need to increase the size (width of my editing PopUp Window)
$(function() {
            
            $("#grid_cate").kendoGrid({
                dataSource: {
                    transport: {
                        read: "cate_lista.php",
                        update: {
                            url: "cate_lista.php",
                            type: "POST"
                        },
                        create: {
                            url: "cate_update.php",
                            dataType: 'jsonp',
                            type: "POST"
                        },
                        destroy: {
                            url: "cate_delete.php",
                            dataType: 'jsonp',
                            type: "POST"
                        },
                         
                    },
                     
                     
                    schema: {  
                        data: "data",
                        model: {
                            id: "recid",
                            fields: {
                                catego: { validation: { required: true} },
                                estatus: { validation: { required: true} },
                                foto: { validation: { required: true} }
                            }
                        }
                    }
                     
                },
                columns: [
                    { field: "catego",title: "CATEGORIA" },
                    { field: "estatus",title: "ESTATUS", width: "100px" },
                    { field: "foto",title: "FOTO", width: "160px" },
                     
                    { command: ["edit" , "destroy"], title: "OPCIONES", width: "200px" }],
                editable: {
                        mode: "popup",
                        template: $("#popup_editor").html()
                },
                save: function(e,c){
                        e.model.set("foto",$("#uploadedFile").val());
                    },
                  
                 scrollable: true,
                 navigable: true,
                 pageable: true,
                 selectable: true,
                 sortable: true,
                 toolbar: [ "create"]
            });
             
        });
        function onSuccess(e){ 
                $("#uploadedFile").val(e.files[0].name);
        }
 
    </script>
<script  id="popup_editor" type="text/x-kendo-template"  >
             
            <div class="customClass">ESPAÑOL</div>
            <div class="k-edit-label">
                <label for="Estatus">Estatus:</label>
            </div>
                    <select option name='estatus'>
                         <option   value='Activo'>Activo</option>
                         <option   value='Pendiente'>Pendiente</option>
                    </select>
            <br>
             
            <div class="k-edit-label">
                <label for="Categoria">Categoria:</label>
            </div>
            <input type="text" class="k-input k-textbox" name="catego" data-bind="value:catego">
                 
             
             
            <div class="k-edit-label">
                <label for="Descripcion">Descripcion:</label>
            </div>
             
            <textarea cols="47" rows="6" name="descripcion"></textarea>
            <div class="customClass">INGLES</div>
            <div class="k-edit-label">
                <label for="Categoria_ing">Categoria:</label>
            </div>
            <input type="text" class="k-input k-textbox" name="catego_ing" data-bind="value:catego_ing">
            <div class="k-edit-label">
                <label for="Descripcion_ing">Descripcion:</label>
            </div>
            <textarea cols="47" rows="6" name="desc_ing"></textarea>
             
            <div class="customClass">SELECCIONAR IMAGEN:</div>
            <image src="test/${foto}" width="100"></image>
            <input name="foto" type="hidden" id='uploadedFile' data-bind="value: foto" />
            <input type="file" id="files" data-role="upload" data-async='{"saveUrl": "save.php","autoUpload": "true"}' data-success="onSuccess" name="files" />
             
                 
             
 
</script>
DJo
Top achievements
Rank 1
 answered on 21 May 2013
1 answer
87 views
 i want to put serveral widgets in a li ,  serveral widget in one line ,  multi lines in a listview, but i find  something wrong with it , is it my configure not right? for exmaple, only the first switch can be seen,the second is invisiable,  and the squence of widgets are not same as code below
<div data-role="view" id="foo"  data-title="trest1">
   <ul data-role="listview"  >
      <li>
            <span>test</span>
            <input id="slider" class="balSlider" value="0" />
            <a data-role="button">Foo</a>
            <input type="checkbox" data-role="switch" />       
            <a data-role="button">Foo</a>    
            <input type="checkbox" data-role="switch" />   
      <li>
             <a data-role="button">Foo</a>
             <a data-role="button">Foo</a>
            <input type="checkbox" data-role="switch" />       
            <a data-role="button">Foo</a>    
            <input type="checkbox" data-role="switch" />        
      </li>
 </ul>
Iliana Dyankova
Telerik team
 answered on 21 May 2013
2 answers
79 views
Hi Guys 

Hope someone can help, i am having the most basic of issues with the kendo grid.  I have followed the example for the Kendo MVC grid, i created a UI for MVC Web Application project and to this project added an ado .net Entity Data Model all is well.  

Following the general overview i can get this example working fine, however when i try the ajax databinding i simply cant get my grid to return any data 

i have added the action result method for the read as so 

public ActionResult Meeting_Read([DataSourceRequest]DataSourceRequest request)
        {
            using (var ola = new OnlineActionsEntities())
            {
                IQueryable<Meeting> meetings = ola.Meetings;
                DataSourceResult result = meetings.ToDataSourceResult(request);
                return Json(result);
            }
        }


i have added my grid as so 

@(Html.Kendo().Grid<AdventureWorks.Models.Meeting>()
      .Name("grid")
      .DataSource(dataSource => dataSource // Configure the grid data source
          .Ajax() // Specify that ajax binding is used
          .Read(read => read.Action("Meetings_Read", "Home")) // Set the action method which will return the data in JSON format
       )
      .Columns(columns =>
      {
          // Create a column bound to the ProductID property
          columns.Bound(meeting => meeting.ID);
          // Create a column bound to the ProductName property
          columns.Bound(meeting => meeting.Title);
      })
      .Pageable() // Enable paging
      .Sortable() // Enable sorting
)
when i build and run the grid simply never gets populated ? if i break point the Meeting_Read action result it is simply never called ??  

I must be missing something really obvious but cant see what 

Please help.

Eddie
Anthony
Top achievements
Rank 1
 answered on 21 May 2013
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)
SPA
Filter
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
OrgChart
TextBox
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
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
StockChart
ContextMenu
TimePicker
DateTimePicker
RadialGauge
ArcGauge
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?