Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
242 views
Hello,

I am having hard time doing the following

1. having a common header for all the grid columns (client side hard coded value)

2. having a common footer for all the grid columns. This value comes from the server. so has to be set on the server side.

3. all the rows in the grid should have 2 alternating colors.

Could you please help me out accomplishing this ?

Thanks in advance
hary
Hary
Top achievements
Rank 1
 answered on 10 Sep 2008
14 answers
210 views
I have a Tree displaying, and now want to get the drag/drop between nodes working.  Anyone have a simple sample of this working?
Bob
Top achievements
Rank 1
 answered on 09 Sep 2008
2 answers
156 views
I have a RadGrid being bound to an in-memory dataset which I persist between request.

A user can edit a row in the grid, and I handle the UpdateCommand event. In this event I'm trying to get the changed values, so I do:

Dictionary<string, object> newValues = new Dictionary<string, object>();
GridEditableItem gridItem = e.Item as GridEditableItem;
e.Item.OwnerTableView.ExtractValuesFromItem(newValues, gridItem);

This code works fine if I bind the data to the dataset in Page_LoadCompleted, but these values will all be blank of I bind the to the dataset in Page_Load.

This makes sense, as Page_LoadCompleted happens after the page events are processed. So in order for me to get the changed values in the grid, I have to make sure I don't bind the dataset to the RadGrid before I've handled page events.

This presents me with a problem. I also have a button that allows users to perform an action which changes the display of the row. I do this by handling the ItemCommand and doing something like:

e.Item.BackColor = System.Color.Red;

This won't work if I'm databinding the grid in Page_LoadCompleted since that will effectively "erase" the color change I made in the ItemCommand since the LoadCompleted event happens after the ItemCommand event.

So what's the best practice/solution here?
Mike
Top achievements
Rank 1
 answered on 09 Sep 2008
13 answers
250 views
OK, I am used to the "classic" RadComboBox, the one where you had a RadCallback control where you could set the "ControlsToUpdate" property to tell it which controls were going to be visible on callback. In that way, I could set the value of other controls on the page.

Now, with the ASP.NET AJAX combo box, I do not know how to do that.

When I try to set the value of a hidden form field (type HiddenField) in the ItemsRequested event handler, it does not work.  On the next callback, the value has not been changed.

Exactly how can I change the value of another control on the page?
CynthiaD
Top achievements
Rank 1
 answered on 09 Sep 2008
3 answers
158 views
Hi

I have wrapped RadGrid into another grid as a server control.

I also have created a Paging control as server control containing Drop Downs and Buttons to be put on grid. 

1. The drop downs on Pager server control depend on Gris's total no of row. 

2. The Paging server control inherits from ITemplate and is set as Grid.MasterTableView.PagerTemplate.

3. Paging Control also bubbles up drop down change event to grid server control.

Issue:
I wasn't able to add the paging control on ItemCreated Function.
In Constructor it does add control to grid but Grid's properties's values are not available so I cannot create pager control's drop downs.
On Load function the grid's properties are available and it does add on intial page load but it does not draw paging control on post back.

I need help as to in which which fucntion(s) of Grid can I attach PagerControl to Server Control so that I can achieve all 3 on initial page loads and on post back.
 
Please let me know if some work around is needed.


Veli
Telerik team
 answered on 09 Sep 2008
1 answer
104 views
This seems like a simple problem but I am not getting it.

I need my menu to bind to a DB and navigate as follows.

www.mysite.com/Default.aspx?ID=[DatabaseID]

If I use
RadMenu1.DataNavigateUrlField = "ID"
Then it navigates as follows
www.mysite.com/[DatabaseID]

If I use
RadMenu1.PostBackURL = "Default.aspx?ID="
Then I dont get the ID at the end... Where have I gone wrong?

    Private Sub RenderMenu()  
        If Not Page.IsPostBack Then 
 
            Dim PagesDC As New Dal.icms_PagesDataContext()  
            Dim results = From r In PagesDC.icms_Pages_GetPageMenu _  
                          Select r  
 
            RadMenu1.DataTextField = "MenuName" 
            RadMenu1.DataFieldID = "ID" 
            RadMenu1.DataFieldParentID = "ParentID" 
            RadMenu1.DataNavigateUrlField = "" 
 
            RadMenu1.DataSource = results  
            RadMenu1.DataBind()  
 
        End If 
    End Sub 
Chase Florell
Top achievements
Rank 1
 answered on 09 Sep 2008
4 answers
226 views
I have a radgrid with a detailsview.  I added First, next, previous, last buttons on the top manually.   My grid has a GridButtonColumn (select).  When I click the select button i see the details.

When I click the "next" button i want the grid to select the next row and trigger the SelectedIndexChanged event - which triggers the details view.  When I click "previous" - it should select the previous row.

What's the easiest way to do this?  How do i set the rowindex of the grid?
Jomey
Top achievements
Rank 1
 answered on 09 Sep 2008
1 answer
108 views
v5.1.0.0 has 'Default2006' theme set in ConfigFile.xml and ListConfigFile.xml.

v5.2.0.0 has 'Telerik' theme set in ConfigFile.xml and ListConfigFile.xml.

Setting theme to 'Default2006' causes an error in v5.2.0.0,
'Telerik.Web.UI.RadWindow with ID='ctl00_m_g_81048955_8891_41bb_a762_69647a5955a0_ctl00_ctl05_ctl00_ctl00_ctl00_ctl04_ctl00_ctl00_RadTextField1dialogOpener_Window' was unable to find embedded skin with name 'Default2006'. Please, make sure that you spelled the skin name correctly, or if you want to use a custom skin, set EnableEmbeddedSkins=false.'


Rumen
Telerik team
 answered on 09 Sep 2008
1 answer
85 views

Hi,

      I am using RadTabStrip in master page and binding the data from XML. I am loosing the selected tab state. Below is my Code. Can you plase help me?

HTML :

<%

@ Master Language="C#" AutoEventWireup="true" CodeFile="DealerFinance.master.cs" Inherits="DealerFinance" %>

<%

@ 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>Untitled Page</title>

<asp:ContentPlaceHolder id="head" runat="server">

</asp:ContentPlaceHolder>

</

head>

<

body>

<form id="form1" runat="server">

<telerik:RadScriptManager ID="RadScriptManager1" runat="server">

</telerik:RadScriptManager>

<table>

<tr>

<td>

<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" Font-Size="Small"

height="100%" width="100%" BorderColor="Silver">

<telerik:RadTabStrip ID="rtsDealerMenu" runat="server" Skin="Web20"

BorderWidth="1px" >

</telerik:RadTabStrip>

</telerik:RadAjaxPanel>

</td>

</tr>

<tr>

<td>

<asp:ContentPlaceHolder id="DealerFinancePlaceHolder" runat="server">

</asp:ContentPlaceHolder>

</td>

</tr>

</table>

</form>

</

body>

</

html>

Code behind :

protected

void Page_Load(object sender, EventArgs e)

{

if (!Page.IsPostBack)

{

XmlDocument xmlDoc = new XmlDocument();

xmlDoc.Load(Request.MapPath(

"~/App_Data/Menu.xml"));

rtsDealerMenu.SelectedIndex = 0;

rtsDealerMenu.LoadXml(xmlDoc.OuterXml);

}

//Response.Write(rtsDealerMenu.SelectedTab.Text);

}


XML :

<

TabStrip>

<

Tab Text="Home" ID="1" Tooltip="" NavigateUrl="/DealerFinanceApplication/Home/Home.aspx" >

</

Tab>

<

Tab Text="Dealer" ID="2" Tooltip="" NavigateUrl="/DealerFinanceApplication/Home/Home1.aspx" />

<

Tab Text="ATPS" ID="3" Tooltip="" NavigateUrl="/DealerFinanceApplication/Home/Home2.aspx" />

<

Tab Text="UCC" ID="4" Tooltip="" NavigateUrl="/DealerFinanceApplication/Home/Home3.aspx" />

<

Tab Text="Collections" ID="5" Tooltip="" NavigateUrl="/DealerFinanceApplication/Home/Home4.aspx" />

<

Tab Text="Assets" ID="6" Tooltip="" NavigateUrl="/DealerFinanceApplication/Home/Home.aspx" />

<

Tab Text="Audit" ID="7" Tooltip="" NavigateUrl="/DealerFinanceApplication/Home/Home.aspx" />

<

Tab Text="Contact" ID="8" Tooltip="" NavigateUrl="/DealerFinanceApplication/Home/Home.aspx" />

<

Tab Text="Payments" ID="9" Tooltip="" NavigateUrl="/DealerFinanceApplication/Home/Home.aspx" />

<

Tab Text="Accounts" ID="10" Tooltip="" NavigateUrl="/DealerFinanceApplication/Home/Home.aspx" />

<

Tab Text="Admin" ID="11" Tooltip="" NavigateUrl="/DealerFinanceApplication/Home/Home.aspx" >

<!--

Sub Section for ADMIN Tab Start Here-->

<

Tab Text="Organization" ID="12" Tooltip="" NavigateUrl="/DealerFinanceApplication/Home/Home.aspx" />

<

Tab Text="Position" ID="13" Tooltip="" NavigateUrl="/DealerFinanceApplication/Home/Home.aspx" />

<

Tab Text="Responsibility" ID="14" Tooltip="" NavigateUrl="/DealerFinanceApplication/Home/Home.aspx" />

<

Tab Text="Products" ID="15" Tooltip="" NavigateUrl="/DealerFinanceApplication/Home/Home.aspx" />

<

Tab Text="Region/District" ID="16" Tooltip="" NavigateUrl="/DealerFinanceApplication/Home/Home.aspx" />

<

Tab Text="Documents" ID="17" Tooltip="" NavigateUrl="/DealerFinanceApplication/Home/Home.aspx" />

<

Tab Text="List Of Values" ID="18" Tooltip="" NavigateUrl="/DealerFinanceApplication/Home/Home.aspx" />

<

Tab Text="Route" ID="19" Tooltip="" NavigateUrl="/DealerFinanceApplication/Home/Home.aspx" />

<!--

Sub Section for ADMIN Tab Ends Here-->

</

Tab>

</

TabStrip>

 

 

 

Ravi Prasad Potturi
Top achievements
Rank 1
 answered on 09 Sep 2008
7 answers
108 views
Take a look at the Vista skin on this page. Compare the actual results to the SS (screen shot) - the SS version is much better than the live version for the dropdown/pop-up: The background color is bluish (should be gray) and the vertical separator is missing.

Bug or by design?
Jeremy T. Fuller
Top achievements
Rank 1
 answered on 09 Sep 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?