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

I found this post, http://www.telerik.com/community/forums/aspnet-ajax/editor/how-to-add-css-to-exportto-pdf.aspx, from 2009 and it appears I need a third party app to successfully export a formatted editor to PDF. Is this still the case?

Thanks,

David Lozzi
Rumen
Telerik team
 answered on 19 Apr 2010
5 answers
1.1K+ views
Is it possible to set (and remove) the read only property of a RadTextBox using client side script?
Dimo
Telerik team
 answered on 19 Apr 2010
3 answers
140 views
hi,
I m developing a project with classical Rad Controls. I got problem when i m working with RadDocking object. 

Scenario:
1. Load Parent Node first to radDocking objects
2. Load Child to the same RadDockingZone when any parent id click.

I can load Parent node first having no problem. But when i try to load children of that parent, RadDockingZone is not clear and no children is viewed. 

<form id="form1" runat="server">
        <div>
            <cc1:RadDockingManager ID="RadDockingManager1" runat="server" />
            <cc1:RadDockingZone ID="RadDockingZone1" runat="server" Width="100%" Height="100%"
                DockEnabled="true" Type="Horizontal">
                </cc1:RadDockingZone>
        </div>
        
        <script type="text/javascript">
        function LoadRelatedDiscipline(ParentID)
        {
            var ajaxManager = <%= RadAjaxManagerDefault.ClientID %> 
            ajaxManager.AjaxRequest(ParentID); 
        }
        </script>
        
        <radW:RadWindowManager ID="RadWindowManager2" runat="server" Skin="Office2007" Behavior="None"
            VisibleStatusbar="false" UseEmbeddedScripts="false">
        </radW:RadWindowManager>
        <radA:RadAjaxManager ID="RadAjaxManagerDefault" runat="server" DefaultLoadingPanelID="AjaxLoadingPanel1"
            OnAjaxRequest="RadAjaxManagerDefault_AjaxRequest" UseEmbeddedScripts="False">
        </radA:RadAjaxManager>
        <radA:AjaxLoadingPanel ID="AjaxLoadingPanel1" runat="server" Height="75px" Transparency="10"
            Width="75px">
            <asp:Image ID="Image1" runat="server" AlternateText="Loading..." BackColor="Transparent"
                ImageUrl="~/RadControls/Ajax/Skins/Default/loading.gif" />
        </radA:AjaxLoadingPanel>
    </form>



protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            this.LoadDockObjects(null);           
        }
    } 

private void LoadDockObjects(int? parentId)
    {
DataTable dt = new DataTable();
if( parentID == null)
{
dt = LoadAllParents();
else
{
LoadChildrent(parentId);
}       

        foreach (DataRow oRow in dt.Rows)
        {
            RadDockableObject obj = new RadDockableObject();
            obj.ID = string.Format("ID{0}", oRow["ID_NUM"]);
            obj.Text = oRow["DETAIL"].ToString();
            obj.DockingMode = RadDockingModeFlags.AlwaysDock;
            obj.Width = Unit.Pixel(600);
            obj.Height = Unit.Pixel(300);

            Oracle_ControlLibrary_ucRD2l customControl = (Oracle_ControlLibrary_ucRD2l)LoadControl("~/Oracle/ControlLibrary/ucRD2l.ascx");
            customControl.PatientKey = patientKey;
            customControl.DisCode = oRow["ID_NUM"].ToString();

            obj.Container.Controls.Add(customControl);
            RadDockingZone1.Controls.Add(obj);

            this.VisitedRDHandler(oRow["DETAIL"].ToString());
        }
    }

protected void RadAjaxManagerDefault_AjaxRequest(object sender, AjaxRequestEventArgs e)
    {
        if (e.Argument != string.Empty)
        {
            int? patientId = Convert.ToInt32( e.Argument);
            this. LoadDockObjects(patientId);
        }
    } 



I did not find any solution of that problem. Please help....
Animesh Dey
Top achievements
Rank 2
 answered on 19 Apr 2010
4 answers
211 views
I am attempting to use the RadInputManager on a form. This form consists of about 10 regular textboxes and a RadInputManager.

Some of the textboxes are larger than others. They have been applied a particular css style, either 'form25' or 'form50', which define a width in pixels.

When rendering the page, RadInputManager converts the textboxes and the style is replaced, making all textboxes the same width.

I have attempted to override the style using 'html body form .RadInputMgr_Simple .form50' as the css tag, but am not having any luck. I have read the blog post regarding overriding styles and specificity, but am unable to get this working.

Please tell me how I can go about doing this. There are hundreds of textbox controls through this site and I'd like to maintain their width while taking advantage of the RadInputManager functionality.

Thanks.
Maria Ilieva
Telerik team
 answered on 19 Apr 2010
1 answer
113 views
Hi,

I have a RadTabStrip control with 4 tabs in a asp.net page. In these tabs, I have different user controls placed. I am not adding the user controls dynamically; they are on the page when the page loads so I am not giving them any dynamic ID at runtime.

When any events fire from grids / other controls which are in these user controls and which in turn update the grids on the main page, I cannot see the Loading Panel, although the page updates correctly.

This page uses RadAjaxManagerProxy for AjaxSettings, since the master page from where this child page is inherited, contains the RadAjaxManager. The RadAjaxManagerProxy does not give me client events like OnRequestStart and OnResponseEnd.

I have placed the entire RadTabStrip in an asp:panel control, and the multipages also in asp:panel and div controls in the page design. I also tried placing the usercontrols in asp:panels and then giving those panel IDs in "updated controls" (instead of the entire panel) in the Ajax Settings, . Either way, the functionality is working but without the Loading Panel

Please suggest how should I place the user controls and how should I set the controlID and UpdatedControls in the page since most of the controls depend on each other at runtime,

Thanks in advance,
Kunal Vora
Pavlina
Telerik team
 answered on 19 Apr 2010
3 answers
206 views

Dear Telerik,

            Kindly directme to solve the scenario of loading the combo box based on the value of the recentcombo selection. After initially loading the values to all combo’s, if I choosethe value of the first combo and do filtering the second combo should need tofill with the available values instead of binding the whole items from the DB.

I could see that the scenario is elaborated with the Telerikfiltering demo, but used the Sqldatasource and calls the Refresh method in orderto achieve the scenario.

 protected void RefreshCombos() 
        { 
            SqlDataSource2SqlDataSource2.SelectCommand = SqlDataSource2.SelectCommand + " WHERE " + RadGrid1.MasterTableView.FilterExpression.ToString(); 
            SqlDataSource3SqlDataSource3.SelectCommand = SqlDataSource3.SelectCommand + " WHERE " + RadGrid1.MasterTableView.FilterExpression.ToString(); 
            SqlDataSource4SqlDataSource4.SelectCommand = SqlDataSource4.SelectCommand + " WHERE " + RadGrid1.MasterTableView.FilterExpression.ToString(); 
 
            RadGrid1.MasterTableView.Rebind(); 
        } 
 

 protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e) 
    { 
        // Filter controls value binding 
        if (e.Item.ItemType == GridItemType.FilteringItem) 
        { 
            DataSet dsStates = null
 
            RadTextBox txtName; 
            txtName = (RadTextBox)e.Item.FindControl("txtName"); 
            if (ViewState["txtName"] != null) 
            { 
                txtName.Text = ViewState["txtName"].ToString(); 
            } 
                         
             RadComboBox StateComboBox; 
            StateComboBox = (RadComboBox)e.Item.FindControl("StateComboBox"); 
            sql = "sp_GetNames "
            StateComboBox.ClearSelection(); 
            StateComboBox.DataSource = dsStates.Tables[0]; 
            StateComboBox.DataTextField = "State"
            StateComboBox.DataValueField = "State"
            StateComboBox.DataBind(); 
            StateComboBox.Items.Insert(0, new RadComboBoxItem("   All ", " All ")); 
            StateComboBox.SelectedIndex = 0
             
            if (ViewState["txtState"] != null) 
            { 
                StateComboBox.FindItemByText(ViewState["txtState"].ToString()).Selected = true;                
            } 

protected void StateComboBox_IndexChanged(object o, RadComboBoxSelectedIndexChangedEventArgs e) 
    { 
        //Code for customized server side filtering           
        string filterState = ""
        if (e.Text.Trim() != "All") 
        { 
            filterState = "([State] = '" + e.Text + "')"; 
        } 
        else 
        { 
            filterState = "([State] <> '')"
        } 
 
        ViewState["txtState"] = e.Text.ToString(); 
        vwState = filterState
 
        if (vwGroupID != null) 
        { 
            filterState += " And " + vwGroupID; 
        } 
 
        //Calling FilterExpression finally 
        RadGrid1.MasterTableView.FilterExpression = filterState
        RadGrid1.MasterTableView.Rebind(); 
    } 

I could not find the best way to do the scenario with dynamicallycreated combo as it is achieved in Telerik demo for filtering

Thanks and looking forward for yours ideas

Yavor
Telerik team
 answered on 19 Apr 2010
1 answer
104 views

Hi

            I amhaving radgrid which has NestedGrid also. I would like to see my row is beingselected when invoking edit and close the editpopup window. So that the clientcan be known what row is selected after coming back from updating or closingthe PopUp window?

I used the below scenarios, it is working fine with singlegrid. But in nested grid suppose I expanded two parent items in order to edittheir child items. I could not able to save the state of row after theoperation has been done.

if (e.Item is GridEditableItem && e.Item.IsInEditMode) 
                    { 
                        if (!e.Item.OwnerTableView.IsItemInserted) 
                        { 
                            Session["selIndex"] = e.Item.ItemIndex; 
                        } 
                        e.Item.Selected = true
                        isSelected = true
                    } 
 

protected void RadChild1_PreRender(object sender, EventArgs e) 
        {  
            if (!isSelected && Session["selIndex"] != null) 
            { 
                RadChild1.MasterTableView.Items[(int)Session["selIndex"]].Selected = true
                Session["selIndex"] = null; 
            } 
            isSelected = false
        } 

Shinu
Top achievements
Rank 2
 answered on 19 Apr 2010
4 answers
164 views
Hi,
your example "Scrolling to the selected item" works fine in IE but not in Firefox. You see the selected Row a short time - then the cursor jumps to the top.
Could it be, that another  function "disturbs" this action in Firefox?

Regards,
Andreas
BaiH
Top achievements
Rank 1
 answered on 19 Apr 2010
1 answer
71 views
Hi,
I am working with Telerik and playing around with widgets. IN the Grids, I am using CustomPaging and created a new paging style. I can make it appear on top and bottom of the grid using Position="TopAndBottom". BUt if I want a different paging style on top and different paging style on bottom,i,e say "Numeric" on top and "custom Paging" on bottom, is it possible?If yes, how?
Maria Ilieva
Telerik team
 answered on 19 Apr 2010
1 answer
115 views
I can not use a radchart in my panel.
I want to use three radchart in a panel.But the radchart is always on the top of the panel,not in the panel.

The scrollbar can not control the radchart.
I am using IE7.0,8.0.It is no problem in Firefox and Chrome.


Thanks.
Ves
Telerik team
 answered on 19 Apr 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?