Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
172 views
I have a user control that opens a Radwindow in modal mode with a call back function that updates a content area on the control.  Works great.  But when I have more than one instance of the control on a single page, not so good because the java script methods get duplicated. It's an Address control so I need to have more than one instance on a page. 
Let me give what I tried to do, but only leads to a javascript error:
Rather than have the sript coded on the control in markup, I add the script dynamically at page load as follows:

 

if (Parent.Page.ClientScript.IsClientScriptBlockRegistered(AddressScriptName))

 

Parent.Page.ClientScript.RegisterClientScriptBlock(

this.GetType(), AddressScriptName, MakeScript());

 

m_rwAddressLookups.ClientCallBackFunction =

"CallBackFromAddressFunction" + AddressScriptName;

 

m_btnAdressLookup.Attributes.Add(

"onclick", "return ShowAddressLookupDialog" + AddressScriptName + "();");

 

 

private string AddressScriptName{

 

 

get { return "AddressScript" + this.ClientID; }

 

}

 

private string MakeScript()

 

{

 

return @"<script type='text/javascript'>

 

function ShowAddressLookupDialog"

 

+ AddressScriptName + @"()

 

{

var manager = $find('<%=m_rwmAddressLookups.ClientID %>');

manager.open(null, 'm_rwAddressLookups');

return false;

}

function CallBackFromAddressFunction"

 

+ AddressScriptName + @"(radWindow, returnValue)

 

{

var oArea = document.getElementById('<%=m_tbAddressId.ClientID %>');

if (returnValue)

{

oArea.innerText = returnValue.toString();

oArea.onchange();

}

}

</script>"

 

;

 

}
WHen I click the address lookup button the onclick event complains Object Expected on bolded function:

 

<

 

input type="submit" name="ctl00$ContentPlaceHolder1$m_contactAddressEdit$m_btnAdressLookup" value="Lookup Address" onclick="return ShowAddressLookupDialogAddressScriptctl00_ContentPlaceHolder1_m_contactAddressEdit();WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(&quot;ctl00$ContentPlaceHolder1$m_contactAddressEdit$m_btnAdressLookup&quot;, &quot;&quot;, true, &quot;&quot;, &quot;&quot;, false, false))" id="ctl00_ContentPlaceHolder1_m_contactAddressEdit_m_btnAdressLookup" class="FormButton" />

Appears that it does not find the client id qualified script function.

Any ideas?

 

Tervel
Telerik team
 answered on 16 Oct 2008
3 answers
225 views
Hi!

I have noticed a strange behaviour when using the RadTextBox property ShowButton set to true. When the ShowButton is true and you type text that is longer that the textbox, then the textboxs width is extenden so that the text fits. 

Is this a bug?

Code to reproduce:
<form runat="server" id="form1">  
  <telerik:RadScriptManager ID="RadScriptManager1" runat="server">  
  </telerik:RadScriptManager> 
  <telerik:RadTextBox ID="RadTextBox1" runat="server" ShowButton="false"   
    Width="125px"></telerik:RadTextBox> 
</form> 
 
Pavel
Telerik team
 answered on 16 Oct 2008
1 answer
145 views
I am having problems with updating/inserting/deleting objects in a RadGrid whose data source is bound to a collection. Particulars:

- The collection is bound to the RadGrid when NeedDataSource fires as I am using a treeview control to filter the results in the RadGrid.
Protected Sub AccountDetails_NeedDataSource(ByVal source As Object, ByVal e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles AccountDetails.NeedDataSource
accts = af.GetAccounts(TreeNav.SelectedValue) 'where af.GetAccounts returns a collection of accounts
AccountDetails.DataSource = accts
End Sub
- Only some of the fields within the object are displayed in the RadGrid (pk is not displayed); several fields are not primative types (two fields are also collections).

- Update/Insert functions are located in the BLL and take the edited/selected object as a parameter.

- I cannot seem to retrieve the selected/edited object from the RadGrid programmatically (datasource is null?!?), and when I try to get information by populating a hashtable with ExtractValuesFromItem (less than ideal as I do not have all the data displayed in the grid), the key values are null as well.

Would someone be able to provide insight on how I can accomplish retrieving the original/edited objects from the RadGrid? Are there any code examples that I missed while searching? Many thanks.
Maria Ilieva
Telerik team
 answered on 16 Oct 2008
5 answers
166 views

I'm having a problem figuring out the correct way to populate an edit form with data when using a master/detail hierarchy.

The problem I'm having is when I show the edit form for a detail item in one hierarchy group the data in any visible edit form in the other hierarchy groups no longer has data so the edit form is empty. I'm using the edit form to display additional, static, information about the detail item.

The way I currently have it setup is to use the ItemDataBound event to check if the item is in edit mode and if it's a GridEditFormItem. From there I can get the DataItem from the item to populate labels in the edit form template. This works fine when showing the edit form for any of the detail rows in the current hierarchy group. However, checking e.Item.IsInEditMode only catches the items in the hierarchy group the expanded item is in. This means the other previously expanded hierarchy group detail rows never get repopulated with data so their form's are blank and introduces my problem.

I tried to update my code to use the ItemCreated event but for the items not in the current hierarchy group both the e.Item.DataItem and the edit form's ParentItem.DataItem are null.

Anyone have any suggestions or other questions that might help me track down the correct way to do this?

Daniel
Telerik team
 answered on 16 Oct 2008
1 answer
54 views

User does not receive an error? Has anybody coded around this? Or better
yet, anyway to make the day selected on the calendar the default day
selected.

Thanks in advance

Peter
Telerik team
 answered on 16 Oct 2008
2 answers
178 views
Hi
   I am using Slider for the page navigation and it work for all other pages in our project .But I have problem in the below code.It doesnt Shows the records in the second page.I am getting No records to display message even if I have those records displayed in single page if  I am not using the page size option.
My code....
Client side.

 

<telerik:RadAjaxManager id="RadAjaxManager1" runat="server">

 

 

<AjaxSettings>

 

 

<telerik:AjaxSetting AjaxControlID="RadGridPages">

 

 

<UpdatedControls>

 

 

<telerik:AjaxUpdatedControl ControlID="RadGridPages" LoadingPanelID="RadAjaxLoadingPanel1"/>

 

 

</UpdatedControls>

 

 

</telerik:AjaxSetting>

 

 

</AjaxSettings>

 

 

</telerik:RadAjaxManager>

 

 

<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Height="75px" Width="75px" Transparency="50">

 

 

<img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>' style="border:0;" />

 

 

</telerik:RadAjaxLoadingPanel>

 

 

<telerik:RadGrid id="RadGridPages" CssClass="RadGrid" EnableTheming="False" EnableEmbeddedBaseStylesheet="False" AllowSorting="True" AllowMultiRowSelection="true"

 

 

Skin="" runat="server" Width="100%" AllowPaging="True" AutoGenerateColumns="False" PageSize="5" >

 

 

<alternatingitemstyle cssclass="RadGridItem" />

 

 

<ItemStyle CssClass="RadGridItem" ></ItemStyle>

 

 

<HeaderStyle CssClass="RadGridHeader"></HeaderStyle>

 

 

<PagerStyle Mode="Slider" alwaysvisible="True" CssClass="RadGridPager" Visible="true" EnableSEOPaging="True" ></PagerStyle>

 

 

<ClientSettings EnablePostBackOnRowClick="false">

 

 

<Selecting AllowRowSelect="true" />

 

 

</ClientSettings>

 

 

<MasterTableView CommandItemDisplay="Top" AutoGenerateColumns="False" Width="100%">

 

 

<CommandItemTemplate>

 

 

<div style="padding:10px 0px;" class="newtd">&nbsp;&nbsp;&nbsp;

 

 

<asp:LinkButton ID="LinkButton1" OnClientClick="javascript:return confirm('Delete the Webpage(s)?')"

 

 

runat="server" CommandName="DeleteSelected" CausesValidation="false" ><img style="border:0px;vertical-align:middle;" alt="" src="../Images/icons/Delet.gif" /> Delete the Webpage(s)</asp:LinkButton>

 

 

&nbsp;&nbsp;&nbsp;

 

 

<asp:LinkButton ID="LinkButton4" runat="server" CommandName="RebindGrid"><img style="border:0px;vertical-align:middle;" alt="" src="../Images/icons/Refresh.gif" /> Refresh </asp:LinkButton>

 

 

</div>

 

 

</CommandItemTemplate>

 

 

<Columns>

 

 

<telerik:GridTemplateColumn UniqueName="SrlNo" AllowFiltering="False" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="2%" >

 

 

<ItemTemplate >

 

 

<asp:Label ID="lblSrlNo" runat="server" />&nbsp;&nbsp;

 

 

<asp:Label ID="lblSelectedNew" Text='<%# Container.DataItem("WebSite") & "_" & Container.DataItem("PageName") %>' runat="server" Visible="false"></asp:Label>

 

 

</ItemTemplate>

 

 

</telerik:GridTemplateColumn>

 

 

<telerik:GridClientSelectColumn HeaderStyle-Width="3%" />

 

 

<telerik:GridBoundColumn DataField="WebSite" UniqueName="WebSite" ItemStyle-HorizontalAlign="Left" HeaderText="Website" ShowSortIcon="false" ></telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn DataField="PageName" UniqueName="PageName" ItemStyle-HorizontalAlign="Left" HeaderText="Webpage" ShowSortIcon="false" ></telerik:GridBoundColumn>

 

<%

-- <telerik:GridBoundColumn DataField="OriginalLocation" UniqueName="OriginalLocation" HeaderText="Original Location" ItemStyle-HorizontalAlign="Left" ShowSortIcon="false"></telerik:GridBoundColumn>

 

--

%>

 

 

<telerik:GridBoundColumn DataField="DeletedDate" UniqueName="DeletedDate" HeaderText="Deleted Date" ItemStyle-HorizontalAlign="Left" ShowSortIcon="false"></telerik:GridBoundColumn>

 

 

<telerik:GridTemplateColumn UniqueName="Restore" HeaderText="Restore" AllowFiltering="False">

 

 

<ItemTemplate>

 

 

<asp:LinkButton ID="LinkButton2" runat="server" Text="Restore" CommandName="PageName" CommandArgument='<%# Container.DataItem("WebSite") & "_" & Container.DataItem("PageName") %>' ></asp:LinkButton>

 

 

</ItemTemplate>

 

 

</telerik:GridTemplateColumn>

 

 

</Columns>

 

 

 

<ExpandCollapseColumn>

 

 

<HeaderStyle Width="20px"></HeaderStyle>

 

 

</ExpandCollapseColumn>

 

 

<RowIndicatorColumn>

 

 

<HeaderStyle Width="20px"></HeaderStyle>

 

 

</RowIndicatorColumn>

 

 

</MasterTableView>

 

 

<FilterMenu EnableTheming="True" Skin="WebBlue" enableembeddedbasestylesheet="False">

 

 

<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>

 

 

</FilterMenu>

 

 

</telerik:RadGrid>

 

and my Server side code...is

Imports

Telerik.Web.UI

 

Partial

Class Clients_ManageRecycled

 

 

Inherits System.Web.UI.Page

 

 

Dim oDb As New CMSDatabase

 

 

Dim SqlQry As String = ""

 

 

Dim ClientName As String = ""

 

 

Protected Sub Page_PreInit(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.PreInit

 

 

Dim UserTheme As MyThemes = Val(Session("@Theme"))

 

 

Me.Theme = UserTheme.ToString

 

 

End Sub

 

 

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

 

Ajax.Utility.RegisterTypeForAjax(

Me.GetType)

 

ClientName = oDb.ExecuteScaler(

"Select DbName from clients where clientid =" & Request.QueryString("CID"))

 

 

' LinkButton1.Attributes.Add("Onclick", "javascript:return(fn_ValidateDelUsers(this.form));")

 

Session(

"AppSortOrder") = "Asc"

 

Session(

"AppSortName") = "Name"

 

 

 

End Sub

 

 

Protected Sub txtSearch_TextChanged(ByVal sender As Object, ByVal e As EventArgs)

 

 

Dim txt As TextBox = TryCast(DirectCast(sender, TextBox), TextBox)

 

 

Dim list As RadComboBox = DirectCast(((txt.NamingContainer).FindControl("rcbFieldName")), RadComboBox)

 

 

Dim [option] As String

 

 

If list.SelectedValue = "RestorePath" Then

 

[option] =

" = "

 

 

Else

 

[option] =

" LIKE "

 

 

End If

 

 

Dim filterExpression As String

 

 

If [option] = " = " Then

 

filterExpression =

"(" + list.SelectedValue + [option] + txt.Text + ")"

 

 

Else

 

filterExpression =

"(" + list.SelectedValue + [option] + "'" + txt.Text + "%'" + ")"

 

 

End If

 

RadGridPages.MasterTableView.FilterExpression = filterExpression

RadGridPages.MasterTableView.Rebind()

 

End Sub

 

 

Protected Sub RadGridPages_NeedDataSource(ByVal source As Object, ByVal e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles RadGridPages.NeedDataSource

 

 

Try

 

 

Dim DT As New DataTable

 

 

Dim MysitePath As String = Replace(ConfigurationManager.AppSettings("MapPath"), "/", "\")

 

MysitePath = Mid(MysitePath, 1, InStrRev(Mid(MysitePath, 1, Len(MysitePath) - 1),

"\"))

 

MysitePath = MysitePath &

"_Recycled\" & ClientName & "\"

 

hidRecycledPath.Value = MysitePath

 

Dim Dir As New DirectoryInfo(MysitePath)

 

DT.Columns.Add(

New Data.DataColumn("PageName"))

 

DT.Columns.Add(

New Data.DataColumn("OriginalLocation"))

 

DT.Columns.Add(

New Data.DataColumn("DeletedDate"))

 

DT.Columns.Add(

New Data.DataColumn("WebSite"))

 

 

Dim DR As Data.DataRow

 

 

For Each Website As DirectoryInfo In Dir.GetDirectories

 

 

For Each WebPage As FileInfo In Website.GetFiles("*.aspx")

 

 

'Response.Write(Website.Name & "\" & WebPage.Name & "<br>")

 

DR = DT.NewRow()

DR.Item(

"PageName") = Replace(WebPage.Name, WebPage.Extension, "")

 

DR.Item(

"OriginalLocation") = Website.Name & "_Stage"

 

DR.Item(

"DeletedDate") = WebPage.LastWriteTime

 

DR.Item(

"WebSite") = Website.Name

 

DT.Rows.Add(DR)

 

Next

 

 

Next

 

DT.AcceptChanges()

RadGridPages.Visible =

True

 

RadGridPages.DataSource = DT

 

Catch ex As Exception

 

RadGridPages.Visible =

False

 

lblMsg.Text =

"No File Found"

 

 

End Try

 

 

 

End Sub

 

 

Protected Sub RadGridPages_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles RadGridPages.ItemDataBound

 

 

If e.Item.ItemType = GridItemType.AlternatingItem Or e.Item.ItemType = Telerik.Web.UI.GridItemType.Item Then

 

 

'e.Item.Cells(3).Text = e.Item.DataSetIndex + 1

 

 

Dim lbl As Label

 

lbl =

CType(e.Item.FindControl("lblSrlNo"), Label)

 

lbl.Text = e.Item.ItemIndex + 1

 

Dim lblchk As Label

 

lblchk =

CType(e.Item.FindControl("lblSelectedNew"), Label)

 

 

End If

 

 

End Sub

 

 

Protected Sub RadGridPages_ItemCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles RadGridPages.ItemCommand

 

 

If e.CommandName = "PageName" Then

 

 

Dim sql As String = ""

 

 

Dim Odt As New DataTable

 

sql =

"select * from " & ClientName & ".dbo.Recycled where WebPageName like '" & e.CommandArgument.ToString.Split("_")(1) & "'"

 

 

'Response.Write(sql)

 

 

If oDb.IsExist(sql) Then

 

Odt = oDb.GetDataTable(sql)

 

Dim Tree As New ManageTree

 

 

Dim StructID As Decimal

 

 

For Each dr As DataRow In Odt.Rows

 

 

'Response.Write(dr.Item("ParentPath"))

 

 

Dim fileOldAspx As New FileInfo(hidRecycledPath.Value & e.CommandArgument.ToString.Split("_")(0) & "\" & e.CommandArgument.ToString.Split("_")(1) & ".aspx")

 

 

Dim fileOldAspxVb As New FileInfo(hidRecycledPath.Value & e.CommandArgument.ToString.Split("_")(0) & "\" & e.CommandArgument.ToString.Split("_")(1) & ".aspx.vb")

 

 

If File.Exists(hidRecycledPath.Value & e.CommandArgument.ToString.Split("_")(0) & "\" & e.CommandArgument.ToString.Split("_")(1) & ".aspx") Then

 

fileOldAspx.MoveTo(dr.Item(

"ParentPath"))

 

fileOldAspxVb.MoveTo(dr.Item(

"ParentPath") & ".vb")

 

 

End If

 

StructID &=

"," & Tree.CreateWebPage(e.CommandArgument.ToString.Split("_")(1), dr.Item("ParentID"), Request.QueryString("CID"), e.CommandArgument.ToString.Split("_")(0))

 

sql =

"delete from " & ClientName & ".dbo.Recycled where WebPageName like '" & e.CommandArgument.ToString.Split("_")(1) & "'"

 

oDb.ExecuteNonQuery(sql)

 

Next

 

 

Dim MyLoadscript As String = "parent.fraMnu.AddNode(""" & ClientName & """, """ & StructID & """);"

 

Page.ClientScript.RegisterStartupScript(

Me.GetType, "MyLoadscript", MyLoadscript, True)

 

 

'RadGridPages.Rebind()

 

 

End If

 

 

End If

 

 

End Sub

 

 

 

Protected Sub RadGridPages_DeleteCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles RadGridPages.DeleteCommand

 

 

Dim Wbpage As Label

 

 

Dim Sql As String

 

 

Dim i As Integer

 

Wbpage =

CType(e.Item.FindControl("lblSelectedNew"), Label)

 

File.Delete(hidRecycledPath.Value & Wbpage.Text.Split(

"_")(0) & "\" & Wbpage.Text.Split("_")(1) & ".aspx")

 

File.Delete(hidRecycledPath.Value & Wbpage.Text.Split(

"_")(0) & "\" & Wbpage.Text.Split("_")(1) & ".aspx.vb")

 

Sql =

"select structureid from " & ClientName & ".dbo.Recycled where WebPageName like '" & Wbpage.Text.Split("_")(1) & "'"

 

 

Dim MyLoadscript As String = "parent.fraMnu.AddNode(""" & ClientName & """, """ & oDb.ExecuteScaler(Sql) & """);"

 

Page.ClientScript.RegisterStartupScript(

Me.GetType, "MyLoadscript", MyLoadscript, True)

 

Sql =

"delete from " & ClientName & ".dbo.Recycled where WebPageName like '" & Wbpage.Text.Split("_")(1) & "'"

 

oDb.ExecuteNonQuery(Sql)

 

'RadGridPages.Rebind()

 

 

End Sub

 

 

Protected Sub RadGridPages_ItemCreated(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles RadGridPages.ItemCreated

 

 

If TypeOf e.Item Is GridPagerItem AndAlso TryCast(sender, RadGrid).PagerStyle.Mode = GridPagerMode.Slider Then

 

 

TryCast(TryCast(e.Item, GridPagerItem).Controls(0).Controls(1), RadSlider).EnableEmbeddedBaseStylesheet = True

 

 

TryCast(TryCast(e.Item, GridPagerItem).Controls(0).Controls(1), RadSlider).EnableEmbeddedSkins = True

 

 

TryCast(TryCast(e.Item, GridPagerItem).Controls(0).Controls(1), RadSlider).Skin = "WebBlue"

 

 

End If

 

 

End Sub

 

End

Class

 

One more thing this works fine if I change the page navigation mode to other mode other than slider.


Very urgent...Help me

nallamani
Top achievements
Rank 1
 answered on 16 Oct 2008
1 answer
147 views
I am looking to export the grid into excel using RadGrid.MasterTableView.ExportToExcel(). Here is the problem: we're using SSL and disallowing caching - this results in IE6 not being able to open or save the documents altogether.

The no caching header is set in the master page - so I'm thinking to use a page without a master page to export the file i.e. allow caching on the 'export' page, if you see what I mean. I can pass the grid reference to the export page but when I run the export method, nothing happens.

Is there anyway to get at the excel object or data so that I can stream it out to response manually? Or is there something wrong with my approach or is there a recommended workaround?

Thank you in advance.
Pavel
Telerik team
 answered on 16 Oct 2008
1 answer
118 views
I have master RadEditor in my screen and many slave editors(these get added dynamically). Slave editor is in a user control and have the ToolProviderID pointing to the master RadEditor.

In the user control page load I am binding the snippets to the slave editor. And it is not able to bind that. But as soon as I remove the ToolProviderID from the slave editor. It starts working fine.

Any inputs why this is happening?



George
Telerik team
 answered on 16 Oct 2008
3 answers
255 views
PROBLEM:
My problem is that I never see the Loading Panel, when I fire an ajax request with javascript code.  What am I doing wrong?

SCENARIO:
- I have an aspx page with an ajax manager, loading panel, and a bunch of ascx controls.
- My loading panel displays when a control in the page fires an ajax event.
- However my problem is that my loading panel does NOT display when my client side javascript fires the ajaxrequest method of the ajax manager.

- I generally add the ajaxsettings to my controls in Page_Load, and I have used this line in order to try to get it to display:

UCCIndexingRadAjaxManager.AjaxSettings.AddAjaxSetting(UCCIndexingRadAjaxManager, this.ucUCCIndexingFilingControlsParent.ucFilingDetails, this.UCCRadAjaxLoadingPanel);

- ucFilingDetails is a publically exposed user control, within another user control on this aspx page.  And UCCIndexingRadAjaxManager and UCCRadAjaxLoadingPanel are the ID's of my ajax manager and loading panel respectively.

- So by doing this, I am of course ajaxifying the ajax manager itself...
- Below are the declarations of my ajax manager and loading panel.  In this case, you can see that I also have ajaxified the ajaxmanager and specified a loading panel, but I do NOT do it both that way and with the code behind like I showed you above, at the same time.  I only tried doing it this way after commenting out my code-behind above.:

    <telerik:RadAjaxLoadingPanel ID="UCCRadAjaxLoadingPanel" runat="server" Height="75px" Width="75px" Transparency="50" MinDisplayTime="500">
        <img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>' style="border:0;" />
    </telerik:RadAjaxLoadingPanel>

    <telerik:RadAjaxManager runat="server" ID="UCCIndexingRadAjaxManager" OnAjaxRequest="UCCIndexingRadAjaxManager_AjaxRequest">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="UCCIndexingRadAjaxManager">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="ucUCCIndexingFilingControlsParent" LoadingPanelID="UCCRadAjaxLoadingPanel" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>

- Lastly, here is the javascript function that calls ajaxrequest.  This does fire the event and the code behind runs, but I never see the loading panel.
- As you can see with the commented out code, I have even tried to show the loading panel explicitly with code, by finding it and calling the show method.  No luck there either.

    function saveFiling()
    {
        //alert("You hit ctrl-s");
        //currentLoadingPanel = $find("ctl00_ContentPlaceHolder_UCCRadAjaxLoadingPanel");
        //currentUpdatedControl = "ctl00_ContentPlaceHolder_ucUCCIndexingFilingControlsParent_ucFilingDetails";
        //currentLoadingPanel.show(currentUpdatedControl);

        $find("<%=UCCIndexingRadAjaxManager.ClientID%>").ajaxRequest("SaveLienFiling");
    }

Brent
Top achievements
Rank 1
 answered on 16 Oct 2008
3 answers
255 views
I'm trying to use rad upload control with ajax but it fails.

Search the telerik support I found that according to xml request limitation I can never use ajax to upload files.

Instead I must cancel the ajax callback and do normal postback.

I used the following code snap to cancel the even

 

//disable ajax in case of uploading files

 

 

if(args.EventTarget == "<%=LinkButton_Send.UniqueID%>")

 

{

args.EnableAjax =

false;

 

 

}


It works perfectly as I need but It damage the GUI of my components [such as a rad grid]

this is a link for the snapshot of the damaged interface.
http://www.4shared.com/file/66858622/cdf7e426/damage.html
and this is the actual snapshot that must appear.
http://www.4shared.com/file/66858614/fb912d0/actual.html

when I removed the line that cancel the ajax it works fine and no interface damage.

Is there any work a round for my problem.
 
Note:
  • I'm using radcontrols for asp.net ajax 2008 Q2
  • asp.net framework 3.5
Lini
Telerik team
 answered on 16 Oct 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?