Telerik Forums
UI for ASP.NET AJAX Forum
8 answers
492 views
Hi

My Ajax Loading Panel does not seem to work.

It has an Error Creating Control Message.

I DO have a script manager on the page above the ajaxloading panel.

Any ideas ?

Kind Regards

David
Sebastian
Telerik team
 answered on 01 Mar 2011
5 answers
328 views

It appears that the initial column widths for the grid are not being defaulted consistently when deployed to the ASP.NET Development Server versus IIS.  Both IE and FF work correctly when run from the ASP.NET Dev Server, but once I publish the site and run it under IIS, the grid columns are not set to the default width in IE, but in FF they are still fine.

See the attached screen shots for the 4 combinations of IE vs. FF and ASP.NET vs. IIS.  It's the "Invoice Details" grid that is the problem in the IE/IIS combination.

This is how I'm setting up the grid in the markup:

<asp:Content ID="Content2" ContentPlaceHolderID="content" runat="Server">  
    <div style="vertical-align: top;height: 100%;">  
…snip…  
        <telerik:RadSplitter ID="ContentSplitter" Runat="server" Height="100%" Width="100%" 
            Orientation="Horizontal">  
…snip…  
            <telerik:RadPane ID="BodyPane" runat="server" Height="100%" Width="100%" Scrolling="Y" 
                OnClientResized="ClientResized">  
                <telerik:RadSplitter ID="AppSplitter" Runat="server" Height="100%">  
…snip…  
                    <telerik:RadPane ID="AppPane" runat="server" MinWidth="40" Scrolling="Y" Width="100%">  
…snip…  
                        <telerik:RadAjaxPanel ID="HeaderRadAjaxPanel" runat="server">  
…snip…  
                        <telerik:RadGrid ID="grdDetails" runat="server"   
                            AllowFilteringByColumn="True" AllowPaging="True" AllowSorting="True"   
                            AutoGenerateColumns="False" GridLines="Both" ShowFooter="true" 
                            Height="400" Width="100%" 
                            AllowAutomaticInserts="true" AllowAutomaticUpdates="true" 
                            AllowAutomaticDeletes="true" 
                            OnItemCreated="grdDetails_ItemCreated" 
                            OnNeedDataSource="grdDetails_NeedDataSource" 
                            OnItemDataBound="grdDetails_ItemDataBound">  
                            <MasterTableView TableLayout="Fixed" EditMode="InPlace" CommandItemDisplay="Top" /> 
                            <PagerStyle AlwaysVisible="true" Mode="NextPrev" /> 
                            <ClientSettings> 
                                <Scrolling AllowScroll="true"   
                                    EnableVirtualScrollPaging="true" SaveScrollPosition="true"   
                                    UseStaticHeaders="true" /> 
                                <Resizing AllowColumnResize="true"   
                                    ClipCellContentOnResize="true" EnableRealTimeResize="true"   
                                    ResizeGridOnColumnResize="true" /> 
                                <ClientEvents OnRowClick="grdDetails_RowClick" /> 
                            </ClientSettings> 
                        </telerik:RadGrid> 
                        </telerik:RadAjaxPanel> 
                    </telerik:RadPane>   
                </telerik:RadSplitter> 
            </telerik:RadPane> 
        </telerik:RadSplitter> 
…snip…  
    </div> 
</asp:Content> 
 

The columns are then created server-side in the code-behind, during the grid's PreRender event.  Every column has an explicit width set.

 

Does anyone have any ideas/suggestions on what the issue might be?  Everything I’ve tried has not forced the grid to behave.

 

My environment:
- Windows 7
- IIS 6.1
- VS 2008 SP1 (.NET 3.5 SP1), C#
- Telerik Q1 2010 Trial Version (2010.1.415.35)
- IE 8.0.7600.16385
- Firefox 3.6

 

Thanks in advance for any help.

Drew

Pavlina
Telerik team
 answered on 01 Mar 2011
1 answer
122 views
Hi I use the telerik RadComboBox and on a client side event i use the 'RadComboBoxEventArgs' variable to get the selected item .

The code would be

 

ComboBoxEventArgs.get_item()<BR>

The RadComboBox is an edittable combo box that is a user can search for a particular record by typing in to it.

Now, if the user searches for an item which is present in the list everything just works fine.

But if the user types in something that is not in the list then the code

ComboBoxEventArgs.get_item()

throws an error "TypeError :Object doesnt support this property or method"

I am using the telerik control with the version "2010.3.1401.40"

Regards,
Francis

Helen
Telerik team
 answered on 01 Mar 2011
1 answer
382 views
is this code are correct:

var masterTable = $find("<%= RadGrid1.ClientID >").get_masterTableView();<br>masterTable.IsItemInserted = true;<br>masterTable.insertItem();

I need insert new record into sqlDatabase, if complete,  I will insert new row from client side without download all data from server side (a static field declared to store Database). I has been finish in delete case. Please guide me how to make it.

Tsvetina
Telerik team
 answered on 01 Mar 2011
4 answers
133 views
Can i remove the link on the RadTreeNode.text so that it is not clickable but just expandable.
kavitha
Top achievements
Rank 1
 answered on 01 Mar 2011
6 answers
115 views
Hello,

I was lookig at this example http://demos.telerik.com/aspnet-ajax/rating/examples/gridrating/defaultcs.aspx 
In order to update the database i inserted the ID column in the Grid, But i'm not sure what is the code that will allow me to retrieve the ID when i press to rate an item under this function Protected Sub RadRating1_Rate(sender As Object, e As EventArgs)


Thanks much for your help
mike .'.
Mike_T
Top achievements
Rank 1
 answered on 01 Mar 2011
5 answers
274 views
I am having an issue where if my grid has only a few items it's not filling the entire space between the  header and bottom paging section.
I have attached an screen grab of what I'm trying to explain, but the main thing is that the content where there should be rows seems to end before it gets to the bottom and shows the background color through it leaving my grid looking less than professional.

If you see the attached grab, there is about another row space below the 3rd and last row before it truncates and display the green background color? (screen grab taken in IE8)

Anyone have an idea?

Pavlina
Telerik team
 answered on 01 Mar 2011
3 answers
101 views
Hello SIr/Ma'm

I developed a application templates using rad controls and hosted on internet.
I'm using radWindowmanager to open multiple pages.I'm facing few problems which are:-

1. When i open my website it takes more time to load...
2. If i open any link page it takes 15sec to load page...
3. In some of the pages some radtextbox are not loading...
4. Raddatepicker calender is not displaying prperly...
5. Radpanel bar dont work on mozila firfox...
6. Application Performance is very slow....

Please help me out and reply.....


Pavlina
Telerik team
 answered on 01 Mar 2011
1 answer
1.0K+ views
The default Ajax request is set to 90 seconds. I am trying to extend this. I have set set AsyncPostBackTimeout to 3600 (which should set the Ajax request timeout to 1 hour) but for some reason, this is not working. The expected functionality is that when I send an Ajax request, the loading panel will be maintained on the page for this amount of time.

Here is what my RadScriptManager tag looks like:
       
<telerik:radscriptmanager runat="server" ID="radScriptManager" CdnSettings-TelerikCdn="Disabled" AsyncPostBackTimeout="3600" OutputCompression="AutoDetect" EnableScriptCombine="true"></telerik:radscriptmanager>

In Web.config, I have <httpRuntime executionTimeout="21600"> so that shouldn't be an issue either (we have some very long uploads that we have to handle, necessitating the long execution time).

Based on everything that I have read, setting this is all that needs to be done (see these forum posts 1 2). Is there any other setting (Telerik or ASP.net) that can be made (in code, config or IIS) that can affect the amount of time that Ajax requests will last before the loading image expires?

Note: the request continues to be and run on the server, even after the AjaxLoading image disappears. The problem is that the user is not informed of this, because Ajax has stopped updating the page.
Simon
Telerik team
 answered on 01 Mar 2011
5 answers
137 views
Hello  i am using example of "SchedulerCustomAdvancedFormQ1_2010_SP1" as reference to override AdvanceTemplate and trying to create the replicate form but with different ID's and Name. Here is detail of what  i am trying to do. I am approximately half way through but dont know the source of error that is not letting this project functionality complete and i suspect there will be probably some sequence mistake.

Project Reference : SchedulerCustomAdvancedFormQ1_2010_SP1

Functionality:
Instead of using Type and Resrouce as AdvanceTemplate Resources, i am trying to use Institute Name (InstituteName) and Institute Address (InstituteAddress) as resources in form of ComboBoxs.
Backend in SQLdatabase, i am using three tables.
1. Appointments
2. Institute_Name
3. Institute_Address

Institute_Name primary key is Inst_Sr_Id and Institute_Address primary key is Inst_Add_Sr and both are Foreign Keys in Appointments table.

Here is code that is used to bind their properties.
'Type, Resource   
    <Bindable(BindableSupport.Yes, BindingDirection.TwoWay)> _
    Public Property InstituteName() As String
        Get
            Return InstituteNameComboBox.SelectedItem.Value
        End Get

        Set(ByVal value As String)
            InstituteNameComboBox.SelectedValue = value
        End Set
    End Property

    <Bindable(BindableSupport.Yes, BindingDirection.TwoWay)> _
    Public Property InstituteAddress() As String
        Get
            Return InstituteAddressComboBox.SelectedItem.Value
        End Get

        Set(ByVal value As String)
            InstituteAddressComboBox.SelectedValue = value
        End Set
    End Property

Below is code that override InstituteName and InstituteAddress property and bind it to Control in AdvanceTemplate

<AdvancedEditTemplate>
                <scheduler:AdvancedForm runat="server" ID="AdvancedEditForm1"
                Mode="Edit" Subject='<%# Bind("Subject") %>'
                Description='<%# Bind("Description") %>'
                Start='<%# Bind("Start") %>'
                End='<%# Bind("End") %>'
                RecurrenceRuleText='<%# Bind("RecurrenceRule") %>'
                AppointmentColor='<%# Bind("AppointmentColor") %>'
                InstituteName  = '<%# Bind("InstituteName")%>'
                InstituteAddress= '<%# Bind("InstituteAddress")%>'
                />
            </AdvancedEditTemplate>
            <AdvancedInsertTemplate>
            
                <scheduler:AdvancedForm runat="server" ID="AdvancedInsertForm1"
                    Mode="Insert"   Subject='<%# Bind("Subject") %>'
                    Description='<%# Bind("Description") %>'
                    Start='<%# Bind("Start") %>'
                    End='<%# Bind("End") %>'
                    RecurrenceRuleText='<%# Bind("RecurrenceRule") %>'
                    AppointmentColor='<%# Bind("AppointmentColor") %>'
                     InstituteName  = '<%# Bind("InstituteName")%>'
                InstituteAddress= '<%# Bind("InstituteAddress")%>'
                    />
            </AdvancedInsertTemplate>

The above code did help me to store Appointment Information but it was not helping to store Institute Name and Institute Address value into database untill i added the following code:

<telerik:ResourceType ForeignKeyField="Inst_Sr_Id"
                KeyField="Inst_Sr_Id" Name="InstituteName" TextField="Inst_Name" />
<telerik:ResourceType ForeignKeyField="Inst_Add_Sr"
                KeyField="Inst_Add_Sr" Name="InstituteAddress" TextField="Inst_Address" />
</ResourceTypes>

Now the Appointment Color, Institute Name and Address are getting store properly in Database BUT, once i try to edit any appointment, Institute_Name and Institute_Address does't pick their default value that is stored in database. Their behavoir is kind of normal which means on return value from database to Advance control, Values are not getting bind.

In AdvanceTemplate.ASCX, I am using two RadComboBox controll with Two SQLDatasource to populate data from database. Institute_Name popolate institute name data from Institute_Name table and on selection of any particular insitute, InstituteAddressComboBox change its data and pick all list of address that associate to particular Institute.

Can you please look into code and suggest for the following Issue
1. why Two way binding is not working for RadComboBox ( InstituteName and InstituteAddress)
2. In Appointment Template why the following Code is not working.
<AppointmentTemplate>
          <div class="rsAptSubject">
                <h3><%# Eval("Subject") %></h3>
           </div>
                <%# Eval("Description") %>
            <P>
                    Institute : <i><%#Eval("InstituteName.Text")%></i>
            </P>
             <P>
                  Address : <i><%#Eval("InstituteAddress.Text")%></i>
              </P>
</AppointmentTemplate>

I have Also changed the CustomAttributeNames to :
CustomAttributeNames="AppointmentColor,InstituteName,InstituteAddress"

May be i am asking too much ! or may be i have explained alot and problem could be minor. Please help so i may assemble it for demonstration to my supirors.

Regards
Adnan
Nikolay Tsenkov
Telerik team
 answered on 01 Mar 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?