Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
982 views
Hello,

I have a RadDropDownList that I would like to enlarge because it should be displayed on a tablet. How can I set a height on the component? 

If I set the height to 50px in the css class, nothing changes. Is there a property to change?


Thx
Princy
Top achievements
Rank 2
 answered on 11 Aug 2014
3 answers
286 views
I am using Telerik 2014 version. I checked, radchart can export only jpg or png. but i want export the chart to Excel as well as PDF with some other data.
Please let me know how to do.... 


Thanks in advance.
Princy
Top achievements
Rank 2
 answered on 11 Aug 2014
1 answer
985 views
I am trying to convert a gridview to a radgrid.

One issue I am having is to get certain rows to highlight with the color yellow when it matches the value of a specific column.

The grid view code works fine. The radgrid does not.
Radgrid is using a skin (web blue) so I am thinking that may be the issue.

Any help is appreciated.

 protected void GridView_RowDataBound(object sender, GridViewRowEventArgs e)
    {
        if (e.Row.RowType == DataControlRowType.DataRow)
        {
            // determine the value of the ViewableByClient field
            bool ViewableByClient =
             Convert.ToBoolean(DataBinder.Eval(e.Row.DataItem,
             "ViewableByClient"));
            if (ViewableByClient)
                // color the background of the row yellow
                e.Row.BackColor = Color.Yellow;
        }
    }

protected void RadGrid3_RowDataBound(object sender, GridViewRowEventArgs e)
    {
        if (e.Row.RowType == DataControlRowType.DataRow)
        {
            // determine the value of the ViewableByClient field
            bool ViewableByClient =
             Convert.ToBoolean(DataBinder.Eval(e.Row.DataItem,
             "ViewableByClient"));
            if (ViewableByClient)
                // color the background of the row yellow
                e.Row.BackColor = Color.Yellow;
        }
    }
Princy
Top achievements
Rank 2
 answered on 11 Aug 2014
1 answer
201 views
Hi,

We are using  “RadAsyncUpload” to upload the files. We are restricted files selection types by specifying AllowedFileExtensions=".zip,.rar".
Its working as expected but  when we try to open the file selection dialog it list all the files in XP Operating system  (IE8) .

Controls Version details.
Telerik.Web.UI
FileVersion:2011.1.519.40
ProductVersion:2001.1.519.40

Code:
 <telerik:RadAsyncUpload ID="PatchFileUploadControl" runat="server" MaxFileInputsCount="1"
   OnClientFileSelected="FileSelected" OnClientFilesUploaded="FileUploaded" AllowedFileExtensions=".zip,.rar">
</telerik:RadAsyncUpload>

Please let  us know any changes to be done.




Princy
Top achievements
Rank 2
 answered on 11 Aug 2014
1 answer
912 views
Good Afternoon,
in my html  I have a RadComboBox:

<telerik:RadComboBox ID="ddlDurationofAssign" runat="server" Width="130px" Font-Size="Small" CssClass="txtinput1" AutoPostBack="true" TabIndex="5" OnSelectedIndexChanged="ddlDurationofAssign_SelectedIndexChanged" OnClientFocus="ClientFocus" OnClientBlur="ClientBlur" >
<Items>
<telerik:RadComboBoxItem Text="SELECT TERM" Value="E" Selected="true" />
<telerik:RadComboBoxItem Text="Fall" Value="F" />
<telerik:RadComboBoxItem Text="Spring" Value="S" />
<telerik:RadComboBoxItem Text="Full Term" Value="W" />
</Items>
</telerik:RadComboBox>

On Page Load I would like to  hide "Full Term" item based on certain criteria. How can I do that?

Thanks so much for your help.
Shinu
Top achievements
Rank 2
 answered on 11 Aug 2014
9 answers
372 views
Hi,

I am trying to add a RadComboBox to my ASP.NET page using the ODataDataSource.

When I do it the (IMHO) prefered way like this:
<telerik:RadODataDataSource runat="server" ID="ODataDataSourceIBQueue">
        <Transport Read-DataType="JSONP">
            <Read Url="http://localhost/NiceWebApp/InsadBlackBoxModelService.svc/" />
        </Transport>
        <Schema>
            <telerik:DataModel ModelID="IBQueue" Set="IBQueues">
                <telerik:DataModelField FieldName="Code" />
                <telerik:DataModelField FieldName="Description" />
                <telerik:DataModelField FieldName="Notes" />
                <telerik:DataModelField FieldName="QueueID" />
                <telerik:DataModelField FieldName="QueueType" />
            </telerik:DataModel>
        </Schema>
    </telerik:RadODataDataSource>
 
    <telerik:RadComboBox runat="server" ID="RadComboBox1" EnableLoadOnDemand="true"
        DataModelID="IBQueue"
        DataTextField="Code"
        DataValueField="QueueID"
        ODataDataSourceID="ODataDataSourceIBQueue">
    </telerik:RadComboBox>

I get the message 'DataSource with id ODataDataSourceIBQueue was not found on this page'

 When I add the OData settings inside the RadComboBox, like this:
<telerik:RadComboBox runat="server" ID="RadComboBox2" EnableLoadOnDemand="true">
        <WebServiceSettings Path="http://localhost/NiceWebApp/InsadBlackBoxModelService.svc">
            <ODataSettings ResponseType="JSONP">
                <Entities>
                    <telerik:ODataEntityType Name="IBQueue"
                                             DataValueField="QueueID"
                                             DataTextField="Code" />
                </Entities>
                <EntityContainer>
                    <telerik:ODataEntitySet EntityType="IBQueue"
                                            Name="IBQueues" />
                </EntityContainer>
            </ODataSettings>
        </WebServiceSettings>
    </telerik:RadComboBox>

It works as expected.

I have the same problem with the RadTreeView..

Can anyone advise on this? Or might it be a bug?

I am using VS2012, .NET 4.5, Telerik RadControls for ASP.NET AJAX 2012 Q2 Version 2012.2.815.40

Regards,

Insad

EDIT: Copy/Paste issue in samples corrected
احمد
Top achievements
Rank 1
 answered on 09 Aug 2014
2 answers
136 views
Hi all
I have noticed following behavior in our SharePoint pages.
When RAD editor web part is added to a zone, I am able to edit the content within the control.
After I save the page, check in and then edit the page, I am unable to edit the content. I must add that this happens only in Internet Explorer. Upon looking into the mark up of the page, I noticed that the nearest <div > is set with unselectable=on

ex:

<div id="ctl00_m_g_de8edd76_8f8a_4459_a956_04989983b73e_ctl00_contentDivclass="reContentArea reContentAreaTogglecontenteditable="truestyle="position: relative; height: 211px;unselectable="on"></div>

Since the div is unselectable, I am not able to get focus in the content editing area.

 
Does anyone know why IE injects unselectable="on" into the content area.
Thanks in advance

Victor
Top achievements
Rank 1
 answered on 09 Aug 2014
0 answers
45 views
I have done this in the initial work file and everything went fine. After i integrate this into the project, this error ->  "System.NullReferenceException: Object reference not set to an instance of an object." appear.

Stack Trace: 

[NullReferenceException: Object reference not set to an instance of an object.]
UltimateFurniture.CustomerReg.btnConfirm_Click1(Object sender, EventArgs e) in C:\Users\Ang yong xin\Documents\ecommerce application project\UltimateFurniture backup(6)\UltimateFurniture\UltimateFurniture\Register.aspx.cs:85
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +9752554
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +196
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +35
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1724
Lock
Top achievements
Rank 1
 asked on 08 Aug 2014
2 answers
462 views
I have a grid that currently contains a number of <GridHyperLinkColumn>'s in it.

I found that I needed to have a multi-level header, and so I am now wanting to include the <GridHyperLinkColumn>'s inside of the <ItemTemplate> area of  a <GridTemplateColumn>.

It appears that this is not possible and so my question is how to get the same functionality as I had with the <GridHyperLinkColumn> into the <ItemTemplate> of <GridTemplateColumn>?

Thanks!
Dave
Top achievements
Rank 1
 answered on 08 Aug 2014
6 answers
451 views
We recently upgraded to the Q1 2014 release and are now having problem with HTML tags not being rendered in the text element of the drop down list control.  We have a custom control derived from RadDropDownList that renders labels inside of the text element (ex. "<b>Field1:</b> myvalue").  While I understand this probably isn't officially supported, it did work in the previous release we used (Q2 2013).

Oddly enough, the HTML tags do render when the page initially loads, however, when a new item is selected (which takes the item text and prepends the label and uses the set_text method to update the text of the item) it is showing the tags after HTML encoding in the text element.  The HTML is rendered in the item element as expected.

I traced the issue down to the _updateTextElement method on the client side object and its call to H.text to set the text of the text element.  I played around with replacing that with my own method which uses H.html and it seems to work.  I also had to change the variable "a" to "$telerik.$".

I'm curious to know whether there is a better approach to this or whether I should use the override method assuming that it works and there are no issues with it.
        
Telerik.Web.UI.RadDropDownList.prototype._updateTextElement = function (I) {
    var H = $telerik.$(this.get_textElement());
    if (I) {
        H.html(I);
        H.removeClass(i);
    } else {
        H.html(this.get_defaultMessage());
        H.addClass(i);
    }
        this.get_element().value = I;
};

Oscar Emiliano
Top achievements
Rank 1
 answered on 08 Aug 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?