Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
254 views
Hello,

I have a RadAjaxManager which fires FileUploaded when the file is uploaded, but when I do a postback, the event is fired another time !

How can I specify that I only want the ajax feature (I do a SaveAs() in FileUploaded, so when the second event is fired, it throw an error)

Thank you in advance !
Peter Filipov
Telerik team
 answered on 05 Jul 2011
3 answers
123 views

Hello ,

i have a dynamically created raddock , ( from the example)  but i have set is radDockZoneID  to " " so it would be floating once it is created , i want to creat a command that makes it docked back when clicked, and if its docked it will return to its floating position again ?
Slav
Telerik team
 answered on 05 Jul 2011
1 answer
141 views
Hi,

When setting custom attributes server-side, it seems like IE9 leaks some memory when posting an updatepanel.

Sample:
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="menumem.aspx.vb" Inherits="WebApplication4.menumem" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="ccc" runat="server">
    </telerik:RadScriptManager>
    <div>
        <asp:UpdatePanel ID="up" runat="server" ChildrenAsTriggers="true" UpdateMode="Conditional">
            <ContentTemplate>
                <asp:Button ID="aa" runat="server" Text="Hit me multiple times" />
                <telerik:RadMenu ID="rm" runat="server">
                    <Items>
                        <telerik:RadMenuItem Text="Test">
                        </telerik:RadMenuItem>
                        <telerik:RadMenuItem Text="Test">
                        </telerik:RadMenuItem>
                        <telerik:RadMenuItem Text="Test">
                        </telerik:RadMenuItem>
                        <telerik:RadMenuItem Text="Test">
                        </telerik:RadMenuItem>
                        <telerik:RadMenuItem Text="Test">
                        </telerik:RadMenuItem>
                        <telerik:RadMenuItem Text="Test">
                        </telerik:RadMenuItem>
                    </Items>
                </telerik:RadMenu>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
    </form>
</body>
</html>

Code behind:
Public Class menumem
    Inherits System.Web.UI.Page
 
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        For Each rmi As Telerik.Web.UI.RadMenuItem In rm.Items
            rmi.Attributes("test") = New String("c"c, 200000)
        Next
    End Sub
 
End Class

I have increased the size of the attribute that is set just to make the memory leak more obvious.
Each button click in this sample seems to leaks some memory, at least in IE9-mode!

In our real world application, we do notice this memory leak since we have a top menu that is always updated with updatepanel. The entire application (page) is very rarely reloaded in our application.

Regards
Caesar
Plamen
Telerik team
 answered on 05 Jul 2011
3 answers
172 views

Hi All,
i have a page in which i am using RadSplitter controls to design my page...
it has two panes header and content panes....
the content pane also has annother splitter which has left and right panes....
the left and right panes has different conent url that will call different pages.

in the left page i am using Rad treeview to get data from database....
i need to load the corresponding navigate url of the node clicked in the right pane which is in the parent page.

i tried to set the following code in the NodeClick event from code behined but nothing happene!!!

e.Node.Target = "ContentPane";

i don't know how to access the right RadPane of the parent page from the child left rad pane!!!

i will be very gratefull for any help...

Thanks
Asa'ad

Asa'ad
Top achievements
Rank 1
 answered on 05 Jul 2011
1 answer
66 views
I have a radgrid which is inside a nestedview. It has an autogenerated Delete button....when clicked, it works great and the grid is refreshed. However, when I "Insert" a new record, the DB is correctly updated but the grid is not refreshed. If I click the refres button on the grid, then all is well again.

Can someone explain why this might happen, and how I might fix it?

Thanks
Shinu
Top achievements
Rank 2
 answered on 05 Jul 2011
1 answer
110 views
Hello Telerik Team!

I need your help. I am creating a RadMenu where I wanted to take pictures of and ImageURL HoveredImageURL and use the CSS. But I just can not place at least one image using the CssClass RadMenuItem to bring in a single image, code below:
<telerik:RadMenu ID="RadMenu1" Runat="server">
            <Items>
                <telerik:RadMenuItem runat="server" Text="" CssClass="btnimage"   NavigateUrl="~/Default2.aspx" >
                </telerik:RadMenuItem>
            </Items>
</telerik:RadMenu>

The CSS File:

.btnimage
{
    background: url('img/unidades.jpg') no-repeat;
}

Note, I am using in my project "Theme", although a direct link in the css class without a path by Theme, did not work. I tried using also the EnableTheming = "true", but it still fails.

Please help me.

Thank you while

Raul
Princy
Top achievements
Rank 2
 answered on 05 Jul 2011
1 answer
102 views
Hi people
i have a grid which i add column in code behind.My problem is default scroll postion .I want default postion right of grid
my code is here
<telerik:RadGrid ID="grd"  runat="server"  AutoGenerateColumns="False" 
                    GridLines="None" Skin="Outlook" Width="1116px" 
                    Font-Bold="False" Font-Italic="False" 
                    Font-Overline="False" Font-Strikeout="False" Font-Underline="False" >
                    
<MasterTableView CommandItemDisplay="Top" EditMode="InPlace" Dir="RTL"  
                        NoMasterRecordsText="داده ای برای نمایش وجود ندارد" Width="100%" 
                        Font-Names="Tahoma" Font-Size="8.75pt" TableLayout="Fixed" >
    <CommandItemSettings AddNewRecordText="ثبت محل جدید" RefreshText="به روز رسانی" 
        ShowRefreshButton="False"    />
             
  
             
<RowIndicatorColumn>
<HeaderStyle Width="20px"></HeaderStyle>
  
<ItemStyle Width="150px"></ItemStyle>
</RowIndicatorColumn>
             
  
             
    <Columns>
        <telerik:GridEditCommandColumn ButtonType="PushButton"  CancelText="انصراف" 
            EditText="ویرایش" InsertText="ذخیره" UpdateText="ویرایش">
            <HeaderStyle Width="150px" />
            <ItemStyle Width="150px" />
        </telerik:GridEditCommandColumn>
        <telerik:GridTemplateColumn  UniqueName="Places_ID_" DataField="Places_ID_" 
            HeaderText="محل"  >
         <EditItemTemplate>
            <telerik:RadComboBox ID="cmbPlaces" Width="200px" EnableItemCaching="true" LoadingMessage="صبر کنید" ShowWhileLoading="true"  ChangeTextOnKeyBoardNavigation="true" ShowDropDownOnTextboxClick="false"    Runat="server" AutoCompleteSeparator=","  AllowCustomText="true" Filter="Contains">
            </telerik:RadComboBox>
           
         </EditItemTemplate>
           <HeaderStyle Width="210px" />
            <ItemStyle Width="210px" />
        <ItemTemplate>
        <asp:Label ID="lblPlaces" CssClass="Lbl"   runat="server" Text='<%# Eval("Places_Place") %>'></asp:Label>
        </ItemTemplate>
            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
            <ItemStyle HorizontalAlign="Right" Width="200px" />
        </telerik:GridTemplateColumn>
  
  
    </Columns>
             
<EditFormSettings>
<EditColumn UniqueName="EditCommandColumn1"  ></EditColumn>
</EditFormSettings>
    <ItemStyle Font-Names="Tahoma" Font-Size="8.75pt" HorizontalAlign="Center" 
        VerticalAlign="Middle" Width="150px" />
  
<EditItemStyle Width="200px"></EditItemStyle>
  
    <HeaderStyle Font-Bold="False" Font-Italic="False" Font-Names="Tahoma" 
        Font-Overline="False" Font-Size="Small" Font-Strikeout="False" 
        Font-Underline="False" HorizontalAlign="Center" VerticalAlign="Middle"  
        Wrap="True" Width="150px" />
    <CommandItemStyle Width="150px" />
</MasterTableView>
<ClientSettings>
<Scrolling AllowScroll="True"  ScrollHeight="350px"  >
</Scrolling>
</ClientSettings>
  
<EditItemStyle CssClass="test"></EditItemStyle>
  
<ItemStyle CssClass="test" Width="150px"></ItemStyle>
  
<FilterMenu EnableImageSprites="False"></FilterMenu>
  
<HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Outlook"></HeaderContextMenu>
                </telerik:RadGrid>

please help to me for solve this problem.I use RadControls for ASP.NET AJAX Q1 2010 SP1
Princy
Top achievements
Rank 2
 answered on 05 Jul 2011
2 answers
33 views
Hi,

Almost finished this project with the old controls (phew). The problem I am having can best be seen in the two images in this zip file.

Upon a return to search, the PageSize TextBox in the pager is not being displayed on load. However, as soon as the user clicks on any of the page links, the PageSize TextBox re-appears.

This is not a catastrophic result. But it does look unprofessional and I would like to resolve it.

If anyone recognises these symptoms, your assistance will be greatly appreciated.

Cheers
David
Top achievements
Rank 1
 answered on 05 Jul 2011
2 answers
97 views
Hi

I have a page called LocationSearch.aspx that has RadGrid that lists Locations. 

If you have one selected and you click an Edit button at the top of the page a RadWindow appears.

In it, a separate page called AddEditLocations.aspx that gives you a form populated with the selected locations details.

My RadWindow declaration looks like this.

<telerik:RadWindow ID="rwAddLocation" NavigateUrl="AddEditLocation.aspx" Title="Add/Edit Location" Modal="true" runat="server" Width="700" Height="600" /> 
            

The Edit button has an OnClick event that calls this javascript on the LocationSearch page.

function showAddLocationForm(){
    var win = $find("<%#rwAddLocation.ClientID %>");
    win.show();
    win.center();
}

This works a treat.

However, now that I am in the RadWindow's AddEditLocation page, I need to do 3 things.

1. I need to have an OnClick event that posts back so I can write to the DB.

2. Next, I need the RadWindow to Close

3. I need to LocationSearch page to refresh it's RadGrid to reflect data that may have changed during the edit.

Point 1 I have sussed. However I can't work out how this RadWindow can close itself or how it can get the parent page to refresh.

The reason we put the edit form in a separate page is that we need to reuse it elsewhere on the site. It remains an option that I may have to put the AddEditLocation.aspx form in the RadWindow on the LocationSearch page. We would rather not do that but if I had to be that way let me know please.

Any tips would be appreciated.

Brad

Brad
Top achievements
Rank 1
 answered on 05 Jul 2011
5 answers
94 views
On the top of my page is a ribbon bar, when I execute some code on the page that executes an ajax postabck without the whole page posting back as a resullt it blanks all the buttons on the selected tab, they do return if I switch tabs and go back to it though. I should also add that the ribbonbar is in my master page and the ajax requests occur in the content page.
Albert
Top achievements
Rank 1
 answered on 05 Jul 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?