Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
108 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
252 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
92 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
126 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
1 answer
152 views
Hello

I am using RadGrid in multiEditRow mode. All my rows are editable... I make them editable on RadGrid_PreRender.
This grid is also paged.

My aim is to save all the values types by users 1 time on a classic button click (outside the RadGrid).
My problem is that I can not get the values of other pages than the current one because there are lost on page changed.

How can I do that?

Thank you for your help.
Read you soon.
Princy
Top achievements
Rank 2
 answered on 01 Mar 2011
2 answers
2.2K+ views
Hi,
    I am using asp.net ajax telerik rad controls and working on a web application. i want to display message dialog box  after user successfully executing the functionality  in radbutton click.. i dont want to use alert,confirm or prompt dialog boxes.plz help me out.
Svetlina Anati
Telerik team
 answered on 01 Mar 2011
3 answers
99 views

First, I have a user control called 'TestControl' that uses a RadToolTipManager in it. This tool tip will call another user control that doesnt really need to be explained. I want to be abled to 'LoadControl' from the code behind.

By doing this, it works just fine so the 'TestControl' works and the RadToolTip works and all that.

<%@ Register src="Control/TestControl.ascx" tagname="Table" tagprefix="uc1" %> 
<uc1:TestControlID="TestControl1" runat="server" />

However, doing using 'LoadControl', I am getting the wrong sequence of events. (which I need to be able to 'LoadControl')

UserControl userControl = (UserControl)this.LoadControl("~/Control/TestControl.ascx");
userControl.ID = "asdfasdf";
this.Panel1.Controls.Add(userControl);

The Page_Load executes the above, then the tooltip pops up (before the OnAjaxUpdate) and loads whatever the tooltip has, then the OnAjaxUpdate occurs. I need the OnAjaxUpdate to occur before it loads the pop up. Any Suggestions?
Svetlina Anati
Telerik team
 answered on 01 Mar 2011
3 answers
104 views
When a Rad Grid is in edit mode, and the user clicks "Add New Record", the grid jumps to the last page and has the insert row, but the original edit index has not changed.  This causes the insert row to be at the top of the last page, and an editable row to also be on the last page.

Is there any way to clear the edit indices before the insert row is added.

I currently have AllowMultiRowEdit set to false , but that doesn't seem to do the trick.

Any help would be much appreciated,

Thanks!
Shinu
Top achievements
Rank 2
 answered on 01 Mar 2011
2 answers
215 views
Hello!

Do you have a sample app of the GridSettingsPersister class extended to store the settings in asp.net profile?
I have tried this sample http://www.telerik.com/community/code-library/aspnet-ajax/grid/storing-multiple-grid-settings-in-database-via-profile.aspx but I would like to use the GridSettingsPersister class instead because it saves columns shown for instance.

Thank you!

Jan
Jan
Top achievements
Rank 1
 answered on 01 Mar 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?