Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
179 views
Can anyone show a code sample of how I can retrieve content from a RadEditor as markdown on the server (not on the client)?

I have read this demo page and it says to use OnExportContent but I'm not sure how to do that. 
Marin Bratanov
Telerik team
 answered on 24 Jan 2014
1 answer
100 views

I'm using the Telerik RadCalendar control and when I try to navigate through a day (click in day in calendar) or to next or previos month in the calendar i can't in IE. In Chrome and Firefox works ok but not in IE.

In IE the URL changes and add a anchor (#) at the last of URL.


Any suggestions? Thank you.

Viktor Tachev
Telerik team
 answered on 24 Jan 2014
23 answers
332 views
Hello,

I have a radgrid inside a RadTabStrip/Multipage/Pageview, this grid uses OnNeedDataSource to bing to a small table with 3 columns: a Guid, a string, another Guid.
I display normally 2 columns+ an edit column, the first Guid column is marked as display=false, the 3rd uses a lookup table to set its value.
My problem is that any column I set after the non displayed column is also hidden.

I have dozen other radgrid in my site working quite ok, but I can't solve the problem with this one:
Here is my code
<div style='float:left;width:100%;'>  
                            <telerik:RadGrid ID="RadGrid1" GridLines="None" AutoGenerateColumns="False" AllowPaging="True" PageSize="50" runat="server">  
                                <PagerStyle Mode="NextPrevAndNumeric" /> 
                                <ClientSettings AllowColumnsReorder="false"  Resizing-AllowColumnResize="false"/>  
                                <MasterTableView CommandItemDisplay='None'  TableLayout="Fixed" DataKeyNames="SourceUserId" > 
                                    <Columns> 
                                        <telerik:GridBoundColumn DataField="SourceUserId" UniqueName="SourceUserId" DataType='System.Guid' Display="false" ReadOnly="true" HeaderStyle-Width='5px' /> 
                                        <telerik:GridBoundColumn DataField="LastName" HeaderText="Name" UniqueName="LastName" ReadOnly="true" HeaderStyle-Width='80px'/>  
                                        <telerik:GridBoundColumn DataField="SourceDomainName" HeaderText="Source Domain" UniqueName="SourceDomainName" ReadOnly="true" HeaderStyle-Width='200px'/>  
                                        <telerik:GridDropDownColumn DataField="TargetDomainName" HeaderText="Target Domain" ListTextField="TargetDomainName" ListValueField="DestId"   
                                            DropDownControlType="RadComboBox" UniqueName="TargetDomainName"  EditFormColumnIndex='0' HeaderStyle-Width='200px' /> 
                                        <telerik:GridEditCommandColumn UniqueName="EditCommandColumn" ButtonType="ImageButton"   > 
                                            <HeaderStyle Width="50px" /> 
                                        </telerik:GridEditCommandColumn> 
                                    </Columns> 
                                    <EditFormSettings ColumnNumber='1'>  
                                        <FormTableItemStyle Wrap="False" /> 
                                        <FormMainTableStyle GridLines="None" CellSpacing="0" CellPadding="3" Width="100%" /> 
                                        <FormTableStyle GridLines="Horizontal" CellSpacing="0" CellPadding="2" Height="110px" Width="100%" /> 
                                        <FormTableAlternatingItemStyle Wrap="False" /> 
                                        <FormStyle Width="100%" /> 
                                        <EditColumn  ButtonType="ImageButton"  > 
                                        </EditColumn> 
                                        <FormTableButtonRowStyle HorizontalAlign="Left" /> 
                                    </EditFormSettings> 
                                </MasterTableView> 
                            </telerik:RadGrid> 
                            </div> 

The LastName column is not displayed, I added it to have the SourceDomainName column displayed.

I have used a small test project and I ma unable to reproduce the problem....

When I look in IE8 to the generated code, everything seems to be ok, especially the init for columns, and don't understand what is the side effect driving to have the column not displayed when it should be.

Here is the source code from IE8
Sys.Application.add_init(function() {  
$create(Telerik.Web.UI.RadGrid,  
    { "ClientID": "WebHeaderButton_TPans_M_Migra_651_RadGrid1",   
    "ClientSettings": { "AllowAutoScrollOnDragDrop": true, "ShouldCreateRows": true, "DataBinding": {}, "Selecting": {}, "Scrolling": {}, "Resizing": {}, "ClientMessages": {}, "KeyboardNavigationSettings": { "AllowActiveRowCycle": false, "EnableKeyboardShortcuts": true, "FocusKey": 89, "InitInsertKey": 73, "RebindKey": 82, "ExitEditInsertModeKey": 27, "UpdateInsertItemKey": 13, "DeleteActiveRow": 127} }, "Skin": "Web20", "UniqueID": "WebHeaderButton$TPans$M_Migra_651$RadGrid1", "_activeRowIndex": "", "_controlToFocus": "", "_currentPageIndex": 0, "_editIndexes": "[]", "_embeddedSkin": true, "_gridTableViewsData": "[{\"ClientID\":null,\"UniqueID\":null,\"PageSize\":50,\"PageCount\":1,\"EditMode\":\"EditForms\",\"CurrentPageIndex\":0,\"VirtualItemCount\":0,\"AllowMultiColumnSorting\":false,\"IsItemInserted\":false,\"clientDataKeyNames\":[],\"_dataBindTemplates\":false,\"_selectedItemStyle\":\"\",\"_selectedItemStyleClass\":\"rgSelectedRow\",\"_columnsData\":[{\"UniqueName\":\"SourceUserId\",\"Resizable\":true,\"Reorderable\":true,\"Groupable\":true,\"ColumnType\":\"GridBoundColumn\",\"Display\":false},{\"UniqueName\":\"LastName\",\"Resizable\":true,\"Reorderable\":true,\"Groupable\":true,\"ColumnType\":\"GridBoundColumn\",\"Display\":true},{\"UniqueName\":\"SourceDomainName\",\"Resizable\":true,\"Reorderable\":true,\"Groupable\":true,\"ColumnType\":\"GridBoundColumn\",\"Display\":true},{\"UniqueName\":\"TargetDomainName\",\"Resizable\":true,\"Reorderable\":true,\"Groupable\":true,\"ColumnType\":\"GridDropDownColumn\",\"Display\":true},{\"UniqueName\":\"EditCommandColumn\",\"Resizable\":true,\"Reorderable\":true,\"Groupable\":false,\"ColumnType\":\"GridEditCommandColumn\",\"Display\":true}]}]", "_masterClientID": null, "allowMultiRowSelection": false, "clientStateFieldID": "WebHeaderButton_TPans_M_Migra_651_RadGrid1_ClientState" }, null, null, $get("WebHeaderButton_TPans_M_Migra_651_RadGrid1"));  
});  
 

My turn around is Ok, but it is certainly hiding something ...suspect.

Any idea welcome, especially if successful.

CS
Venelin
Telerik team
 answered on 24 Jan 2014
3 answers
117 views
Hi,

I am using radgrid's Add new record feature.

I am saving the grid from an external button. I had invoked batcheditcommand to get the changed columns.

I have a column in my grid, for which i am calling a client function and changing only the image.
I want to make this column as editted. I am able to change the class of the column as rgBatchChanged, but it is not getting in batcheditcommand.


Please help me.... since i am stuck with this radgrid.
Angel Petrov
Telerik team
 answered on 24 Jan 2014
2 answers
1.0K+ views
I need to add a default item to all my dropdown lists, but I dont want to have to put it in the database where I load the dropdownlist from.  how can I add a default item at the top of the list for them to Pick an Item from List, itstead of showing first thing from the dtabase.


How I load the DropDownList then I call the void from within another load statement
 protected void FillDDl()
    {
        sql = "select intPlanId, strFuturePlan from ESGRFuturePlan where bitActive = 1 Order by strFuturePlan";
 
        ddlFuturePlan.DataTextField = "strFuturePlan";
        ddlFuturePlan.DataValueField = "intPlanId";
        ddlFuturePlan.DataSource = c.GetReader(sql);
        ddlFuturePlan.DataBind();
    }
 
To that list that Loads I need to add an Item such as
"Pick and Item from List" and give it a value of zero so that I can validate agianst it.

I then call FillDll() in my Load Person statement.





















Kevin
Top achievements
Rank 1
 answered on 24 Jan 2014
1 answer
165 views
I have an app with some legacy aspx files, and you know, controls like DateTimePickers or ComboBoxes doesn't look alike (not even close) if you use aspx (ASP:NET Ajax controls) and mvc pages (Kendo UI controls).

So I was wondering if there is some skin (either in Kendo or in ASP.NET Ajax side) that makes them look, at least, quite similar.

Regards
Dario
Ivan Zhekov
Telerik team
 answered on 24 Jan 2014
1 answer
114 views
Hi
how to set the expand collapse image for a grid?
Jayesh Goyani
Top achievements
Rank 2
 answered on 24 Jan 2014
1 answer
91 views
i am using some validations which are on server side and Whenever this validations are called an post backed my
rad upload control looses its css.

file selected get hidden,and text box becomes big
vab
Top achievements
Rank 1
 answered on 24 Jan 2014
1 answer
154 views
I'm new for Kendo treeview. In kendo.MVC.Example template, we can set up treeview data source from the data generated from controller. If I want to for example click button, and get new data by ajax, how can I reload the data source for the treeview? 
Alex Gyoshev
Telerik team
 answered on 24 Jan 2014
0 answers
102 views
problem in display direction please replay me
     var map;
     var myVar;
     var flightPlanArray = [];
     var markerDispSize = 0;
     var directionDisplay;
     var directionsService = new google.maps.DirectionsService();
     initialize();

     function initialize() {
         var markers = JSON.parse('<%#ConvertDataTabletoString() %>');
       function pauseMarker() {
           directionsDisplay = new google.maps.DirectionsRenderer();
            var markersData = [];
             //alert("starting func outside if var size:" + markerDispSize + "array size:" + markers.length);
              if (markerDispSize < markers.length) {
                 markerDispSize = markerDispSize + 1;
                
                 markersData.push(markers[markerDispSize-1]);
                 var mapOptions = {
                     center: new google.maps.LatLng(markersData[0].Latitude, markersData[0].Longitude),
                     zoom:5,
                     mapTypeId: google.maps.MapTypeId.ROADMAP
                 }

                 map = new google.maps.Map(document.getElementById("map_canvas"), mapOptions);
                 settingMarkers(markersData);

             }
            var start = document.getElementById("start").value;
            var end = new google.maps.LatLng(markersData.push(markers[markerDispSize+1]));
            var request = {
                origin:start,
                destination:end,
                travelMode: google.maps.DirectionsTravelMode.DRIVING
            };
          
            directionsService.route(request, function(response, status) {
                if (status == google.maps.DirectionsStatus.OK) {
                    directionsDisplay.setDirections(response);
                }
            });
          
            var endMarker = new google.maps.Marker({
                position: end,
                map: map,
            });
             
         } setInterval(pauseMarker,3000);

     }
     
     function settingMarkers(markersToSet) {
   
     for (i = 0; i < markersToSet.length; i++) {
             data = markersToSet[i];
             if (i == 0) {
                 var myLatlng = new google.maps.LatLng(data.Latitude, data.Longitude);
                 var image = 'images/YellowCar.png'
                 var marker = new google.maps.Marker({
                     position: myLatlng,
                     map: map,
                     icon: image
                 }); directionsDisplay.setMap(map);
             }


             (function (map) {
       
                     var myLatLng = new google.maps.LatLng(data.Latitude, data.Longitude);
                     var marker = new google.maps.Marker({
                         position: myLatLng,
                         map: map, icon: image
                     });
                     flightPlanArray.push(myLatLng);
                 drawFlightPlan(flightPlanArray);

                 /* Draw lines between all markers */
                 function drawFlightPlan(flightPlanCoordinates) {
                     var flightPath = new google.maps.Polyline({
                         path: flightPlanCoordinates,
                         geodesic: true,
                         strokeColor: "#ad1700",
                         strokeOpacity: 1.0,
                         strokeWeight: 2
                     });    
                      // To add the marker to the map, call setMap();
                     /* Bind the new flightPath to the map */
                     flightPath.setMap(map);
                     fitBounds(flightPlanCoordinates);
                 }
             })(map)
         }
     }
Vishwateja
Top achievements
Rank 1
 asked on 24 Jan 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?