Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
116 views
hi i am using radtabstrip control for menu i want to open drag and drop functionality for rad tabs when i drag one tab in to place of another tab it will auto replace from another tab i want to do this work from client side can you help me for solve my problem
Thank you
Shinu
Top achievements
Rank 2
 answered on 12 Oct 2011
4 answers
456 views
HI,
  I am getting problem with transfering the item from source to destinaion listbox. when transferring the data then source listbox lost the item while destination show blank row. i am using following code

 

<telerik:RadListBox ID="lstSourceCity" runat="server" AllowTransfer="true" EnableDragAndDrop="false"

 

 

 

Height="205px" TransferMode="Move" TransferToID="lstDestinationCity" Width="350px"

 

 

 

SelectionMode="Multiple" CssClass="Align" OnItemDataBound="lstSourceCity_ItemDataBound" OnTransferred="lstSourceCity_Transferred" AutoPostBackOnTransfer="true">

 

 

 

<ItemTemplate>

 

 

 

<asp:Label ID="lblCity" runat="server" Text='<%# Eval("CityName") %>'></asp:Label>

 

 

 

</ItemTemplate>

 

 

 

</telerik:RadListBox>

 

 

 

<telerik:RadListBox ID="lstDestinationCity" runat="server" Height="205px" Width="350px"

 

 

 

CssClass="Align" OnItemDataBound="lstDestinationCity_ItemDataBound">

 

 

 

<ItemTemplate>

 

 

 

<asp:CheckBox ID="chkIsFeatured" runat="server" />

 

 

 

<asp:Label ID="lblDestCity" runat="server" Text='<%# Eval("CityName") %>'></asp:Label>

 

 

 

</ItemTemplate>

 

 

 

</telerik:RadListBox>

 

 

protected void lstSourceCity_Transferred(object sender, RadListBoxTransferredEventArgs e)
{     

 

 

foreach (RadListBoxItem listBoxItem in e.Items)

 

{

listBoxItem.DataBind();

}

 I am searching the soluntion for last couple of day but did not find exact solution.

 

 

 

 

Dimitar Terziev
Telerik team
 answered on 12 Oct 2011
2 answers
187 views
Hi, I am using XmlDataSource with RadGrid. I need to use Column's Aggregate functionality to show sum (in footer) in one column. As datasource is XML, grid considers I have all string data even though I have numbers in the column. How can I use Sum Aggregate functionality with Xml data source?

code sample:
<asp:XmlDataSource ID="XmlDataSource1" runat="server" DataFile="~/App_Data/data.xml"  XPath="/root/Row"></asp:XmlDataSource>
<telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="XmlDataSource1" ShowFooter="true">
    <MasterTableView AutoGenerateColumns="False" DataSourceID="XmlDataSource1">
        <Columns>
          <telerik:GridBoundColumn DataField="col1" HeaderText="Product" SortExpression="col1" Aggregate="Count" ...

Thank you,
Amit Vaishnav
Amit
Top achievements
Rank 1
 answered on 12 Oct 2011
7 answers
131 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
919 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
162 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
180 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
165 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
124 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
151 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?