Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
154 views
Hi,

Please look at the attached screenshot, "popup.jpg". 

As you can see, this RadWindow contains a RadGrid, but the header of the RadGrid sticks out to the right...

What could be done abou this? The RadWindow is opened by the parent with the js function "radopen", and the RadWindowManager on the parent has its AutoSize property set to "True"...

Thanks in advance for your reply.
Georgi Tunev
Telerik team
 answered on 08 Oct 2010
1 answer
73 views
Hi,

Please refer attached screen shot.
I want to show group total like, showed in screen shot.





Thanks & Regards,
Kailash
Daniel
Telerik team
 answered on 08 Oct 2010
1 answer
89 views
Ok, lets say I have a callback to a webservice going on and I then click a Linkbutton on the page to nav away from it...so the callback fails, and it triggers my clientside error handler which makes my custom error text appear.   To my users, something seems broken...when really its just because they canceled the request (essentially)

Is there a way to detect a user interruption in my error handler so I can just silently fail it?  I normally dump some text or an image into the container inside my error handlers (clientside ones) so it's pretty obvious to them something funky was going on :)
Pero
Telerik team
 answered on 08 Oct 2010
1 answer
35 views
When browse to a page with a RadSplitter on it, and the URL contains a #anchor, the page loads and jumps to the anchor correctly, but then it jumps back up to the top.    I see an old, similar thread at http://www.telerik.com/community/forums/aspnet-ajax/splitter/can-t-use-anchor-in-radpane.aspx with no solutions provided.  Is there any way to resolve this behavior without manually managing scroll using javascript?
Dobromir
Telerik team
 answered on 08 Oct 2010
1 answer
66 views
Hello

i am using RadEditor(it's DNNRichTextEditor really) inside RadWindow. 
such like :
<telerik:RadWindow ID="WinAddNew" runat="server">
    <ContentTemplate>
         <cc1:DNNRichTextEditControl ID="txtContent" runat="server" Width="500" Height="300" />
    </ContentTemplate>
</telerik:RadWindow>


var editor;

        function pageLoad()  
        {  
            editor = $find("<%=txtContent.ClientID%>"); //get a reference to RadEditor client-side object   
        }
editor is null. 
even i am using $get. 
could you give me some advices?

Thank you.
Daniel

Rumen
Telerik team
 answered on 08 Oct 2010
2 answers
118 views
Hi,

I am struggling a bit to get a progress area from being displayed in IE. Basically I am calling a WebMethod from the JavaScript and the WebMethod is updating the ProgressArea. Here is an example of my code:

Javascript:

function IsLongRunningTaskCompleted(){
            
            var lParams = GetPageMethodArguments();
            var lLocation = window.location.href;
            var lLocationToSubstringIndex = lLocation.search(".aspx?") + 5;
            lLocation = lLocation.substr(0, lLocationToSubstringIndex);
           
            $.ajax({
                type    : "POST",
                url     : lLocation + "/" + "ExecuteLongRunningTask",
                data    : "{" + lParams + "}",
                contentType : "application/json; charset=utf-8",
                dataType    : "json",
                success : function (pCurrentAction)
                            {
                                if (pCurrentAction.d == "Completed") CloseCurrentAspxPage();
                                window.setTimeout("IsLongRunningTaskCompleted()", 100);
                            },
                fail : function (pCurrentAction)
                            {
                                    CloseCurrentAspxPage();
                            }
                });
            }
        }

Server side :

public class DoStuff
{
        private static RadProgressContext FProgressArea;
        private static double FCurrentPrecentage ;

        protected void Page_Load(object sender, EventArgs e)
        {
             FProgressArea = RadProgressContext.Current;
             FCurrentPrecentage  = 0.0;
        }

        private delegate int ExecuteTimeConsumingProcessProcess();

        [WebMethod]
        public static string ExecuteLongRunningTask()
        {
           
            if (String.IsNullOrEmpty(FCurrentDuplicateStatus))
            {
                
                var lWriteInfoToDb = new WriteInfoToDB();
                var lSavingStuff = new ExecuteTimeConsumingProcessProcess(lWriteInfoToDb.SaveALotOfData);

                IAsyncResult lResult = lSavingStuff .BeginInvoke(null, null);

                while (!lResult.IsCompleted)
                {
                    FCurrentPrecentage = lSavingStuff.PercentageCompleted;
                    UpdateProgressBar(FProgressArea, FCurrentPrecentage );
                    Thread.Sleep(100);
                }

                lSavingStuff .EndInvoke(lResult);
                FCurrentStatus = "Completed";
            }

            return FCurrentStatus ;
        }

        private static void UpdateProgressBar(RadProgressContext pProgressArea, double pPercentageCompleted)
        {
            const int cTotal = 100;

            pProgressArea.Speed = "N/A";
            pProgressArea.PrimaryTotal = 1;
            pProgressArea.PrimaryValue = 1;
            pProgressArea.PrimaryPercent = 100;

            pProgressArea.SecondaryTotal = cTotal;
            pProgressArea.SecondaryPercent = pPercentageCompleted;
            pProgressArea.CurrentOperationText = "Step " + pPercentageCompleted;
            Thread.Sleep(100);
        }
}

In Firefox this is working perfectly well, but in IE I am not getting a progress area, and the page request times out. Have you got any idea what I am doing wrong by looking at the code? Or do you have any tips?

Thanks in advance.
Wayne Keet
Top achievements
Rank 1
 answered on 08 Oct 2010
1 answer
111 views

Hi,

I am trying to implement the Google style filtering for RadGrid (version 2010.1.519.20) in SharePoint 2007.
First I implemented the code for google style filtering as shown in the example on your site.

The code was working but refreshing using full postback instead of AJAX postback.
AJAX has a well known issue for causing full postback in SharePoint and is fixed with the following code

        protected override void CreateChildControls()
        {
            base.CreateChildControls();
            EnsurePanelFix();

        }

        private void EnsurePanelFix()
        {
            ScriptManager.RegisterStartupScript
              (this,
               typeof(UpdatePanel),
               "UpdatePanelFixup",
               "_spOriginalFormAction = document.forms[0].action; _spSuppressFormOnSubmitWrapper=true;",
               true);
        }

Doing this fixed the AJAX postback for all controls but causes an issue with RadComboBox.
On the first load, before any AJAX postbacks are caused the combo box loads with the following tag

<INPUT style="DISPLAY: block" id=xxx class=xxx name=xxx autocomplete="off" jQuery1286221047445="5">

after I click an action like sort, the combobox no longer has the autocomplete and jQuery properties and looks like the following

<INPUT style="DISPLAY: block" id=xxx class=xxx name=xxx>

This makes it so the drop down box no longer appears. Does anyone know how to fix this?


Andy
Kamen Bundev
Telerik team
 answered on 08 Oct 2010
1 answer
119 views
Dear Telerik team,

We are using MCMS 2002 and Rad Control(6.3.3.0).
When we try to creat a page and then while saving this newly created page we are getting a javascript error 'Access Denied'. the template which is used to create this page uses Rad Controls. After fruther investigations we found that this error is raised from RadEditor.js (C:\Program Files\Microsoft Content Management Server\Server\IIS_CMS\RadControls\Editor\Scripts\6_6_3) file where in it tries to access ContentWindow object. The strange thing is this error occurs only when we run locally on server. When accessed from client browser (any) no such error is raised. We have enabled host header mapping in MCMS.

Sever is Windows 2000 server with IE 6 + SP1 installed on it.
Any suggestion or ideas on what could cause this issue?

Rumen
Telerik team
 answered on 08 Oct 2010
1 answer
59 views
Hi,
I have 3 RadComboboxes and 1 RadGird on my page.
If i select item from RadCombobox1, RadCombobox2 will be populates then if i select item from  RadCombobox2 then RadCombobox3 will be populates.
After i select item from RadCombobox3 then RadGrid will filled up.

I am using RadAjaxManger to avoid the whole page refresh when i select items from RadComboBoxes.
But the interesting thing is if i select Item from RadCombobox3, 
First      protected void RadComboBox1_SelectedIndexChanged event firing then coming to 
             protected void RadComboBox3_SelectedIndexChanged
        
I don't know way.

Here is my code
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadComboBox1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadComboBox2" />                   
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="RadComboBox2">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadComboBox3" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="RadComboBox3">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="rgdNoticeHistory" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
 
<telerik:RadComboBox ID="RadComboBox1" runat="server"  Width="200px"
            onselectedindexchanged="RadComboBox1_SelectedIndexChanged" AutoPostBack="true">
        <Items>
                    <telerik:RadComboBoxItem runat="server" Text="ALL" Value="ALL" />
                    <telerik:RadComboBoxItem runat="server" Text="A" Value="A" />
                    <telerik:RadComboBoxItem runat="server" Text="B" Value="B" />
                    <telerik:RadComboBoxItem runat="server" Text="C" Value="C" />                   
        </Items>
        </telerik:RadComboBox>
     
    <telerik:RadComboBox ID="RadComboBox2" runat="server" Width="200px"
            onselectedindexchanged="RadComboBox2_SelectedIndexChanged" AutoPostBack="true"></telerik:RadComboBox>
    
     <telerik:RadComboBox ID="RadComboBox3" runat="server" Width="200px"
            onselectedindexchanged="RadComboBox3_SelectedIndexChanged" AutoPostBack="true"></telerik:RadComboBox>

Here my code behind:

protected void RadComboBox1_SelectedIndexChanged(object o, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e)
        {
            RadComboBox2.Items.Clear();
            RadComboBox3.Items.Clear();
            LoadRadComboBox2Items();           
        }
 
protected void RadComboBox2_SelectedIndexChanged(object o, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e)
        {
            RadComboBox3.Items.Clear();
            LoadRadComboBox3Items();
        }
 
 protected void RadComboBox3_SelectedIndexChanged(object o, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e)
        {     
                RadGrid1.DataSource = GetAllData(Convert.ToInt32(RadComboBox1.SelectedValue.ToString()), Convert.ToInt32(RadComboBox3.SelectedValue.ToString()));
                RadGrid1.Rebind();             
        }


Please help me..
Kalina
Telerik team
 answered on 08 Oct 2010
1 answer
117 views
Hi

I have a radEditor with its toolbar mode set to "pageTop".  When the toolbar appears and disappears I want to run some custom javascript..

How do I access the toolbar show/hide events through javascript code ?

Also, I want to add my own custom toolbar button which when clicked will hide the toolbar.  Is this possible ?

Thanks
Rumen
Telerik team
 answered on 08 Oct 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?