Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
145 views
Hello,

I would like to ask you the following:

1. Is there a way to hide the input textbox field of RadAsyncUpload control?
2. Is there a way to change the text of the button "Select" of RadAsyncUpload control?



Thanks in advance!

Yana
Telerik team
 answered on 25 Oct 2010
6 answers
208 views
Hi,

I have a deployment of the RadEditor in SPS2007, where the RadEditor control needs to be no wider than 480px, and display all of the toolbar icons.

In previous versions of the RadEditor there was a property of the ConfigFile.xml called 'ToolsOnPage', which could be set to false, to allow the 'ToolsHeight' and 'ToolsWidth' properties to be configured (in fact there is still an old broken link to this property on the ToolsHeight page see: http://www.telerik.com/help/aspnet/editor/radeditor-telerik.webcontrols.radeditor-toolsheight.html ). 

However, without the ToolsOnPage property, there doesn't seem to be an obvious way to reduce the width of the control below c. 660px, without icons on the toolbar becoming obscured. 

So, is there a simple way to increase the number of rows that the toolbar icons are displayed over (so that I can reduce the radeditor control's width back to 480px)?


NB, I haven't changed the default configuration in any of the files other than the ConfigFile.xml, which is currently set with the following:

<configuration>
   <property name="ToolbarMode">ShowOnFocus</property>
  <property name="Skin">Vista</property>
  <property name="Height">300px</property>
  <property name="Width">660px</property>
  <property name="DialogHandlerUrl">~/Telerik.Web.UI.DialogHandler.axd</property>
</configuration>

Regards,

Rob
Robert
Top achievements
Rank 1
 answered on 25 Oct 2010
1 answer
155 views
I've noticed that while I can force a style onto a target control using Javascript, such as changing the border or the color of the text, I cannot force a new class onto a target control. The commands simply don't seem to work. Is there a way to do this? I'm looking at doing something like the code below, which makes extensive use of jQuery.

$("input[Validators]").each(function() {
    var validators = $(this).attr("Validators");
    if (validators) {
        var isValid = true;
        $(validators).each(function() {
            if (this.isvalid !== true) isValid = false;
        });
 
        //This works:
        var strColor=isValid?"#fff":"#cc0000";
        $(this).css("color", strColor);
 
        //This does not:
        if (isValid) $(this).removeClass("ValidationError");
        else $(this).addClass("ValidationError");
    }
});

It appears that the RadInputManager control might have some way of controlling or maintaining the classes applied to each field, and I might need a way to thwart it. If there were an official, documented way to do this, I'd be glad to use that, but I did search and had no luck finding one - perhaps my documentation's a bit out of date, but a site search didn't turn anything up either.
Dimo
Telerik team
 answered on 25 Oct 2010
1 answer
121 views
Hi,
I am facing the following problem:

Visual Studio Version : 2008.

 

Editor Version : 2009.02.0826.35

 

Issue Description : Content inside RAD Editor does not get affected by selecting ZOOM level from the toolbar in Mozilla Firefox which works well in IE 7 & 8. For that please find attachment [zoom.png] in which you can clearly rectify the problem.

Kindly guide asap for the same.

Thanks.

Rumen
Telerik team
 answered on 25 Oct 2010
1 answer
96 views
Hi,

I have "main.aspx" page with one gridview and telerik rad window(with radwindowmanager) "radwind1"[No content in radwind1 just iframe]. When i click the linkbutton in a gridview "radwind1" popup will open another page "subpage.aspx" using iframe. Once i open the "subpage.aspx" there is one task assign button in it. Once i click that button, it  will open another rad window (without rad window manager ) "radwin2". In that radwind2 i have couple of dropdownlist with onselectchanged events. I can open this radwind2 by saying "visibleonpageload = true". But here the problem is for each and every selection changed event the radwin2 is closing and opening it. even when i close the radwind2 using cancel button click, it is closing and opening again.(Because of "viewonpageload = true" i guess). Now my question is how to open radwin2 using javascript. I tried the way you showed in below link. 

http://www.telerik.com/help/aspnet-ajax/window_programmingopeningfromwithin.html

But it didn't work. So Can anybody help me how to fix this. I can post the code if you want.

Thanks In Advance.
Georgi Tunev
Telerik team
 answered on 25 Oct 2010
3 answers
183 views
Hi,

We use related combos similar to the way it has been shown at the following link.
http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/multiplecomboboxes/defaultcs.aspx

We also have RadAjaxManager present on each page.

Now, I initiate javascript call "myCombo.requestItems(text, null)" . This performs perfectly and provide me updated combo.

But part from above process , my other requirement is setting up a hidden field on server side inside myCombo_ItemsRequested(object o , eventargs e) {}. For this I have tried,

1) setting hidden field directly , but when I check its value in javascript function OnClientsideItemsRequested() of same myCombo, then the value is not updated with server change. I also have this hidden field as updated control items of myCombo in
Rad ajax manager.

2) Thinking that this request will only update myCombo and not any other fields / controls. Instead of updating hidden field , I added an attribute to mycombo on server side and then check that attribute on client side. But I was also not able to fetch that attribute too on client side.

Function initiated from : myCombo.requestItems(text, null);
Server side function : myCombo_ItemsRequested(...)
Client side function: myComboOnItemsRequested(...)

Please suggest a way by which I can process any field or same combo in server side and use the updated value on client side.

Let me know if any other info is required.,

Thanks
Simon
Telerik team
 answered on 25 Oct 2010
1 answer
94 views
Problem: Loading of RadAjax is not working.

Scenario: I have two user controls in a Page. On click of button in UserControl1, I am updating the fields in UserControl2 and on click of button in UserControl2, I am populating a grid in Page. There is no MasterPage in this. I am loading this page in IFrame of other page which doesn't have any telerik controls.
Maria Ilieva
Telerik team
 answered on 25 Oct 2010
3 answers
143 views
I have the following Multicolumn Combobox on my page:
<telerik:RadComboBox ID="ddlLineNum" runat="server" DataValueField="all_line_id"
    DataTextField="line_number" Width="250px" Skin="Windows7" HighlightTemplatedItems="True"
    DropDownWidth="290px" AutoPostBack="True">
    <ItemTemplate>
        <table border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td style="width: 75px;">
                    <%#DataBinder.Eval(Container.DataItem, "line_number")%>
                </td>
                <td style="width: 200px; padding-left: 5px;">
                    <%#DataBinder.Eval(Container.DataItem, "line_description")%>
                </td>
            </tr>
        </table>
    </ItemTemplate>
</telerik:RadComboBox>

The 1st column contains a telephone number.  I would like to format it so it actually looks like one.  I figured I could do it in the _ItemDataBound event, but I can't quite figure it out?
Simon
Telerik team
 answered on 25 Oct 2010
11 answers
362 views
I have a RADComboBox thats populated from a database (there are 4 items).  when I select the dropdown, the actual dropdown menu appears at the top of my page and not underneath the combo box.  Can anyone tell me why this should be ?

<telerik:RadComboBox ID="RadComboBoxNarrativeTypes" runat="server"  
                        EnableItemCaching="True" EnableLoadOnDemand="False" 
                        Width="250px" 
                        Skin="Sunset" 
            onselectedindexchanged="RadComboBoxCategories_SelectedIndexChanged" 
            AutoPostBack="True">
                        <CollapseAnimation Duration="200" Type="OutQuint" />
                    </telerik:RadComboBox>    
Simon
Telerik team
 answered on 25 Oct 2010
3 answers
102 views

I'm creating my first Visual Web Part project with Visual Studio 2010 (C#). The purpose of this simple project is to become better aquainted with the RadGrid control. There are basically two parts to it:

1. Add RadGrid control and bind to datasource using C#. The RadGrid has an edit and delete column.

2. Add a RadTextBox control to display the captured content of a specific cell when I click on the update option when editing the record.

Part 1 is pretty straightforward and seems to work fine. Here is the code that I run upon page load:

private void bindGrid(RadGrid grid)
    {
        string qry = "SELECT Recipient, Email FROM Table1";
        SqlConnection conn = new SqlConnection(connection string);
        SqlCommand cmd = new SqlCommand(qry, conn);
        SqlDataAdapter adapter = new SqlDataAdapter(cmd);
        DataTable recipients = new DataTable();
            try
            {
                conn.Open();
                adapter.Fill(recipients);
            }
            catch (Exception ex)
            {
            }
            finally
            {
               grid.DataSource = recipients;
               grid.DataBind();
               conn.Close();
            }
    }

The problem is with part 2. When I click on edit then update I want to capture the value in that row for the column labeled "Recipient".
I try to do this with the following code:

protected void Update_Command(object sender, GridCommandEventArgs e)
  {
       
      if (e.Item is GridDataItem)
      {
          GridDataItem dataItem = e.Item as GridDataItem;
          RadTextBox1.Text = dataItem["recipient"].Text.ToString(); 
      }
      else if (e.Item is GridEditFormItem)
      {
      }
  }

Instead of getting the persons name displayed in the cell, all I get is "&nbsp"; I've tried this several different ways, even using
the NeedDataSource method. The result is always the same.

Out of curiousity I counted the columns in the RadGrid immediately after binding with RadGrid1.columns.count and get 0. So the RadGrid displays the data from the datasource properly on page load, but I can't seem to access any of that data.

I can't figure this out and any guidance would be greatly appreciated.


Tsvetoslav
Telerik team
 answered on 25 Oct 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?