Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
162 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
343 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
141 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
274 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
97 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
253 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
239 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
75 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
4 answers
308 views
I have tried to create a Horizontal Rule <hr /> separator and it outputs the text <hr /> or <hr>  instead of a  HR line  -------------------

RadComboBoxItem seperator = new RadComboBoxItem("<hr />""<hr />") { IsSeparator = true };


I figure this has to do with encoding and etc.. Suggestions on how to do this?

Wired_Nerve
Top achievements
Rank 2
 answered on 07 Mar 2013
7 answers
209 views
http://www.telerik.com/registration-

i'm using telerik gridview like here http://demos.telerik.com/aspnet-ajax/grid/examples/overview/defaultcs.aspx but in that demo when filter data it shows a loding with blue background in my case it reloads my page everytime i filter it, maybe because i'm getting the data from different tables into the rad gridview?

i have enabled ajax so why it reloads? is there a way to not refresh the page like that

by the way how to activate pdf export?
choose default id panel is empty , why? i'm using metro skin

also how can i edit some fields only when we are at edit template i dont see the textboxes in designtime...

also filter options are not getting translates nor filter when we set culture why?

Eyup
Telerik team
 answered on 07 Mar 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?