Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
109 views
I recently downloaded the trial version of Telerik Rad Controls for ASP.NET AJAX.  Last week, I was happily developing with the Telerik toolbox in Visual Studio 2008, but this week when Tererik asked me to upgrade to their latest version I chose not to upgrade.  After that, the Toolbox went missing.  Now I can't even use the tools.  How can I get the toolbox back?
Erjan Gavalji
Telerik team
 answered on 12 Oct 2011
9 answers
845 views
I'm wondering why RadInput only exposes one event for key presses? It seems like it should mirror the functionality of other events. Namely, it seems like there should be two events - OnKeyPressing (fires before new value is set and can be cancelled) and OnKeyPressed (fires after new value has been set).

I'm trying to implement a search box and I want the results to appear automatically as the user types into the RadTextBox. I can't use OnKeyPress because it doesn't fire when the backspace or delete keys are pressed. Even if it did, the value of the textbox hasn't been updated yet so it still wouldn't work. I need "OnKeyPressed" that fires any time any key is pressed and contains the new value of the input control.

Alternately, it might be nice if OnValueChanged actually fired when the value changed instead of when the control loses focus (isn't that what OnBlur is for?).
Vasil
Telerik team
 answered on 12 Oct 2011
1 answer
117 views

I have encountered a very strange problem applying a custom skin to a group of RadDatePickers.

Here is my mark up that causes the error.

<body>
    <form id="form1" runat="server">
        <div>
            <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
            <table>
                <tr>
                    <td><telerik:RadDatePicker ID="RadDatePicker1" runat="server" Width="100" Skin="CKCRadSkin" EnableEmbeddedBaseStylesheet="false" EnableEmbeddedSkins="false"></telerik:RadDatePicker></td>
                    <td><telerik:RadDatePicker ID="RadDatePicker2" runat="server" Width="100" Skin="CKCRadSkin" EnableEmbeddedBaseStylesheet="false" EnableEmbeddedSkins="false"></telerik:RadDatePicker></td>
                    <td><telerik:RadDatePicker ID="RadDatePicker3" runat="server" Width="100" Skin="CKCRadSkin" EnableEmbeddedBaseStylesheet="false" EnableEmbeddedSkins="false"></telerik:RadDatePicker></td>
                    <td><telerik:RadDatePicker ID="RadDatePicker4" runat="server" Width="100" Skin="CKCRadSkin" EnableEmbeddedBaseStylesheet="false" EnableEmbeddedSkins="false"></telerik:RadDatePicker></td>
                </tr>
            </table>
        </div>
    </form>
</body>

Looks simple enough but does not render correctly

Error

What is bizarre about this error, is that if I remove the skin related code from ANY ONE of the controls, they all work correctly again.

In this example I have removed the code from the second RadDatePicker.

<body>
    <form id="form1" runat="server">
        <div>
            <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
            <table>
                <tr>
                    <td><telerik:RadDatePicker ID="RadDatePicker1" runat="server" Width="100" Skin="CKCRadSkin" EnableEmbeddedBaseStylesheet="false" EnableEmbeddedSkins="false"></telerik:RadDatePicker></td>
                    <td><telerik:RadDatePicker ID="RadDatePicker2" runat="server" Width="100"></telerik:RadDatePicker></td>
                    <td><telerik:RadDatePicker ID="RadDatePicker3" runat="server" Width="100" Skin="CKCRadSkin" EnableEmbeddedBaseStylesheet="false" EnableEmbeddedSkins="false"></telerik:RadDatePicker></td>
                    <td><telerik:RadDatePicker ID="RadDatePicker4" runat="server" Width="100" Skin="CKCRadSkin" EnableEmbeddedBaseStylesheet="false" EnableEmbeddedSkins="false"></telerik:RadDatePicker></td>
                </tr>
            </table>
        </div>
    </form>
</body>

Running this code results in this image

Image 2

LIke I said above, I can remove that skins code from any one of the rows, and they will all work again.

This is one of the more bizarre errors I have seen in ages. Is this a bug of the RadDatePicker?. Is there another way to apply the skins that might not result in the error?



Galin
Telerik team
 answered on 12 Oct 2011
1 answer
147 views
I am writing to ask if it is possible to add the Futura font type for the Rad Button control;

Working with the Rad Button, and the Font-Names dropdown list - I did not locate Futura as a built-in Font-Name option;

Any insight is appreciated;

Best regards - Rob
Kevin
Top achievements
Rank 2
 answered on 12 Oct 2011
1 answer
130 views
I'm using radGrid and a xmlhttppanel,with in the xmlhttppanel i have some grids(to display project details) and a raddatetimepicker,radcombobox.When i login,the main grid displays all projects and when i select a gridrow the particular project details will be displayed in grids undertabs and the due date , status are displayed in datetimepicker and combobox respectively.when  change the status(in combobox) of my project and click a update button, the btnUpdate_Click has to update the database.after updating when i click combobox it works fine,but if i select any control other than the combobox,the values in combobox not popup,i mean no dropdown displaying.

Default.aspx:
 <telerik:RadGrid ID="RadGrid1" runat="server" >
   <ClientEvents OnRowSelected="rowSelected"></ClientEvents>
   <MasterTableView Width="100%" CommandItemDisplay="Top" ClientDataKeyNames="ProjectId"  DataKeyNames="ProjectId">
    </Mastertabkeview>
  </telerik:radgrid>

<telerik:RadXmlHttpPanel ID="RadXmlHttpPanel1" EnableClientScriptEvaluation="true"
                                    runat="server" OnServiceRequest="XmlHttpPanel_ServiceRequest" RenderMode="Block"
                                    Width="750px">
  <table><tr><td>
        <telerik:RadComboBox ID="cmbStatus" runat="server">    </telerik:RadComboBox>  
    </td>
  <td><telerik:RadDateTimePicker runat="server" ID="dtDuedate" Culture="en-US" FocusedDate=""   MinDate="">                                                                                                                 <TimeView CellSpacing="-1" runat="server">
                                                                </TimeView>
                                                                <TimePopupButton HoverImageUrl="" ImageUrl="" Visible="False" />
                                                                <Calendar UseColumnHeadersAsSelectors="False" UseRowHeadersAsSelectors="False"                                                                                                                ViewSelectorText="x" runat="server">
                                                                </Calendar>
                                                                <DateInput DateFormat="M/d/yyyy" DisplayDateFormat="M/d/yyyy" runat="server">
                                                                </DateInput>
                                                                <DatePopupButton HoverImageUrl="" ImageUrl="" />
                                                            </telerik:RadDateTimePicker>
  </td><td><asp:Button ID="btnUpdate" runat="server" Text="Update" OnClick="btnUpdate_Click"  /> </td></tr>
*******grids here**********
</table>
</telerik:xmlhttppanel>

Default.aspx.cs:
protected void Page_Load(object sender, EventArgs e)
    {
        ProTrakEntities objEntity = new ProTrakEntities();
        if (Page.IsPostBack)
        {
            if (Session["ProjectId"] != null)
            { 
               Control cause = GetPostBackControl(Page);
                    if (cause != null)
                    {
                        if (cause.ClientID != "btnUpdate")
                        {
                            ProTrakEntities ProEntity = new ProTrakEntities();
                            var Status = (from type in ProEntity.ProjectStatus select type).ToList();
                            cmbStatus.DataSource = Status;
                            cmbStatus.DataValueField = "StatusId";
                            cmbStatus.DataTextField = "Status";
                            cmbStatus.DataBind();
                            cmbStatus.SelectedValue = Query.StatusId.ToString();
                        }
                    }
                }
             }
       if (!Page.IsPostBack)
        {
           if (Session["ProjectId"] != null)
                {                 
                        ProTrakEntities ProEntity = new ProTrakEntities();
                        var Status = (from type in ProEntity.ProjectStatus select type).ToList();
                        cmbStatus.DataSource = Status;
                        cmbStatus.DataValueField = "StatusId";
                        cmbStatus.DataTextField = "Status";
                        cmbStatus.DataBind();
                        cmbStatus.SelectedValue = Query.StatusId.ToString(); 
                 }
           }
        }
     public static Control GetPostBackControl(Page page)
    {
        Control postbackControlInstance=null;
        string postbackControlName = page.Request.Params.Get("__EVENTTARGET");
        if (postbackControlName != null && postbackControlName != string.Empty)
        {
            postbackControlInstance = page.FindControl(postbackControlName);
        }
        else
        {
            for (int i = 0; i < page.Request.Form.Keys.Count; i++)
            {
                postbackControlInstance = page.FindControl(page.Request.Form.Keys[i]);
                if (postbackControlInstance is System.Web.UI.WebControls.Button)
                {
                    return postbackControlInstance;
                }
            }
        }
       return postbackControlInstance;
    }
   protected void XmlHttpPanel_ServiceRequest(object sender, RadXmlHttpPanelEventArgs e)
    {
        string val = e.Value;
        int projectId = Convert.ToInt32(val);
        projectid = projectId;
        Session["ProjectId"] = val;
      ***binding grids based on  projectid***
          var Status = (from type in objEntity.ProjectStatus select type).ToList();
         var Query = (from p in objEntity.Projects where p.ProjectId == projectId select p).First();
           cmbStatus.DataSource = Status;
           cmbStatus.DataValueField = "StatusId";
           cmbStatus.DataTextField = "Status";
           cmbStatus.DataBind();
           cmbStatus.SelectedValue = Query.StatusId.ToString();   
     }  
   protected void btnUpdate_Click(object sender, EventArgs e)
    {
        if (Session["ProjectId"] != null)
        {
            int ProjectId = Convert.ToInt32(Session["ProjectId"]);
            ProTrakEntities objEntity = new ProTrakEntities();
            Project objProject = (from p in objEntity.Projects where p.ProjectId == ProjectId select p).First();
            DateTime dueDate = Convert.ToDateTime(dtDuedate.DbSelectedDate.ToString());
            objProject.DueDate = dueDate;
            
            objProject.StatusId = Convert.ToInt32(cmbStatus.SelectedValue);
            objEntity.SaveChanges();    
            Session["Statusid"] = Convert.ToInt32(cmbStatus.SelectedValue);        
            Response.Redirect("Default.aspx");
        }
    }
 
I'm using "Response.Redirect("Default.aspx")" to display the updatedvalue of status.After updating when i click a combobox it displays popup,but when select the main grid row to display the details of another project,the popup not woking and combobox diplaying the previous project status.If i go fro any action the value of combobox not changing.but if i refresh the page it displays the popup and updating working fine if click anything again same problem no popup.So if want to update status each and every time i need to refresh but this is not the way.

Thanks and Regards,
Tirumalesh
                 
                  
Dimitar Terziev
Telerik team
 answered on 12 Oct 2011
3 answers
87 views
It's quite interessting.
I'm feeding the FontNames property with (editable) fontnames like "Arial,sans-serif" ( Editor.FontNames.Add() ).
Now we have encountered that fontnames with numbers like "Univers LT 45 Light,sans-serif" causes problems.
You can select it and everything seems fine.
But if you select HTML-View it disappears and looks like this: "<span>test</span>".
Remove the number ("Univers LT Light,sans-serif") and it works.

Luckily I found a workaround: 'Univers LT Light',sans-serif
Using single quotes around the name and it seems to work.

Is there another workaround/hack for this issue?
This only happens in Firefox (3.6.11), in IE it's fine.

Rumen
Telerik team
 answered on 12 Oct 2011
3 answers
120 views
The pop up is set to visible true on the button click. The size of the pop up has been explisitly set as shown below.
<telerik:RadWindowManager ID="RadWindowManager1" VisibleStatusbar="false" runat="server" Modal="True" Visible="False"
  
<Windows>
  
<telerik:RadWindow ID="RadWindow1" runat="server" style="display:none;" VisibleOnPageLoad="true"
  
NavigateUrl="PopUp_PDFParameters.aspx" OnClientShow="UseRadWindow">
  
</telerik:RadWindow>
  
</Windows>
  
</telerik:RadWindowManager>

However in Mozilla when the pop up appears on button click it appears to be stretched in size. This happens in case of Mozilla only and happens only the first time the pop up opens.

Also ,

I have found that  when we set the RadWindow’s property (VisibleTitlebar="false”) the issues gets solved.

This is working fine in IE 6,7 and 8 .
Let me know what can be the issue.

Marin Bratanov
Telerik team
 answered on 12 Oct 2011
1 answer
144 views
I am using Rad Controls (version 2001.1.413.35). I have a RadAjaxPanel that has an ASP panel control in it. This panel gets hidden/displayed when a check box is selected/unselected. In the panel I have a ASP label control that has a tool tip associated with it. The process of hiding the panel and displaying it again in the RadAjaxPanel makes the tool tip not work any longer. This makes sense since it disappears from the DOM. 

Anyone know the proper way to re-associate/re-activate the tool tip with the label control after the RadAjaxPanel updates? 

Thanks in advance,

Robert
Marin Bratanov
Telerik team
 answered on 12 Oct 2011
2 answers
95 views
Hi
I have used ComboBox control called stocksCombo  in Radgrid
In stocks ComboBox i have used another two ComboBoxes called ProductsCombo  and ItemsCombo in Header Templete
When i clicked the ProductsCombo or ItemsCombo these dropdown lists are hiding behind the stocksCombo control ,
 Is there any way to get these two combos(ProductCombo and ItemsCombo) in front of the StocksCombo

Regards
Kumar
kiran
Top achievements
Rank 1
 answered on 12 Oct 2011
1 answer
120 views
Hi,
I am using Rad Component Version 2011.2.906.35
I want to open window in parent from another window
But this code don't work at Fire Fox 7.0
And also work fine in IE 9
<script language ="javascript" type ="text/javascript" >  
    function GetRadWindow()     
        {     
            var oWindow = null;     
            if (window.radWindow)
                oWindow = window.RadWindow; //Will work in Moz in all cases, including clasic dialog     
            else if (window.frameElement.radWindow)
                oWindow = window.frameElement.radWindow;//IE (and Moz as well)     
            return oWindow;
        }
 
        function opwn_window_2() {
            var oBrowserWnd = GetRadWindow().BrowserWindow;
            oBrowserWnd.radopen("http://www.google.com", "RadWindow2");
             
        }
        </script>
Princy
Top achievements
Rank 2
 answered on 12 Oct 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?