Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
156 views

var get​Cars () {
  var serviceUrl = "URL your services";
  var  paramData = {
   
  };

  var req = $.ajax({
    type: 'POST',
    url: serviceUrl,
    contentType: 'application/json; charset=utf-8',

    data: JSON.stringify(paramData ),
    dataType: 'Json',
  });
  req.then(
      function () {
        _console.log("Cars->get​Cars success") : null;
      },
      function () {
        console.log("Cars->getCars failed") : null;
      }
  );
  return req;
}

 

var loadCars = function () {
    var _cboYourControl = $telerik.findComboBox("_cboYourControl");
_cboYourControl .clearItems();
    var req = get​Cars();
    req.success(function (​cars) {
        for (var i = 0; i < ​cars.length; i++) {
            var ​car = ​cars[i];
            var comboItem = new Telerik.Web.UI.RadComboBoxItem();
            comboItem.set_text(​car.​Name);
            comboItem.set_value(car.ID);
            _cboYourControl .trackChanges();
            _cboYourControl .get_items().add(comboItem);
            _cboYourControl .commitChanges();

        }

    });
}

Cesar
Top achievements
Rank 1
 asked on 30 Jul 2015
0 answers
307 views

We have discovered a problem in the RadPivotGrid appearance in various scenarios in Q2 2015 SP1 release. The data content does not scroll correctly and the issue can be fixed with the following CSS rule

.RadPivotGrid .rpgContentZoneDiv {
    overflow: hidden;
}

 

Nevertheless, it will be included in the next internal build on 4th of August 2015 and upcoming SP2 release.​

Telerik Admin
Top achievements
Rank 1
Iron
 asked on 30 Jul 2015
1 answer
282 views

I am trying to format the numeric text box so that it allows up to 8 decimal places and will not show trailing 0's. However this is a currency field and we would only like to show trailing 0's for the first two decimal places ( 20.00 we want instead of 20). I cannot seem to satisfy all of these requirements with the numeric text box control. This is what I have.

<telerik:RadNumericTextBox runat="server" EnabledStyle-HorizontalAlign="Right" ID="rtbPrice" NumberFormat-AllowRounding="False" NumberFormat-DecimalDigits="8" />​

 This will remove trailing 0's but will leave 20.00 showing as 20. Is there a way to do this?

Viktor Tachev
Telerik team
 answered on 30 Jul 2015
4 answers
160 views
Hi,

I can't stand the extra space that the new mechanism forces on a new line and have had tons of complaints from my users.  Is there a way to globally set NewLineMode="Br"?

Regards

Jon
Harish
Top achievements
Rank 1
 answered on 30 Jul 2015
1 answer
65 views

hello,

i am exporting grid data to excel,pdf,csv......, i just wanna to add description with multi line as well in different format on the top of the exported file, could any one give any suggestion regarding this as i am unable to find any solution from anywhere .

 

 

Thanks

Viktor Tachev
Telerik team
 answered on 30 Jul 2015
4 answers
958 views
I am exporting a radgrid to Excel.  The columns are exporting, but the data is formatted incorrectly.  I am using OnExcelMLExportStylesCreated.  I would like to format a number column to include commas in the number (ex. 1,000) but with no decimals.  What am I doing wrong?  I've tried every number format type.

Also, how do I format a date field to be MM/dd?

Thanks in advance.

protected void grdOpenItemsByJurisdiction_ExcelMLExportStylesCreated(object source, GridExportExcelMLStyleCreatedArgs e)
        {
            StyleElement myStyle = new StyleElement("myCustomStyle");
           
            myStyle.NumberFormat.FormatType =  NumberFormatType.GeneralNumber;
            myStyle.NumberFormat.Attributes["ss:Format"] = "0";
            myStyle.FontStyle.Bold = true;
            e.Styles.Add(myStyle);
        }

protected void grdWorkItemsJurisdiction_ExcelMLExportRowCreated(object source, GridExportExcelMLRowCreatedArgs e)
        {
 
            e.Row.Cells.GetCellByName("TotalItems").StyleValue = "myCustomStyle";
   
        }
Eyup
Telerik team
 answered on 30 Jul 2015
2 answers
278 views

I've read this thread...

http://www.telerik.com/forums/problem-with-radeditor-insertion-point-jumping-to-end-of-line?actionMode=replyThread

...but I ​didn't want to hijack it so I started a new thread.

I've noticed the cursor jumping to the end too and I can recreate this on the default editor...

http://demos.telerik.com/aspnet-ajax/editor/examples/overview/defaultcs.aspx

in IE 11 or Chrome 43.0.2357.134 m, but not in Firefox 39.0

Demo:
https://drive.google.com/file/d/0By6eYrB-wqpFZEYzZklhUkUyV2M/view?usp=sharing​

Note: It would be so much easier if you allowed .txt files to be attached (just pictures?? draconian)
Download the source text if you need it and open in Notepad and copy from there: https://drive.google.com/file/d/0By6eYrB-wqpFc0dWa3hWTWRBbWs/view?usp=sharing​

 

kbteam
Top achievements
Rank 1
 answered on 30 Jul 2015
1 answer
114 views

Hi All,

Is there any clientside properties that can  be changed in javascript for this control?

I want to be able to adjust the image to display the full image when a user clicks on it.

I have added an attribute onclick which fires javascript when someone clicks on it, and can get the control. However, I cannot figure out how to set either the Height property, or the style property. Style would be easiest so I can just modify the max-height.

 

Thanks,

Will

Konstantin Dikov
Telerik team
 answered on 30 Jul 2015
6 answers
347 views

Is there a way to have the control scale the image to fit the width of the tile? I would like to show images in the tiles that are much larger than the standard widths of the tiles and everything I try ends up with the image clipped to fit. Since I don't always control the image shown, I need the image to scale down and fit in the tile. Can you show me how to do this? I am databinding with a list(of T). Thanks.

<telerik:RadTileList runat="server" ID="RadTileList1" AppendDataBoundItems="true" TileRows="4">
<DataBindings>
    <CommonTileBinding TileType="RadImageTile" Shape="Wide" DataTitleTextField="TileTexts" DataNavigateUrlField="tileNavUrls" />
    <ImageAndTextTileBinding DataTextField="TileTexts" DataImageUrlField="TileImagePaths" />
</DataBindings>
<Groups>
<telerik:TileGroup Name="Featured Vehicles">
<telerik:RadContentTemplateTile runat="server" Shape="Square" CssClass="noHover">
<ContentTemplate>
<div class="groupHeadingTitle">
<div class="innerTitle">Featured<br />
Vehicles</div>
</div>
</ContentTemplate>
</telerik:RadContentTemplateTile>
</telerik:TileGroup>
</Groups>
</telerik:RadTileList>

Vessy
Telerik team
 answered on 30 Jul 2015
1 answer
74 views

I am here after long time and I remembered, few years ago, Telerik was offering to buy single component from suite. I only need ASP.NET AJAX RadGrid control for my application. Is it possible to buy only this control?

 

Thanks,

Konstantin Dikov
Telerik team
 answered on 30 Jul 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?