Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
183 views
I can't seem to get the RadAjaxLoadingPanel to appear over the control being updated.  I've tried to create as simple an example as possible to remove the possibility of my project's complexities as the culprit.  However, even that simple scenario doesn't seem to work.

<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %> 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
 
<html xmlns="http://www.w3.org/1999/xhtml"
<head runat="server"
    <title></title
</head> 
<body> 
    <form id="form1" runat="server"
    <div> 
        <telerik:RadScriptManager runat="server" ID="rsmScriptManager" /> 
        <telerik:RadAjaxManager runat="server" ID="ramAjaxManager"
            <AjaxSettings> 
                <telerik:AjaxSetting AjaxControlID="btnTest">                     
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl ControlID="divColor" LoadingPanelID="rlpLoadingPanel" /> 
                    </UpdatedControls> 
                </telerik:AjaxSetting> 
            </AjaxSettings> 
        </telerik:RadAjaxManager> 
        <telerik:RadAjaxLoadingPanel ID="rlpLoadingPanel" runat="server" Skin="Vista"/> 
        <div style="width: 500px; height: 500px; background-color: Red;" runat="server" id="divColor" /> 
        <asp:Button ID="btnTest" runat="server" Text="Test" OnClick="btnTest_Click" /> 
    </div> 
    </form> 
</body> 
</html> 
 

The codebehind simply changes the color of the div from red to blue after sleeping for a couple of seconds to simulate server processing time.  When I run this, the colored div disappears, no loading panel is shown, and then div reappears in blue.   What am I missing here?
Pavlina
Telerik team
 answered on 06 Aug 2009
3 answers
230 views
I have a page with a RadMenu on it, at across the top, and there is a RadComboBox.
The user is complaining, because when they dropdown the combo, if they have their window resized, so the dropdown goes UP instead of down, it goes behind the menu.
Is there a way to get it to go in front of the menu?

thanks in advance.
CheerZ!
Mr. Plinko
Top achievements
Rank 1
 answered on 06 Aug 2009
3 answers
91 views
Hi,

I am trying to create a menu that has a different template per level. i.e First level is just a label and then the second level is a UserControl implementing ITemplate. It is the same Usercontrol for all the 2nd level menu items.

  |-- Users (text label)
  |    |-- Gallery UserControl (datasource is children of users)
  |
  |-- Locations (text label)
  |    |-- Gallery UserControl (datasource is children of locations)   
  |

Is this possible?

Thanks
Atanas Korchev
Telerik team
 answered on 06 Aug 2009
3 answers
122 views
I would like to create a grid that has multiple lines per entry.  There are 4 colums in the line.  Column 1 is type, column 2 is date, column 3 is a value, column 4 is a value.  I would like to add a new column 5 (short description) that will be on the second row spanning the entire grid (basically colspan=4).  Is there a simple way to do something like this besides building a complicated template?

EX.
-----------------------------------------------------------------------------
| type             |  date                 |    val 1               |  val 2          |
-----------------------------------------------------------------------------
| Drivers        | 1/2/2009           |    Cat                 |   Dog          |
-----------------------------------------------------------------------------
| My cat likes you                                                                    |
-----------------------------------------------------------------------------
| Man           | 2/2/2009           |    Fly                 |   Chimp        |
-----------------------------------------------------------------------------
| Something about a man                                                       |
-----------------------------------------------------------------------------
Gary
Top achievements
Rank 1
 answered on 06 Aug 2009
2 answers
51 views

Hi,

When using the month view inthe Scheduler I would like to show a summary of all appointments in a day, OnMousehover I would like to show the details of the appointments for that day.

For Example

I have a room name Conference,and wish to see the bookings for a month for this room. I am able to show theappointments in the month view.

Say on a particular day thereare 5 bookings for the room, the month view shows all 5 bookings seperately.What I want is to show a summary stating there are 5 bookings and on mousehoverit should provide me information of the separate bookings for the day.

Thanks

Sabrish

Peter
Telerik team
 answered on 06 Aug 2009
1 answer
92 views
Hi;

The Question i want to ask is very simple..How can i create Handle of dynamically created docks..like in below example we are using javascript to create handle of docks..similarly i want to create handle on server side..like if i place Image in docks from Database then that image should be the handler of that dock..



Regards;

Zeeshan Ahmed Khan


Pero
Telerik team
 answered on 06 Aug 2009
1 answer
110 views
Hi team,

I use radgrid in that the properties that i set true is allowfiltering,allowpaging and allowsorting. i used template column for the edit and the delete. so that when i click the edit button the grid shows the inline editing in the grid even though i set the properties of the automatic updates and delete to false.And  i did not give any editmode in the mastertable. while clicking the edit button in my grid the values will transfer in to the textboxes where the textboxes are placed in the modalopup.and the grid shows the inline editing.

Please help me
Thanks in Advance

Pavlina
Telerik team
 answered on 06 Aug 2009
2 answers
222 views
Hi Telerik team,

I am adding some controls dynamically to a Repeater which is inside a FormView.

protected

 

void DynamicRepeater_ItemCreated(Object sender, RepeaterItemEventArgs e)

 

{

 

IDictionary

 

<string, string> values = RetrieveValues();

 

 

RadComboBox combo= new RadComboBox();

 

//DropDownList combo= new DropDownList();
combo.ID =

"SomeId";

 

combo.DataSource = values;

combo.DataValueField =

"Key";

 

combo.DataTextField =

"Value";

 

e.Item.Controls.Add(combo)

 

}

There is another RadComboBox control  named TypeComboBox with AutoPostBack="true" inside the FormView.
Whenever the TypeComboBox selection changes, the repeater needs to be rebound and the dynamic controls will be recreated inside the repeater.

So I added the following code to ajaxify the repeater:
protected void Page_PreRender(object sender, EventArgs e)

 

{

 

 

 

RadComboBox

 

typeComboBox = (RadComboBox)FormView1.FindControl("TypeComboBox ");

 

 

 

 

RadAjaxManager.GetCurrent(Page).AjaxSettings.AddAjaxSetting(typeComboBox , (Repeater)FormView1.FindControl("DynamicRepeater"));

 

 

}

This does not work.The point is when I replace the RadComboBox with an Asp DropDownList  ,the ajax works fine.So I assume the problem might be happening by the RadComboBox.
Note that Ajaxifying the whole FormView is not an option for me, because I don't want to lose the data that user entered in the other controls in the FormView after selecting the Type.

 
I had a previous issue with the ajaxifying other controls like Panel and PlaceHolder inside a FormView(Support ID:228263 -- Problem with RadAjaxManager and Panel or PlaceHolder inside a FormView), but I am afraid the answer was not very saticefying because like I explained the whole FormView shouldn't be refreshed in my case.

What can I do to solve this issue?

Thanks in advance for your help.
Sima

Veselin Vasilev
Telerik team
 answered on 06 Aug 2009
1 answer
108 views
I created this using dynamic RadSplitter creation with recursion:

http://imgur.com/uiWfq

Use the following code to recreate this masterpiece:
(use at own risk)

Imports Telerik.Web.UI 
 
Partial Class _Default 
    Inherits System.Web.UI.Page 
 
    Protected Overrides Sub OnLoad(ByVal e As System.EventArgs) 
        MyBase.OnLoad(e) 
 
        F(ph) 
 
    End Sub 
 
    Private Sub F(ByVal pane As Control, Optional ByVal limit As Integer = 10) 
 
        If limit <= 0 Then 
            Dim blah As New Literal() 
            blah.Text = " " 
            pane.Controls.Add(blah) 
            Exit Sub 
        End If 
 
        If TypeOf pane Is WebControl Then 
            Dim rand As New Random(pane.GetHashCode) 
            Dim r As Integer = rand.Next(100, 255) 
            Dim g As Integer = rand.Next(10, 255) 
            Dim b As Integer = rand.Next(50, 255) 
            CType(pane, WebControl).BackColor = System.Drawing.Color.FromArgb(r, g, b) 
        End If 
 
        Dim splitter As New RadSplitter() 
        splitter.Orientation = If(limit Mod 2 = 0, Orientation.Horizontal, Orientation.Vertical) 
        splitter.PanesBorderSize = 0 
 
        Dim leftPanel As New RadPane() 
        leftPanel.Scrolling = SplitterPaneScrolling.None 
        F(leftPanel, limit - 1) 
        splitter.Items.Add(leftPanel) 
 
        Dim rightPanel As New RadPane() 
        rightPanel.Scrolling = SplitterPaneScrolling.None 
        F(rightPanel, limit - 1) 
        splitter.Items.Add(rightPanel) 
 
        Dim spacing As New Panel() 
        spacing.Style.Add("padding""5px"
        spacing.Controls.Add(splitter) 
 
        pane.Controls.Add(spacing) 
    End Sub 
 
End Class 
 

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %> 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
 
<html xmlns="http://www.w3.org/1999/xhtml"
<head runat="server"
</head> 
<body> 
    <form id="form1" runat="server"
     
    <asp:ScriptManager runat="server" /> 
     
    <asp:PlaceHolder runat="server" ID="ph" /> 
     
    </form> 
</body> 
</html> 
 
Mr. Plinko
Top achievements
Rank 1
 answered on 06 Aug 2009
2 answers
191 views
I have a simple grid with template column:

<

 

telerik:GridTemplateColumn HeaderText="Notification" UniqueName="TemplateColumn"

 

 

 

EditFormColumnIndex="1" ReadOnly="false">

 

 

 

<ItemTemplate>

 

 

<%

# Eval("vchNewsText") %>

 

 

 

</ItemTemplate>

 

 

 

 

<EditItemTemplate>

 

 

 

<span><telerik:RadTextBox runat="server" ID="txtNotification" Width="750px" height="200px"

 

 

 

TextMode="MultiLine"

 

 

 

Text='<%# Bind("vchNewsText") %>'></telerik:RadTextBox><span></span>

 

 

 

</EditItemTemplate>

 

 

 

</telerik:GridTemplateColumn>

 

</Columns>

 

 

 


User is supposed to add a new row and fill in the vchNewsText field.

In Grid_ItemCommand procedure I am  trying to extract new value from txtNotification TextBox in order to update
dataset. 

s1 = (editedItem.FindControl(

"txtNotification") as TextBox).Text;

 

 


Result-control not found 

Another try was:

 

Hashtable newValues = new Hashtable();

 

e.Item.OwnerTableView.ExtractValuesFromItem(newValues, editedItem);
s1=(string)newValues["TemplateColumn"];

Result-empty string;

So how do I extract the new value of Control in Template Column in Grid_ItemCommand procedure ?

 

 

 

 

 

 

Elena
Top achievements
Rank 1
 answered on 06 Aug 2009
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?