Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
94 views
Our code works fine with v2012.3.1205 and v2012.3.1308, however after upgrading to v2013.1.220.45 we get the following error:

0x800a139e - Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: Script control 'rcbBudgetCategory' is not a registered script control. Script controls must be registered using RegisterScriptControl() before calling RegisterScriptDescriptors().

We can remove our control "rcbBudgetCategory" and then the error simply jumps to the next Rad Control on the page. This occurs inside of a User Control inside a RadGrid:

<EditFormSettings UserControlName="~/Controls/UnitAdmin.ascx" EditFormType="WebUserControl">

... the nested User Control has RadControls which post-back. These controls are inside tables, which are inside Panels which are registered in the RadAjaxManager:

<AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="rcbBudgetCategory">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="pnlReplaceOptions" />
                <telerik:AjaxUpdatedControl ControlID="rblReplacement" />
                <telerik:AjaxUpdatedControl ControlID="pnlReplace" LoadingPanelID="ralpLoading" />
            </UpdatedControls>
        </telerik:AjaxSetting
...

<asp:Panel runat="server" ID="pnlReplace">
    <table>
        <tr>
            <td class="bold">Budget Category:</td>
            <td>
                <telerik:RadComboBox runat="server" ID="rcbBudgetCategory" DataSourceID="BudgetCategoryDataSource" DataTextField="BudgetCategory1" DataValueField="BudgetCategoryID" Width="250" AppendDataBoundItems="true" AutoPostBack="True" OnSelectedIndexChanged="rcbBudgetCategory_SelectedIndexChanged">
                    <Items>
                        <telerik:RadComboBoxItem Text="" Value="" />
                    </Items>
                </telerik:RadComboBox>

Some table rows (TR's) are runat="server" and can be shown/hidden... we even made the tables runat=server in case this was the problem, but it wasn't. Also, the error still occurred when we tried commenting-out all the code which changed the visibility of controls in the code-behind.

Therefore we believe v2013.1.220.45 has a bug.

Dimitar Terziev
Telerik team
 answered on 07 Mar 2013
10 answers
237 views
Hi

I have a RadGrid with client side binding through webservice. Everything works great, but I need to hide column for regular users and show all to admin. I am using the hideColumn() and showColumn() procedure, it works, it hides the column, but the Grid is not resizing to fill the new space. I have 1 column defined without width and I want this column to be resized. I dont want to allow the user to resize the column, but if it must the so be it. I tried every possible combination of allowColumnResizing, ResizeGridOnColumnResize, Clip... also tried tableLayout, also manual column resizing and I tried to move hidding to different events like OnDataBinding, OnDataBound, OnMasterTableCreating, OnGridCreating and so on, but nothing works as expected. At server side it is so simple so why is client side so hard??

thanks 

Vitalij
Sophie
Top achievements
Rank 2
 answered on 07 Mar 2013
1 answer
168 views
i am having x.aspx radwindow page which contains 5 tabs,
 
if i click the 5th tab( Delete user), radwindow pop up will be dislayed with option ok and cancel, if i click ok.. i am closing the popup and coming back to the 5th tab(Delete user), if i am using the following code,
 
GetRadWindow().BrowserWindow.location.reload();
 

I get an IE7 popup dialog, saying
"To display the webpage again, Internet explorer needs to resnd the Information you've previously submitted. If you were making a purchase ...blah blah
 
with Retry + Cancel buttons
 

if i use the below code instead,
 
top.location,href= top.location.href
 
i am not getting an error as explained above but it is navigating into fist tab( Request user)...
 
Tried all the option like
 
window.location.reload(), window.location.href( It is showing the URL of the POP up)... etc...
 
can u share ur thoughts as soon as possible..... plz...
Marin Bratanov
Telerik team
 answered on 07 Mar 2013
9 answers
352 views
Hello,

i've the problem with autosize radwindow, because whan i open radwindow you can see the scroolbar I would rather that not be seen.

this is the code of the web page that call radwindow:
<telerik:RadWindow ID="RadWindowCard" runat="server" AutoSize="True" IconUrl="/image/iconlogo.png"
    ReloadOnShow="True" NavigateUrl="publicard.aspx" Behaviors="Close" RestrictionZoneID="NavigateUrlZone"
    Height="100" Skin="Simple" VisibleStatusbar="False" Title="Caricamento biglietto da visita..."
    ShowContentDuringLoad="False" Width="300" Modal="true">
</telerik:RadWindow>

and code behind is:
Dim script As String = "function f(){$find(""" + RadWindowCard.ClientID + """).show(); Sys.Application.remove_load(f);}Sys.Application.add_load(f);"
ScriptManager.RegisterStartupScript(Me, Me.[GetType](), "key", script, True)

code behind
Dim script As String = "function f(){$find(""" + RadWindowCard.ClientID + """).show(); Sys.Application.remove_load(f);}Sys.Application.add_load(f);"
ScriptManager.RegisterStartupScript(Me, Me.[GetType](), "key", script, True)


this is the code web page that is load into radwindow:

<form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true">
        </asp:ScriptManager>
        <asp:HiddenField ID="contenitoredati" runat="server" />
        <telerik:RadFormDecorator ID="QsfFromDecorator" runat="server"
        DecoratedControls="Default, Textbox, Textarea, Label" Skin="Sunset" />
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"
            DefaultLoadingPanelID="RadAjaxLoadingPanel1">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="ImageButtonRicerca">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="Panel1"
                            LoadingPanelID="RadAjaxLoadingPanel1" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="RadMenu1">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel1"
                            LoadingPanelID="RadAjaxLoadingPanel1" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>
        <telerik:RadNotification ID="RadNotification1" runat="server"
                   AutoCloseDelay="3500" Height="100px" Skin="Simple" Title="Trycontact"
                   TitleIcon="~/Image/iconlogo.png" Width="400px" Position="Center">
               </telerik:RadNotification>
        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" Runat="server"
            Skin="Simple" BorderColor="#D5842B" BorderStyle="Double"
            HorizontalAlign="Center" BorderWidth="1px">
        </telerik:RadAjaxLoadingPanel>
        <telerik:RadWindowManager ID="RadWindow_Conferma" runat="server" Modal="True" Skin="Office2010Silver">
              <Windows>
                   <telerik:RadWindow ID="RadWindowAppuntamento" runat="server"
                      ShowContentDuringLoad="false" Width="527px" Height="450px" Title="Richiesta appuntamento" Behaviors="None"
                      Modal="True" IconUrl="/image/iconlogo.png" Behavior="None" Font-Names="Verdana" Font-Size="Small"
                      VisibleStatusbar="False" Skin="Simple" ReloadOnShow="True" NavigateUrl="appuntamento.aspx">
                    </telerik:RadWindow>
               </Windows>
        </telerik:RadWindowManager>                 
       <div class="profilebody">
       </div>  
    </form>

this is css code:
.profilebody
{
            background-image: url('/Image/banner.jpg');
            background-repeat: no-repeat;
            width: 1024px;
            height: 85px;
            text-align:center;
            font-family: Verdana;
            font-size: small;
            margin: 0px;
            border: 0px;
            position: static;
}


please to see the image posted: name image is immagine_new.jpg

Marin Bratanov
Telerik team
 answered on 07 Mar 2013
7 answers
145 views
Unless I'm doing something wrong or missing something, it doesn't seem as though your SPRadGrid web part works with SQL views.  I see any of the tables but not views.  We almost never expose a table but almost always use views to get the data we need, especially when working with SQL.

Plans to include views or maybe I'm really missing something here.
Tsvetoslav
Telerik team
 answered on 07 Mar 2013
3 answers
288 views
Hi,

I have a set of links in one of the usercontrol. The same usercontrol contains two RadWindows. I am binding another usercontrol within the ContentTemplate section of RadWindow. When the user clicks on the link a radwindow should be opened. When the user clicks on the button that present in the radwindow, i need to perform some process and close the radwindow. Then show the second radwindow with a success message. I am unable to close the first radwindow from usercontrol button click event. How to achieve this?

Thanks in advance.
UserControl 1
<script type="text/javascript">
function closeAndOpen() {
        $find("<%= modalWindow.ClientID %>").close();
        $find("<%= confirmationWindow.ClientID %>").show()
    }
</script>
<div class="links">
                <asp:LinkButton ID="changeProfile" runat="server" meta:resourcekey="changeUsername"
                    CssClass="fontUnderline linkFont noLink" CausesValidation="False" OnClick="changeProfile_Click"></asp:LinkButton>
            </div>
  
<telerik:RadWindowManager ID="radWindowManager" runat="server" DestroyOnClose="false"
        EnableShadow="true" ShowContentDuringLoad="false" VisibleStatusbar="false" ReloadOnShow="true"
        Opacity="100">
        <Windows>
            <telerik:RadWindow ID="modalWindow" runat="server" Visible="false" VisibleOnPageLoad="true" VisibleStatusbar="false" Behaviors="None">
                <ContentTemplate>
                    <uc:Profile ID="changeProfileControl" runat="server" Visible="false" />                    
                </ContentTemplate>
            </telerik:RadWindow>
            <telerik:RadWindow ID="confirmationWindow" runat="server" Visible="false" VisibleOnPageLoad="true" VisibleStatusbar="false" Behaviors="None">
                <ContentTemplate>
                    <uc:successmessage ID="confirmation" runat="server" />
                </ContentTemplate>
            </telerik:RadWindow>
        </Windows>
    </telerik:RadWindowManager>
  
UserControl 2:
  
In my button click event I am registering the script
  
Protected Button_Click()
{
  
//Do some process
  
ScriptManager.RegisterStartupScript(this, this.GetType(), "Testing Script", "closeAndOpen();", true);
  
}
rdmptn
Top achievements
Rank 1
 answered on 07 Mar 2013
1 answer
103 views
Hello.

I have a tree with n columns. n-1 columns have fix size and one column does not have fix size ("Name"). On a high resolution, the tree appears ok, the "Name" columns fills all the remaining space. When the resolution is small, the column "Name" is completely hidden. I would like to have the posibility of setting MinWidth to the "Name" column.

What can I do?
Thank you.
Galin
Telerik team
 answered on 07 Mar 2013
6 answers
262 views
I would like to insert one row at the top of a spreadsheet when using RadGrid1_BiffExporting, and possibly turn on filtering on the actual header column now in row 2.

How do I go about this as I cannot find any documentation on this?

I tried the following but it does not seem to do anything as I cannot find an add or insert method.

using eis = Telerik.Web.UI.ExportInfrastructure;
   
protected void RadGrid1_BiffExporting ( object sender, GridBiffExportingEventArgs e )
{
  eis.Table tbl = e.ExportStructure.Tables [ 0 ];
    
  eis.Row row = new eis.Row ( tbl );
    
  eis.Cell newCell = row.Cells [ 1, 1 ];
  
  newCell.Value = "Default text used in this cell.";
  newCell.Colspan = tbl.Columns.Count - 1;
  newCell.Style.Font.Bold = true;
  newCell.Style.Font.Size = 15;
    
  ... there is no Add()/Insert(...) method that I can find.
}

thanks in advance.
Alex
Top achievements
Rank 1
 answered on 07 Mar 2013
2 answers
262 views
Hi there

Does anyone know how I can resize the image proportionally to whatever image is in the editor at the time and then save it?

To Clarify:
What I would like to be able to do is:
When the user clicks my save button (outside the image editor) whatever image is in the editor would be automatically resized proportionally to whatever image is in the editor (just in case it has been cropped or rotated or whatever) to width and/or height that I would specify and then saved with the new dimensions. i.e. if I specify width of 200, the height would be worked out proportionally so that the image would retain the same aspect ratio as it had at the time of saving and save with a width of 200 and a height of ?
All of this, server side (VB)

I am able to save edited images with my save button, but don't know how to do the resizing bit.
Resizing must be proportional so that the image isn't distorted in any way because of my new dimensions

Any help gratefully received :-)
Sauge
Top achievements
Rank 1
 answered on 07 Mar 2013
1 answer
81 views

I am running into an issue with Y-axis scales in combination chart .I have 2 measures as 2 series items represented on Y axis with data ranging from 2 to 3 and x-axis has months, left the measures box field empty. The y-axis scale after the report is run is giving multiple values like 0,0,1,1,2,2,3,3..so on instead of 0,1,2,3,4.. I have tried changing the scale interval number under the properties but it's causing the data skewed

Petar Kirov
Telerik team
 answered on 07 Mar 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?