Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
204 views
I have the following RadAjaxLoadingPanel that I am using to show a loading image when doing a search.

 

<asp:Panel ID="PanelUpdateProgress" runat="server">

 

 

<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" MinDisplayTime="2000" >

 

 

<div class="divloadingbackground" id="divTitle2" runat="server">

 

 

<div class="divloading">

 

 

<div id="Img1" class="imageloading" />

 

 

<asp:Label ID="LabelLoadingText" CssClass="labelloading" runat="server" Text="Loading Data..."></asp:Label>

 

 

</div>

 

 

</div>

 

 

 

</telerik:RadAjaxLoadingPanel>

 

 

 

<telerik:RadAjaxManagerProxy ID="AjaxManagerProxy1" runat="server">

 

 

<AjaxSettings>

 

 

<telerik:AjaxSetting AjaxControlID="buttonSearch">

 

 

<UpdatedControls>

 

 

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

 

 

</UpdatedControls>

 

 

</telerik:AjaxSetting>

 

 

</AjaxSettings>

 

 

</telerik:RadAjaxManagerProxy>

 

 

 

</asp:Panel>


When I first come into the page and click the search button(buttonSearch), which is included in a separate div not shown here with other code, the loading image comes up covering the whole page just as I would like.  However, when I do additional searches without leaving the page, the search itself executes, but the loading image does not come back up.  Am I missing a property that must be set in order to have the loading image come up again.

Thanks for any help that anyone may have.

Aaron


 

Aaron
Top achievements
Rank 1
 answered on 18 Aug 2009
7 answers
179 views
In a website I'm developing, I'm mapping URL paths to specific files with query strings. This was working great with the non-Ajax controls (both Q1 and Q2) but when I put in the AJAX Manager, or Panel, it breaks. Each time a page starts the request, an error will pop up saying the following:

Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 404

If I replace <telerik:RadAjaxPanel></telerik:RadAjaxPanel> with <radA:RadAjaxPanel></radA:RadAjaxPanel> everything goes back to working as expected.

Is there a way to get the AJAX version to work with URL mapping like the non-AJAX version? I can use the standard <radA:RadAjaxPanel> but I'd like to swap it out if at all possible.

Thanks!
leah solomon
Top achievements
Rank 1
 answered on 18 Aug 2009
0 answers
97 views
I have two RadComboBox & one of them has a treeview in it.  Same as cascading dropdowns When I select some item in my first radcombobox I need to load different items to my treeview (which is inside another radcombobox). But which event I can raise from the javascirpt for it ?
I tried combo.requestItems(node.get_text(),false);  I got error when I tried this.

Please help I am stuck.

 

venm
Top achievements
Rank 1
 asked on 18 Aug 2009
1 answer
119 views
I am sorting radgrid .
in itemdataboud i am using datasource of radgrid which is List<T>
when i click on column name to sort grid
in item databound i am not getting sorted datasource
that i know but how do i get sorted datasource in itemdata bound or dataview from radgrid
Vlad
Telerik team
 answered on 18 Aug 2009
3 answers
192 views
Dear Telerik-team,

When we installed the latest hotfix (2009.2_817), it seems that the HeaderDateFormat became broken.

They look like this in the TimeLineView: http://bart.nimio.info/images/fora/scheduler3.JPG, while we have the HeaderDateFormat set to "H:mm" (also notice the alignment of the two appointments. One is always standing a little lower than the other one. Would it be possible to keep all the appointments on the same level, except for the ones that overlap eachother?)

The same problem for the WeekView: http://bart.nimio.info/images/fora/scheduler4.JPG (HeaderDateFormat="dd/MM/yyyy").

T. Tsonev
Telerik team
 answered on 18 Aug 2009
3 answers
211 views
I have this strange problem. I have been using telerik controls for about 1 year now. i used extensively Rad Grid, never had problems.
I am migrating a project from .net 1.1 to 3.5 version. I created a new usercontrol which contains Rad Grid. on hitting Commnad Item "Add new record" which is automatically created. it is hitting initInsert Command, but when i enter the data and press insert or change the data and press update its not hitting item command. I have checked it many times.

 

 

 

 

 

<asp:Panel ID="panel1" runat="server">  
 
<table><tr><td> 
    <telerik:RadGrid ID="RadRelief" runat="server" AllowPaging="True" 
        AllowSorting="True" AutoGenerateColumns="False" GridLines="None"   
        Skin="Outlook" Width="794px" OnItemCommand="RadRelief_ItemCommand" OnInsertCommand="RadRelief_InsertCommand" OnUpdateCommand="RadRelief_UpdateCommand">  
        <PagerStyle NextPageText="&amp;gt;" PrevPageText="&amp;lt;" Mode="NextPrevAndNumeric">  
                </PagerStyle> 
        <MasterTableView CommandItemDisplay="Top" EditMode="InPlace">  
        <NoRecordsTemplate><div>No Records Found.</div></NoRecordsTemplate>  
        <Columns> 
        <telerik:GridTemplateColumn> 
        <EditItemTemplate> 
            <asp:ImageButton ID="ibUpdate" OnClick="ibUpdate_Click" runat="server" CommandName='<%# IIf( DataBinder.Eval(Container, "OwnerTableView.IsItemInserted"), "PerformInsert", "Update")  %>' ImageUrl="~/App_Themes/Operations/images/Icons/accept.gif" /> 
            <asp:ImageButton ID="ibCancel" runat="server" CausesValidation="false" CommandName="Cancel" ImageUrl="~/App_Themes/Operations/images/Icons/cancel.gif" /> 
            </EditItemTemplate> 
            <ItemTemplate> 
            <asp:HiddenField ID="hidvalue" runat="server" Visible="false" Value='<%# Eval("equipmentId") %>' /> 
            <asp:ImageButton ID="ibEdit" runat="server" CommandName="Edit" CausesValidation="false" ImageUrl="~/App_Themes/Operations/images/pencil.gif" /> 
            <asp:ImageButton ID="ibDelete" runat="server" OnClientClick="return PromptDelete();" CausesValidation="false" CommandName="Delete" ImageUrl="~/App_Themes/Operations/images/Icons/delete.gif" /> 
            </ItemTemplate> 
            <HeaderStyle Width="40px" /> 
        </telerik:GridTemplateColumn> 
        <telerik:GridBoundColumn DataField="reliefValveSequence" SortExpression="reliefValveSequence" ReadOnly="true" HeaderText="#">          
        <HeaderStyle Width="10px"></HeaderStyle></telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="reliefValveRunNumber" SortExpression="reliefValveRunNumber" ReadOnly="true" HeaderText="F">  
        <HeaderStyle Width="10px"></HeaderStyle></telerik:GridBoundColumn> 
        <telerik:GridTemplateColumn HeaderText="Set Point PSIG">  
        <ItemTemplate> 
        <asp:Literal ID="lit1" runat="server" Text='<%# Eval("reliefValveSetPointPressure") %>'></asp:Literal> 
        </ItemTemplate> 
        <EditItemTemplate> 
            <asp:TextBox ID="txtReliefValveSetPointPressure" runat="server" Text='<%# Eval("reliefValveSetPointPressure") %>'></asp:TextBox> 
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" ControlToValidate="txtReliefValveSetPointPressure" runat="server" ErrorMessage="*Required">*</asp:RequiredFieldValidator> 
        </EditItemTemplate> 
        </telerik:GridTemplateColumn> 
          <telerik:GridTemplateColumn HeaderText="Conn. Pipe I.D.">  
       <ItemTemplate> 
        <asp:Literal ID="lit2" runat="server" Text='<%# Eval("connectingPipeInternalDiameter") %>'></asp:Literal> 
        </ItemTemplate> 
        <EditItemTemplate> 
            <asp:TextBox ID="txtConnectingPipeInternalDiameter" runat="server" Text='<%# Eval("connectingPipeInternalDiameter") %>'></asp:TextBox> 
            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" ControlToValidate="txtConnectingPipeInternalDiameter" runat="server" ErrorMessage="*Required">*</asp:RequiredFieldValidator> 
        </EditItemTemplate> 
        </telerik:GridTemplateColumn> 
          <telerik:GridTemplateColumn HeaderText="Type">  
         <ItemTemplate> 
        <asp:Literal ID="lit3" runat="server" Text='<%# Eval("coeffTypeCode") %>'></asp:Literal> 
        </ItemTemplate> 
        <EditItemTemplate> 
            <asp:TextBox ID="txtCoeffTypeCode" Width="65px" runat="server" Text='<%# Eval("coeffTypeCode") %>'></asp:TextBox> 
            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" ControlToValidate="txtCoeffTypeCode" runat="server" ErrorMessage="*Required">*</asp:RequiredFieldValidator> 
        </EditItemTemplate> 
        <HeaderStyle Width="70px" /> 
        </telerik:GridTemplateColumn> 
          <telerik:GridTemplateColumn HeaderText="Size">  
        <ItemTemplate> 
        <asp:Literal ID="lit4" runat="server" Text='<%# Eval("coeffSize") %>'></asp:Literal> 
        </ItemTemplate> 
        <EditItemTemplate> 
            <asp:TextBox ID="txtCoeffSize" Width="65px" runat="server" Text='<%# Eval("coeffSize") %>'></asp:TextBox> 
            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" ControlToValidate="txtCoeffSize" runat="server" ErrorMessage="*Required">*</asp:RequiredFieldValidator> 
        </EditItemTemplate> 
        <HeaderStyle Width="70px" /> 
        </telerik:GridTemplateColumn> 
          <telerik:GridTemplateColumn HeaderText="Description">  
       <ItemTemplate> 
        <asp:Literal ID="lit5" runat="server" Text='<%# Eval("coeffDesc") %>'></asp:Literal> 
        </ItemTemplate> 
        <EditItemTemplate> 
            <asp:TextBox ID="txtCoeffDesc" runat="server" Text='<%# Eval("coeffDesc") %>'></asp:TextBox> 
        </EditItemTemplate> 
        </telerik:GridTemplateColumn> 
        <telerik:GridTemplateColumn HeaderText="Additional Info.">  
       <ItemTemplate> 
            <asp:Literal ID="lit6" runat="server" Text='<%# Eval("reliefValveDesc") %>'></asp:Literal> 
        </ItemTemplate> 
        <EditItemTemplate> 
            <asp:TextBox ID="txtreliefValveDesc" runat="server" Text='<%# Eval("reliefValveDesc") %>'></asp:TextBox> 
        </EditItemTemplate> 
        </telerik:GridTemplateColumn> 
        </Columns> 
            <RowIndicatorColumn> 
                <HeaderStyle Width="20px" /> 
            </RowIndicatorColumn> 
            <ExpandCollapseColumn> 
                <HeaderStyle Width="20px" /> 
            </ExpandCollapseColumn> 
        </MasterTableView> 
    </telerik:RadGrid> 
</td></tr></table> 
    <asp:ValidationSummary ID="ValidationSummary1" runat="server" /> 
</asp:Panel> 

 VB

Partial Public Class ReliefValueDE  
    Inherits System.Web.UI.UserControl  
    Protected WithEvents DataSet11 As MARRS.DataSet1  
    Private intCut As Int16 = 1  
    Protected WithEvents ibSelect As ImageButton  
 
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load  
        DataSet11 = Session("DataSet11")  
    End Sub 
 
    Protected Sub FillGrid()  
        If intCut = 1 Then 
            FillReliefData("U")  
        Else 
            FillReliefData("D")  
        End If 
        RadRelief.DataSource = DataSet11.Tables("dbo.up_GetReliefValveByAssemblyId")  
    End Sub 
 
    Protected Sub FillReliefData(ByVal positionCode As String)  
        Dim myConnection As SqlConnection = New SqlConnection(MarrsDb.ConnectionString)  
        Dim myCommand As SqlCommand = New SqlCommand("up_GetReliefValveByAssemblyId", myConnection)  
        myCommand.CommandType = CommandType.StoredProcedure  
        Dim workParam As SqlParameter  
        workParam = New SqlParameter("@assemblyId", SqlDbType.Int)  
        workParam.Direction = ParameterDirection.Input  
        workParam.Value = DataSet11.GeneralInfo(0).AssemblyId  
        myCommand.Parameters.Clear()  
        myCommand.Parameters.Add(workParam)  
 
        workParam = New SqlParameter("@positionCode", SqlDbType.Text)  
        workParam.Direction = ParameterDirection.Input  
        workParam.Value = positionCode  
        myCommand.Parameters.Add(workParam)  
        myConnection.Open()  
 
        Dim DA As SqlDataAdapter = New SqlDataAdapter(myCommand)  
        DA.Fill(DataSet11)  
    End Sub 
 
    Protected Sub RadRelief_NeedDataSource(ByVal source As Object, ByVal e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles RadRelief.NeedDataSource  
        FillGrid()  
    End Sub 
 
    Protected Sub RadRelief_ItemCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles RadRelief.ItemCommand  
        If (e.CommandName = "Edit") Then 
 
        End If 
    End Sub 
    Public Property _CutNumber() As Int16  
        Get 
            Return intCut  
        End Get 
        Set(ByVal Value As Int16)  
            intCut = Value  
        End Set 
    End Property 
    Public Sub _SetDataSet(ByRef Value As DataSet1)  
        Me.DataSet11 = Value  
    End Sub 
 
    Protected Sub RadRelief_InsertCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles RadRelief.InsertCommand  
 
    End Sub 
 
    Protected Sub RadRelief_UpdateCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles RadRelief.UpdateCommand  
 
    End Sub 
 
    Protected Sub ibUpdate_Click(ByVal sender As Object, ByVal e As EventArgs)  
 
    End Sub 
End Class 

 

 

 

 

 

 

 

 

There is no code as of now. but i am not able to hit the break points on command events to go forward.
Any help would be appreciated. 
Thanks

 

 

 

 

Vlad
Telerik team
 answered on 18 Aug 2009
0 answers
45 views
Hi,

I need to enter event like 1st,3rd and 5th weekend (if there is 5) in a month using recurring feature. Weekend will include friday,saturday,sunday.How is it possible? please let me know the recurrence rule for this..
Also how to enter events for odd and even years??

Thanks
Rajesh
rajesh
Top achievements
Rank 1
 asked on 18 Aug 2009
1 answer
133 views
I noticed in the validation example found here:
http://demos.telerik.com/aspnet-ajax/calendar/examples/datepicker/validation/defaultcs.aspx

That the display is different in IE6 vs firefox 3.0

The following steps illustrate the point
1. Use the picker to choose a valid date.
2. Edit the date in the field so that the year has 5 digits
3. remove focus form the field
The result is that in firefox, the entered data is read, a read border appears around the input field, an error icon is displayed within the field and an error message is shown. If IE, the only thing shown is the error message. Is there away to get these to behaving consistently? The firefox option is my preferred display.

Thanks
Iana Tsolova
Telerik team
 answered on 18 Aug 2009
4 answers
239 views
I'm sorry but I just can't get my head around what Telerik is trying to do to the world.  I just tried the Visual Skinning tool and, though it looks flashy, ... what's this all about?

Look:
I don't want to create "custom skins" for anything. I want the code that telerik generated to simply BE VOID OF STYLING. Nothing. Rien. Nada .. and whatever.

I want it to have NO BUILT-IN CLASSES, NO INLINE STYLES.  I want it to know exactly what its supposed to look like by having it react to the CSS that already exists on its page. I want telerik grids to look JUST LIKE the non-telerik grids on the rest of the website.

I thought / hoped we were rid of the pre-thunked (as in thinked) "we know better than you" nonsense that plagues microsoft controls (gridview, formview, etc).  But no we see Telerik has taken this mad idea to a whole new level ..

the gods of the internet bless MVC .. and death to blobbous unbeliveably overcomplex self-styling non-confirming controls.

Its only because my company is forcing me to use telerik that, unfortunately, I continue to use telerik.


Dimo
Telerik team
 answered on 18 Aug 2009
2 answers
195 views
I have a RadAjaxManager wired up to a button control that upates an asp:panel. Ignored meaning that the postback occurs and the button click event handler fires, but the page isn't uploaded. This is inside a user control that is hosted inside an aspx page. The ajax settings are set inside the usercontrol itself.

What's even wierder is that the loading panel displays. It just won't update the panel.
rh
Top achievements
Rank 1
 answered on 18 Aug 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?