Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
200 views
Hi,

I have used UseStaticHeaders property (i.e. by setting it to "True") to ensure that grid headers don't move when one scrolls the grid upwards or downwards and users are able to tell which kind of data they are reading since the column headers are always visible and this works well.

But when I have a grid with many columns than can't fit on the screen and the horizontal scroll bar is activated, scrolling to the left or right, the headers do not move with the data columns thereby mixing up column headers as shown in the attached images.

1. grid before scrolling down.jpg: It shows the grid when "UseStaticHeaders" property is set to "true" and the grid has not been scrolled. Column headers are visible, but when one scrolls down the column headers are no longer visible as shown by "grid after scrolling down.jpg" image.

2. grid before scrolling right.jpg : It shows the grid when "UseStaticHeaders" property is set to "false" before scrolling to the right. Column headers and data columns are well aligned. But when one scrolls to the right, column headers and data are not properly aligned as shown by "grid after scrolling right.jpg " image.

How can I fix this issue such that when a user scrolls up or down, the headers always remain visible and when one scrolls to the right or left, the column headers move with their respective column headers?
Pavlina
Telerik team
 answered on 09 Dec 2010
3 answers
212 views
Hi,

I have a number of RadGrid controls which edit detail records using RadWindow.  This all works great until I change the Grid so that it is not paged, and the grid displays enough rows to require scrolling down through the window.

When this happens and I used the Edit link on the grid, the RadWindow opens in modal form but it is displayed somewhere off the page and so the system hangs.  If I edit a record without scrolling down the window opens as expected.

I have tried modifying css with in my App_Themes\Stylesheet.css file:
.RadWindow {top: 0px!important; left: 0px!important;}

I have also tried adding the following javascript after window open:

ow.autoSize();

 

ow.moveTo(0, 0);

ow.Minimize();

ow.Maximize();

In all cases the window fails to appear and the page becomes locked.

I am using ther 2010 Q3 release, but this behavour also showed in previous releases.  Any help appreciated.

David Penny

David Penny
Top achievements
Rank 2
 answered on 09 Dec 2010
3 answers
217 views
No idea what I'm doing wrong, but whenever I enable enableautomaticloadondemand, I get this error:

Line: 3747
Error: Sys.InvalidOperationException: '_lodIsAutomatic' is not a property or an existing field.

My code:
   <telerik:RadComboBox ID="RadComboBoxProviders" Runat="server" height="200px" EnableAutomaticLoadOnDemand="true"
        DataSourceID="LinqDataSourceProviders" DataTextField="Name" EmptyMessage="Select Provider" ItemsPerRequest="10" EnableVirtualScrolling="true"
        DataValueField="ProviderId" Skin="Web20">
    </telerik:RadComboBox>
  
<asp:LinqDataSource ID="LinqDataSourceProviders" runat="server" ContextTypeName="ClinicalDataContext"
    EntityTypeName="" Select="new (Name, Street1, City, State, ProviderId)" TableName="ExternalProviders">
</asp:LinqDataSource>
Dan
Top achievements
Rank 2
 answered on 09 Dec 2010
1 answer
75 views
Hi,

Having a weird problem with RADGrid following this example(http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/usercontroleditform/defaultcs.aspx).

when i first click on "Edit" in the RADGrid, my ascx that contains RADDatePicker to be appear normal. I am able to click on the calendar icon and the calender did pop up. Then i click "Cancel" it will return back to my grid. the second try of clicking "Edit" again to go into my ascx, i click on the calender, my RADDatePicker didnt pop up the calendar even though i click it.

Attached:
1.png: everything is normal. calendar can pop up
2.png: my datepicker become longer and calender cannot pop up when click.

Please advice.
Pavlina
Telerik team
 answered on 09 Dec 2010
5 answers
117 views
Has anyone used the RadCharts successfully on a BlackBerry Browser?  We have asp.net dashboard applications that we would like to extend to the mobile handsets, but the RadCharts do not render on a BlackBerry Browser.

Any ideas on how to fix this?  Is there a fix?

Thanks,

Terry Webster
Patrick
Top achievements
Rank 2
 answered on 09 Dec 2010
2 answers
112 views
Hi, I'm having issues executing a RadAjaxManager OnAjaxRequest.  I am following the "Window / Edit dialog for Radgrid" Window option demo in order to rebind a RadListView when data is added within the Rad pop up Window.  The difference between my layout and the example is I am using a master page architecture.  So I have a master page then and aspx page within the content and a user control within that aspx page.  My Rad Window is within the user control.  Since I have my RadAjaxManager within the master page I am unable to execute a command within my user control to rebind my RadListView within that user control.  How would I do this?


----- I am trying to execute the refreshGrid function below called from my RadWindow to rebind a radlist view.  My problem is my radajaxmanager is within a master page and my radlistview is in a user control.

        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadListView1/>
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>


       function refreshGrid(arg)
       {
           if (!arg)
           {
               $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest("Rebind");
           }
        }


        protected void RadAjaxManager1_AjaxRequest(object sender, AjaxRequestEventArgs e)
        {
            if (e.Argument == "Rebind")
            {
                RadListView1.Rebind();

        }
Kevin
Top achievements
Rank 1
 answered on 09 Dec 2010
1 answer
148 views
Hi,

I need to make the selection of the RadSplitButton when RadDropDownButtonElement is selected. For make this, I'm changing Style Parameter of the different buttons and when another button is Selected I have to restore Original Values.

For make this, I've made one event:

public void SelectedChanged(object sender,EventArgs e){


            RadSplitButtonElement SendingSplitButton = sender as RadSplitButtonElement;
            RadSplitButtonElement[] ButtonArray = { orbit, rotate, horizontalMove, verticalMove, zoom };

 for (int i = 0; i < 5; i++)
            {
                ButtonArray[i].ActionButton.ButtonFillElement.BackColor = System.Drawing.Color.transparent;  <- Setting the original Values
                ButtonArray[i].ActionButton.ButtonFillElement.BackColor2 = System.Drawing.Color.transparent;
                ButtonArray[i].ActionButton.ButtonFillElement.BackColor3 = System.Drawing.Color.transparent;
                ButtonArray[i].ActionButton.ButtonFillElement.BackColor4 = System.Drawing.Color.transparent;              

            }
           /*Setting Selected Values...*/
            SendingSplitButton.ActionButton.ButtonFillElement.BackColor = System.Drawing.Color.FromArgb(255,255,115,0);
            SendingSplitButton.ActionButton.ButtonFillElement.BackColor2 = System.Drawing.Color.FromArgb(255,255, 115, 0);
            SendingSplitButton.ActionButton.ButtonFillElement.BackColor3 = System.Drawing.Color.FromArgb(255,255, 115, 0);
            SendingSplitButton.ActionButton.ButtonFillElement.BackColor4 = System.Drawing.Color.FromArgb(255,255, 115, 0);
            SendingSplitButton.ActionButton.ButtonFillElement.GradientPercentage = 0.62f;
            SendingSplitButton.ActionButton.ButtonFillElement.GradientPercentage = 0.71f;
}

I have already tried changing the State of the Objects in this mode:

SendingSplitButton.OnMouseOver = true or with SendingSplitButton.OnMouseDown= true but it doesn't work. I don't understand very well if it is possible or not managing only a single state of the object through the code and how the Style Managing - by code - and Xml is merged.

Thank you very Much,

Jack
Telerik team
 answered on 09 Dec 2010
6 answers
735 views
Hi, i want to disable postback or callback on RadTreeView when the user click a node, i also want with javascript function get the NavigateUrl and assign it to a iframe, all in client side without server side.
Mickey
Top achievements
Rank 1
 answered on 09 Dec 2010
5 answers
212 views
Hello,
I am using RAD GRID and one column is linkable to other page. So when I hit on the link of one of the populated records of Rad Grid then it goes to next page. The problem is when I go back using BACK button of browser then Grid's data lost. I can put the data in the session like datatable and populate it again but there are other 150 controls on the same page too from which I am populating grid and some are Grid Dropdowns.
So In short I need to maintain that Controls along with RadGrid when I click on back button of browser.
Rather than storing everything in Session or viewstate, Is there any other way to do it.
Please response ASAP.
Thanks,
Deepa
Iana Tsolova
Telerik team
 answered on 09 Dec 2010
3 answers
218 views
Hi,

I wish to implement the following:
Present a RadToolTip within a RadWindow that has a RadAjaxManager to present nofications to the user on several ocassions (e.g. input was not properly given). So I put it in RadAJAx setting along with an imageButton I wish to present it accordingly. Also size of the RadWindow is not automatically fitting when using RadAjaxManager (if I drop the use of RadAjaxManager, it works fine).

That's the code, for example:
1. RadWindow Code - rtt is the RadToolTip I wish to show on occassions:
<telerik:RadAjaxManager ID="ramPopup" runat="server" >
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="ibFind">
            <UpdatedControls>                
                <telerik:AjaxUpdatedControl ControlID="ibFind" LoadingPanelID="ralpLoadingPanel"/>
                <telerik:AjaxUpdatedControl ControlID="rgGrid" LoadingPanelID="ralpLoadingPanel"/>
                <telerik:AjaxUpdatedControl ControlID="cvSearchArgs" />                    
                <telerik:AjaxUpdatedControl ControlID="rtt" LoadingPanelID="ralpLoadingPanel"/>   
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="rgGrid">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="rgGrid" LoadingPanelID="ralpLoadingPanel"/>
                <telerik:AjaxUpdatedControl ControlID="rtt" LoadingPanelID="ralpLoadingPanel"/>
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="ibSelect">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="ibSelectIndividual" LoadingPanelID="ralpLoadingPanel"/>
                <telerik:AjaxUpdatedControl ControlID="rtt" LoadingPanelID="ralpLoadingPanel"/>
                <telerik:AjaxUpdatedControl ControlID="script" />
            </UpdatedControls>
        </telerik:AjaxSetting>
     </AjaxSettings>
</telerik:RadAjaxManager>

<telerik:RadToolTip ID="rtt" runat="server"                
    EnableShadow="true" 
    IsClientID="true" 
    EnableViewState="true" 
    ShowCallout="false"
    Position="Center"
    Animation="Slide"
    AutoCloseDelay="6000"
    Width="400px"                    
    >
    <div id="Div1" class="message message-notice">
        <div class="image">
            <img src="/resources/images/icons/notice.png" alt="Error" height="32" />
        </div>
        <div class="text">
            <asp:Label runat="server" id="lblNotification" ></asp:Label>
        </div>
        <div class="dismiss">
            <a href="#message-error"></a>
        </div>
    </div>
</telerik:RadToolTip>

and the code behind - whenever I wish to present the RTT I use:
private void displayNotification(string notification)
{
    lblNotification.Text = notification;
    rtt.Show();
}


2. the code that opens the RadWindow (from an aspx page) and get necessary arguments from the RadWindow:
<telerik:RadWindowManager ID="rwmPopUps" runat="server" Skin="Vista">
    <Windows>
        <telerik:RadWindow Skin="Vista" ID="rw" runat="server" Title="Subject Search" 
           Left="150px" ReloadOnShow="true" Modal="true" AutoSize="true" Style="z-index:2000" />
    </Windows>
</telerik:RadWindowManager>
<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
    <script type="text/javascript">
        function ShowProviderForm() {
            window.radopen("NewPopUp.aspx", "rw");
            return false;
        }
        function refreshData(arg) {
            if (arg) {
                $find("<%= ramRequestEntry.ClientID %>").ajaxRequest(arg);
            }
        }
    </script>
</telerik:RadCodeBlock>

3. codebehind example for use - CloseAndRebind is a javascript function within RadWindow (this function it works peorperly):
protected void ibSelect_Click(object sender, ImageClickEventArgs e)
{
    if (rgGridInviduals.SelectedValue != null)
    {
        string selected = rgGrid.SelectedValue.ToString();
        clearForm();
        RadScriptManager.RegisterStartupScript(Page,
            Page.GetType(),
            "Selected",
            string.Format("CloseAndRebind('{0}');", selected),
            true);
    }
    else
    {
        displayNotification("Please select a subject");
    }
}


The results are:
1. When I delete RadAjaxManager use - everything works fine.
2. When I put it RadAjaxManager back in, the ToolTip is not presented
3. Also, when I use RadAjaxManager the size of the RadWindow is not automatically fitting the form, when the form changes its size
4. Without using RadAjaxManager, the RadWindow's size is modified automaticcaly to the contents of the form (as it should be)

I wish to use RadAjaxManager and get the following results:
1. The RadWindow's size is modified automatically to the contents of the form.
2. The RadToolTip must be showed.
3. The ToolTip must be given a CSS style (this one is not ralated to RagAjaxManager, but I'm not able to use a CSS in rtt within a RadWindow - in other forms, which are not RadWindow, it works.)

Most important - The RadWindow size must fit automatically to form size (The form's size is modified since the RadGrid changes its size almost every postback).

Thanks in advance.

Best regards,
Avi Akessoul
Maria Ilieva
Telerik team
 answered on 09 Dec 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?