Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
284 views

Hi,

 

I have a radgrid and i have an image button to export .  On click of image button show loading panel and once the file is exported close the loading panel.But once i hit the export the loading panel still remains even after the file is downloaded. Can you help me  to show loading panel during Export to excel. 

 

Thanks in Advance.

Vvamc
Top achievements
Rank 1
 answered on 29 Sep 2015
4 answers
296 views

I have a few rad RadButtons in a sequence. I have defined them with custom images only.

When I click or hover, the button appears to either grow slightly or is offset by a few pixels.

This causes content to the right and below to shift and it is quite uncomfortable to see.

I've tried to align the buttons in a table with fixed row height and width about 4 pixels wider than the buttons to see if it would absorb the slack. Unfortunately even the table cells shift.

I've not seen this before, and it does not happen if the same buttons use text in place of images.

<telerik:RadButton ID="RadButton2" runat="server" Text="RadButton" Image-ImageUrl="~/Images/video_icon_24.png" Image-HoveredImageUrl="~/Images/video_icon_24_hover.png" ButtonType="SkinnedButton" Height="24px" Width="24px" NavigateUrl="lulavision.aspx" ToolTip="Showtime!"></telerik:RadButton>
<telerik:RadButton ID="RadButton1" runat="server" Text="RadButton" Image-ImageUrl="~/Images/music_icon_24.png" Image-HoveredImageUrl="~/Images/music_icon_24_hover.png" ButtonType="SkinnedButton" Height="24px" Width="24px" NavigateUrl="lulavision.aspx" ToolTip="Showtime!"></telerik:RadButton>

Tomica
Top achievements
Rank 2
 answered on 29 Sep 2015
1 answer
106 views

Running 2015.2.826.45

I accidentally posted this in the Upload forum, not AsyncUpload, so I am reposting it.  This used to work, but we recently changed environments and I am not sure where to check for problems.

<telerik:RadAsyncUpload runat="server" Width="300" SkinID="defaultUpload" ID="uImportFile" OnFileUploaded="fileUploaded" AllowedFileExtensions=".xls,.xlsx" OverwriteExistingFiles="True" AutoAddFileInputs="False" MaxFileInputsCount="1"                    TargetFolder="~/UploadedFiles" OnClientFileUploadFailed="uploadFailed"><br></telerik:RadAsyncUpload>

As soon as the user selects the file to be uploaded, a temp file is created based on the name of the upload in App_Data/RadUploadTemp.  But then a postback happens, the file is removed from RadUPloadTemp, but it not moved into the UploadedFiles folder. ​This happens on a production server as well as locally.  I have set permissions on the folder to full control.  Tried Chrome, IE, FireFox and got the same results.  The OnClientUploadFailed event is not firing.  The OnFileUploaded even is firing.  What am I missing?

Thanks,
Randy

Ivan Danchev
Telerik team
 answered on 29 Sep 2015
4 answers
241 views
Hi,

I have a RadFilter attached to a RadGrid that has DateTime columns.  The DateTime values are stored in UTC format but are displayed to the user in their local timezone. When the user creates a filter on one of the DateTime columns I need a way to convert the value on the filter to the equivalent UTC value and then filter on those results.

Thanks for any help,

jason

License
Top achievements
Rank 1
 answered on 29 Sep 2015
2 answers
101 views

Hi, 

I am getting following error If I ​​use any control inside RadAjaxPanel that causes autopostback (such as changing RadComboBox selection), once after seeing the confirmation from "OnBeforeUnload" event and opts to ​Stay on the ​page.

 

Exception: screen:sys.webforms.pagerequestmanagerparsererrorexception

I am using following code for on​BeforeUnload event handling:

                window.onbeforeunload = function(e)
                {                   
                    if (IsDirty() == true)
                    {
                        var ev = e || window.event;
                        ev.returnValue = "Are you sure?";
                        return "Are you sure?";
                    }
                }

Reference url: http://www.telerik.com/forums/isdirty---ajax-dirty-panel

 

Please help me into this issue.

 

thanks!

Ankit

Maria Ilieva
Telerik team
 answered on 29 Sep 2015
1 answer
152 views
I have a master page that has a RadSkinManager on it. The user is able to select the desired skin from the chooser on the master page and it gets applied to all controls on all the pages that inherit from the master page. My issue is that I have some aspx pages that are being used as radwindows that do not use the master page. I need to be able to get the value of the skin in order to apply it to these pages. PersistenceMode on the radskin manager is 'Cookie', but I don't know what the name of the cookie is. Please advise on how to get this value from the skin manager.
Konstantin Dikov
Telerik team
 answered on 29 Sep 2015
1 answer
121 views

Hi,

 

I want to disable some selected rows (I use a GridClientSelectColumn) in my grid. The user must not be allowed to deselect these rows, but he is free to select

other rows. The originally selected rows have to stay selected.

Disabling the row is no problem, I do this server-side in the RowBound event handler. But these can still be (de)selected.

Is there some easy way to "lock" the selected rows or do I have to program this behavior in javascript?

If I have to do that, how can I prevent a row from being deselected (e.g. if the user just clicks another row which will deselect all other rows)?

 

Thanks!

Eyup
Telerik team
 answered on 29 Sep 2015
8 answers
307 views
Hi,

Is it possible to change the radwindow's border color (and other settings) from client-side?  I cannot change it from server-side, because I followed the article "Opening a RadWindow from Within a RadWindow" to reference the parent's RadWindow.

Thanks

Raymond
Gayathri
Top achievements
Rank 1
 answered on 29 Sep 2015
1 answer
163 views

Hello,

The Update command does not work when I try to update values inside a RadGrid that resides inside a UserControl.  

The UserControl is loaded into a TabStrip tab when the tab is clicked by the user.  This is the code that loads the user control:

parent.Controls.Clear();
UserControl ctrl = (UserControl)LoadControl(controlName);
string userControlID = controlName.Split('.')[0];
userControlID = userControlID.Replace("/", "").Replace("~", "") + "_UC";
ctrl.ID = userControlID;
parent.Controls.Add(ctrl);

I'm using Advanced Databinding for the Radgrid like so:

protected void rgdHousingVersion_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)
{
    rgdHousingVersion.DataSource = BLL.GetAHUHousingVersions();
}

And here's the HTML for the UserControl:

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
 
<telerik:RadAjaxManagerProxy ID="rampAdminHousingVersion" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="rgdHousingVersion">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="rgdHousingVersion" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManagerProxy>
 
<telerik:RadGrid ID="rgdHousingVersion" runat="server"
    OnNeedDataSource="rgdHousingVersion_NeedDataSource"
    OnEditCommand="rgdHousingVersion_EditCommand" OnUpdateCommand="rgdHousingVersion_UpdateCommand"
    AutoGenerateColumns="false"
    AllowPaging="false">
    <MasterTableView DataKeyNames="HousingID" CommandItemDisplay="Top" InsertItemPageIndexAction="ShowItemOnCurrentPage" EditMode="InPlace" EnableViewState="true">
        <Columns>
            <telerik:GridEditCommandColumn ButtonType="ImageButton" EditImageUrl="~/Images/Graphics/16/Change_16.png"></telerik:GridEditCommandColumn>
            <telerik:GridBoundColumn DataField="HousingID" HeaderText="Housing ID" UniqueName="HousingID"></telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="Description" HeaderText="Description" UniqueName="Description"></telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="Reference" HeaderText="Reference" UniqueName="Reference"></telerik:GridBoundColumn>
        </Columns>
        <EditFormSettings>
            <EditColumn ButtonType="ImageButton" />
        </EditFormSettings>
    </MasterTableView>
</telerik:RadGrid>

Here's the code-behind for the OnEditCommand and OnUpdateCommand:

protected void rgdHousingVersion_EditCommand(object sender, GridCommandEventArgs e)
{
    //Does fire
}
 
protected void rgdHousingVersion_UpdateCommand(object sender, GridCommandEventArgs e)
{
    //Does NOT fire
}

I'm really not sure what I'm doing wrong.  Why is the UpdateCommand not firing?  Any help is appreciated.  I have not been able to find an answer to this problem anywhere.  Thanks!

 

Kostadin
Telerik team
 answered on 29 Sep 2015
5 answers
139 views
Hi,
I have set 
EnableRangeFiltering="true"
and fetching filter expression as string on ClientEvents>OnCommand event with code as
sender.get_masterTableView().get_filterExpressions().toString()


Output of above is:
([CreatedDate] >= '01,Aug,,2013') AND ([CreatedDate] <= '09,Aug,,2013')

I dont know why that comma(,) appears.
Eyup
Telerik team
 answered on 29 Sep 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?