Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
135 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
114 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
74 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
103 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
123 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
84 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
104 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
5 answers
479 views

 Hi,
    I need some help with this issue, I am trying to bind a Radcombobox with an itemtemplate in Codebehind. I am binding it in codebehind in the Grids ItemDataBound event because I need to pass in the producttypeID from the grid to the Editform RadCombobox and then I can display the different products for that product Type in the combo box, but I am getting errors like 'attribute is set to null or not an object' ? Can someone please point out what to do so I can pass in the ObjectdataSource select parameters and display this correctly? your helps appreciated!

 Here is the code
ASPX:
  
 <telerik:RadComboBox ID="cboxProductsShipped" runat="server"   HighlightTemplatedItems="true" EnableLoadOnDemand="true"   Height="190px" Width="350px"
                                   >
                                    <ItemTemplate>
                                       <li class="col1">
                                            <%# DataBinder.Eval(Container.DataItem, "ProductName")%>
                                         </li>
                                         <li class="col2">
                                            <%# DataBinder.Eval(Container.DataItem, "Size")%>
                                         </li>
                                         <li class="col3">
                                            <%# DataBinder.Eval(Container.DataItem, "Quantity")%>
                                         </li>
                                    </ItemTemplate>
                                 </telerik:RadComboBox
  
  
 <asp:ObjectDataSource ID="ODSProducts" runat="server"
     TypeName="ProductBL" 
     DataObjectTypeName="DAL.Products"  
     SelectMethod="GetProductsByProductType"
   >
  </asp:ObjectDataSource>
  
  
C# 
  
protected void ProductsGrid_ItemDataBound(object sender, GridItemEventArgs e)
        {
            try
            {
                if (e.Item is GridEditFormItem && e.Item.IsInEditMode)
                {
                    GridEditFormItem editItem = (GridEditFormItem)e.Item;
                    RadComboBox cboxProducts = (RadComboBox)editItem.FindControl("cboxProductsShipped");
  
                    ODSProducts.SelectParameters.Add("producttype_id", ((Product)e.Item.DataItem).productType_id.ToString());
                    cboxProducts.DataSourceID = "ODSProducts";
                    cboxProducts.DataBind();
  
                
  
            }
            catch (Exception ex)
            {
                throw;
            }
        }
Mira
Telerik team
 answered on 12 Oct 2011
2 answers
90 views
Hi all.

This is an urgent requirement, so open to the community if there are any answers out there.

I have a hierarchical grid and based on this example http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandwindow/defaultcs.aspx?product=grid

I have the following code to open a pop up modal Radwindow. Tjis is ion the Second level grid within the <DetailTables Tag.

                <CommandItemTemplate>
                    <a href="#" onclick="return ShowMessageScheduleEdit('<%# eval("Message_ID") %>');">
                        <img src="../App_Themes/Images/add_24.png" border="0" vspace="2" hspace="2"/>Add new Location / Schedule</a>
                </CommandItemTemplate>
 
JAVASCRIPT
 
                function ShowMessageScheduleEdit(Message_ID, MessageSchedule_ID) {
                    var oWnd = radopen("MessageScheduleEdit.aspx?Message_ID=" + Message_ID + "&MessageSchedule_ID=" + MessageSchedule_ID, "MessageScheduleEdit");
                    return false;
                }

The trouble is I cant get the value of Message_ID to be passed as a parameter. You will notice that I have 2 parameters in the Javascript, I cant pass the second value either.

Andy
Andy Green
Top achievements
Rank 2
 answered on 12 Oct 2011
1 answer
56 views
Dear Telerik Team,


Are there any chart like 'Radar chart' or 'Spiderweb chart'?


Thanks in advance,
Aewin.
Evgenia
Telerik team
 answered on 12 Oct 2011
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?