Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
387 views
Hi,

I am trying to get keyboard access to work with the calendar popup with the RadDatePicker.  When I tab to the calendar button and hit enter, the calendar pops up as expected, but further tabbing just moves the focus to the next control on the page.  The arrow keys don't work either.  I see in the documentation that this should work.  Am I doing something wrong?  Here is my code:

 

<telerik:RadDatePicker ID="dtpAutoCloseDate" style="font-size:100%"

 

 

ToolTip="Auto-Close Date (MM/DD/YYYY)" runat="server"

 

 

onselecteddatechanged="RadDatePicker1_SelectedDateChanged"

 

 

Culture="English (United States)" Calendar-EnableNavigation="true" >

 

 

 

<DateInput runat="server">

 

 

<ClientEvents OnError="DateTimeError" />

 

 

</DateInput>

 

 

<Calendar runat="server" ></Calendar>

 

 

<DatePopupButton ImageUrl="" HoverImageUrl=""></DatePopupButton>

 

 

</telerik:RadDatePicker>

Thank you,

Chris

 

Iana Tsolova
Telerik team
 answered on 19 Apr 2010
8 answers
208 views
Hi,
I have a RADDatePicker inside Update Panel.
I am showing javascript popup message (javascript Confirm message Box with OK/cancel button) on SAVE button Click by using RegisterClientScriptBlock in my .net application.
When I press SAVE Button Popup message is displayed but the Value in the DatePicker disappears. Once either OK or Cancel button is pressed the DOB again appears in the page.

If I place DatePicker outside the UpdatePanel it is working fine.
but I cannot put DatePicker outside the UpdatePanel in my application.

Please provide the solution ASAP.
Minakshi
Maria Ilieva
Telerik team
 answered on 19 Apr 2010
1 answer
67 views
Hi to all,
i'm testing telerik controls and they are fantastic !! (the best of all i tested in the last days)
But i've a problem with datagrid height. I used panes to align my usercontrols (and my radgrid is inside a usercontrol) but it cannot fill the pane height. Playing with firebug in html code i see this structure:

<div id="RAD_SPLITTER_PANE_CONTENT_RadPane2" ... > 
<div> other my customs usercontrol elements </div> 
<div id="CustomersGridControl1_CustomersGridControl1$RadGridCustomersPanel" ... > 
<div id="CustomersGridControl1_RadGridCustomer" ...> 
   OTHER GRID ELEMENTS 
</div> 
</div> 
</div> 




The problem is inside div "CustomersGridControl1_CustomersGridControl1$RadGridCustomersPanel" (i suppose it's generated from radgrid control because it doesn't exist in my code). With firebug i setted the style height="100%" and all work fine. But i don't know how style it from aspx code.

Sorry if it's a stupid question.. but this is my first experience with terelik controls and also with asp.net (i used php many years ago and .net only for desktop applications). Probabilly i'm loosing my self in a "glass of water".

P.S.: i'm using latest telerik trials controls with visual studio express 2010

Regards

Sandro
Dimo
Telerik team
 answered on 19 Apr 2010
1 answer
366 views

Hi Telerik Team,

I am using a RadDate picker with RadMasked TextBox 

becoz i am unable to use mask in date picker. Updating textbox after 

selecting date in calendar and updating calendar after entering date in 

textbox. And applying a style="display:none" tag to DateInput of Datepicker 

to disable the textbox of datepicker. But it is appearing for 2sec at loading 

time then disappearing and unable to decrease the space between masked 

textbox and datepicker (which displays only calander picker). I hope you 

understand my problem and revert me back with a good solution.


Thanks and Regards
--------------------------
K RAMU
Maria Ilieva
Telerik team
 answered on 19 Apr 2010
1 answer
156 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.2K+ 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
149 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
229 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
117 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
224 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?