Telerik Forums
Kendo UI for jQuery Forum
1 answer
173 views
Hello,

I want a control like attached image in HTML column. On click of image I am calling JavaScript to open some window that returns text as output.  I want to set the output to txt_Lookup as shown in code. 

Through below code I am able to find template. I need control object not template object.
 
var entityGrid =$("#grid").data("kendoGrid");
 
var template=  entityGrid.columns[4].template;

 I have added below template in Columns.

{

template: '<input type="text"
id="txt_Lookup" width="15"/>  <input
type="hidden" id="hdn_Guid"/>  <input
name="submit" id="submitme" type="image" 
onclick="OpenLookup();" />',
              
sortable: false
             }

I am fetching records from database. How selected records will be set in txt_Lookup while fetching?  As it is template I am not sure how can we set the value for template?

Would somebody provide some guidance on this?

Thanks!
Alexander Popov
Telerik team
 answered on 05 Mar 2014
1 answer
54 views
Hi All,

I back -end developer and now i need build my first own web site like front-end developer , i newbie in HTML/HTML5, CSS/CSS3.
How to make or chose Layouts to begin to build the first own web site, can you recommend something ?
I decide multiple pages, the question is , for beginning, can i see some ERP application like as sample ?

Thanx ,
Regards, Evgeniy.
Dimo
Telerik team
 answered on 05 Mar 2014
2 answers
159 views
Hi,

How can I set the localized text for the body of the delete confirm dialog? Now it shows "Are you sure you want to delete this event?" It seems to be hardcoded in the kendo.scheduler.js DELETECONFIRM = "Are you sure you want to delete this event?"

Kind Regards,

Marco
Marco
Top achievements
Rank 1
Iron
 answered on 05 Mar 2014
1 answer
4.7K+ views
It seems like on the page

http://docs.telerik.com/kendo-ui/api/web/window

the help section for the property width and height fails to tell how to setup a window to automatically resize to fit the contents.

How can that be done?
Dimo
Telerik team
 answered on 05 Mar 2014
1 answer
60 views
Using an inline editor in IE9, reproduce using the following steps:

1. Enter text into an empty inline editor
2. Bold the text
3. Move the focus to another input element by clicking into that element
4. Observe that the bold formatting disappears visually, though the Editor control indicates bold formatting is applied
5. If you have set up a means of saving the content, e.g. to localStorage, note that on page reload, the content displays with bold formatting

Further note that this behavior is intermittent. Sometimes we have observed that the bold formatting is never applied. Other times, the formatting works just fine, though changing focus generally causes the bold formatting to disappear.
Alex Gyoshev
Telerik team
 answered on 05 Mar 2014
1 answer
204 views
function ShowDiagnostics() {
    diagnosticDataSource = new kendo.data.DataSource({
        transport: {
            read: {
                url: "/DiagnosticBuilder/GetDiagnosticJSON",
                dataType: "json",
            }
        },
        pageSize: 10
    });
    var columns = [
        { title: "DiagnosticBuilderID", field: "DiagnosticBuilderID", hidden: true, type: "number", filterable: false },
        { title: "Template Name", field: "TemplateName", hidden: false, type: "string", filterable: false },
        { title: "Target", field: "Target", hidden: false, type: "string", filterable: false },
        { title: "No. of Questions", field: "NumberOfQuestions", hidden: false, type: "number", filterable: false },
        { title: "Action", field: "", hidden: false, type: "string", filterable: false }
        
    ];

    diagnosticGrid = $("#tblDiagnostics").kendoGridAcademy({
        columns: columns,
        dataSource: diagnosticDataSource,
        rowTemplate: kendo.template($("#diagnosticRowTemplate").html()),
        filterable: true,
        pageable: true,
    });
    $(diagnosticGrid).refresh();
}
Petur Subev
Telerik team
 answered on 05 Mar 2014
1 answer
421 views
Hi, 

I'am evaluating hte DataViz graph and have troubles when printing the graph. Tried with the example: ../kendo/examples/dataviz/bar-charts/column.html
If I print this chart the 2 last months are truncated/not visible on the print (Google Chrome, printing with Ctrl+P)
T. Tsonev
Telerik team
 answered on 05 Mar 2014
7 answers
735 views
Hi,
The problem occurs when I add  the <script src="../../../js/kendo.dataviz.min.js"></script> to the  \examples\web\grid\index.html example. Then I refresh the IE window, a JS error "Microsoft JScript runtime error: Object doesn't support this action" occurs. If I change the "pagable:true"  in the \examples\web\grid\index.html to "pagable:false", the JS error disappears.  You can see the details in the attached image.
I have no idea why this happens. Can you give me a solution to fix it?

Any clue and suggestion is appreciated. thank you.
Atanas Korchev
Telerik team
 answered on 05 Mar 2014
4 answers
285 views
I can not seem to get a GeoJSON layer with MultiPoint data to display. My map code looks like this (using the ASP.NET MVC wrapper):

@(Html.Kendo().Map()
    .Name("map")
    .Center(39.50, -98.35)
    .Zoom(3)
    .Layers(x =>
    {
        x.Add().Type(MapLayerType.Tile).UrlTemplateId("http://tile.openstreetmap.org/#= zoom #/#= x #/#= y #.png");
        x.Add().Type(MapLayerType.Shape)
            .Style(y => y.Fill(z => z.Color("#000000").Opacity(1)))
            .DataSource(y => y.GeoJson().Read(z => z.Action(MVC.MyController.Map())));
    })
   .Events(events => events
       .ShapeCreated("onShapeCreated")
    )
)
 
<script>
    function onShapeCreated(e) {
        alert('shape!');
    }
</script>

My action code looks like (using JSON.NET Linq):
public virtual ActionResult Map()
{
    List<Tuple<double, double>> coordinates = new List<Tuple<double,double>>(){
        new Tuple<double, double>(39.50, -98.35),
        new Tuple<double, double>(30.268107, -97.744821)
    };
 
    JObject featureCollection = new JObject(
        new JProperty("type", "FeatureCollection"),
        new JProperty("features", new JArray(
                new JObject(
                    new JProperty("type", "Feature"),
                    new JProperty("properties", new JObject()),
                    new JProperty("geometry", new JObject(
                        new JProperty("type", "MultiPoint"),
                        new JProperty("coordinates", coordinates.Select(c => new JArray(c.Item1, c.Item2)).ToArray())
                    ))
                )
            ))
        );
 
    ContentResult result = new ContentResult();
    result.Content = featureCollection.ToString();
    result.ContentType = "application/json";
    return result;
}

I have verified that the action gets called and that it generates the following GeoJSON file:
{
  "type": "FeatureCollection",
  "features": [
    {
      "type": "Feature",
      "properties": {},
      "geometry": {
        "type": "MultiPoint",
        "coordinates": [
          [
            39.5,
            -98.35
          ],
          [
            30.268107,
            -97.744821
          ]
        ]
      }
    }
  ]
}

None of the points are shown on the map. The alert in onShapeCreated also doesn't get called, which makes me think there's something wrong with the GeoJSON - but it looks good to me based on the specification. What am I missing?

Thanks,

Dave
T. Tsonev
Telerik team
 answered on 05 Mar 2014
1 answer
504 views
I want to get the updated / changed value of the drop down, when user change it while editing in console.log.

 
<script>
    $(document).ready(function () {
             
        $("#grid").kendoGrid({
            dataSource: {
                data: itemData(50),
                pageSize: 12,
                change: function(e) {
                    var item = e.items[0];
                    console.log(item.get("gridActionPlan.gridActionPlanID"));
                    
                }
            },
            height: 475,
            groupable: true,
            navigatable: true,
            sortable: true,
            filterable: true,
            resizable: true,
            columnMenu: true,
            pageable: true,
            toolbar: ["save", "cancel"],
            columns: [
                { field: "gridActionPlanID", values: actionPlanValues, title: "Action Plan", width: 200 },
                { field: "gridNewRetailSP", title: "New Retail SP", width: 120 },
                { field: "gridPercentEffectedStock", title: "% of Effected Stock", width: 150 },
                { field: "gridSales", title: "Sales", width: 150 },
                { field: "gridNetImpact", title: "Net Impact", width: 150 }],
            editable: true
        });
    });
 
 
 
 
    function itemData(count) {
        var data = [];
         
        for (var i = 0; i < count; i++) {
            data.push({
                gridActionPlanID : 0,
                gridActionPlan : {
                    gridActionPlanID : 0,
                    gridActionPlanName : "[Select Action Plan]"
                },
                gridNewRetailSP : 0,
                gridPercentEffectedStock : 0,
                gridSales : 0,
                gridNetImpact : 0
            });
        }
             
        return data;
    }
     
     
                
    var actionPlanValues = [{
        "value": 0,
        "text": "[Select Action Plan]"
    },{
        "value": 1,
        "text": "SP Adjustment / Display"
    },{
        "value": 2,
        "text": "Clearances"
    },{
        "value": 3,
        "text": "Return to Supplier"
    },{
        "value": 4,
        "text": "Inter-Store Transfer"
    },{
        "value": 5,
        "text": "Seasonal Import or Local"
    },{
        "value": 6,
        "text": "Bar Code Problem"
    },{
        "value": 7,
        "text": "Waste"
    },{
        "value": 8,
        "text": "Stock Problem"
    },{
        "value": 9,
        "text": "Display Piece"
    },{
        "value": 10,
        "text": "Color / Size / Range"
    }];
</script>
Nikolay Rusev
Telerik team
 answered on 05 Mar 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
AICodingAssistant
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
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
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
Iron
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?