Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
467 views
I have a RadTabStrip with 3 tabs.  The first tab should be selected and shown when the page loads.  I have included the html below and an attachment of the page when it loads the tabs.. I use the tabstrip in several other areas of the site with the same skin and have no issues at all. Any ideas?

I cut out alot of the code to simplify what is showing.

 

 

<telerik:RadTabStrip ID="RepWorkspaceTabStrip" runat="server" MultiPageID="RadMultiPage1" EnableEmbeddedSkins="false" Skin="CustomSkin" CausesValidation="false">

 

 

<Tabs>

 

 

<telerik:RadTab Text="Tracking Record Look-up" PageViewID="TrackingRecordTab" Selected="true" />

 

<telerik:RadTab Text="Rep Activity Summary" PageViewID="ActivitySummaryTab" />

 

<telerik:RadTab Text="Rep Activity Log" PageViewID="ActivityLogTab" />

 

</Tabs>
</telerik:RadTabStrip>

<

 

 

telerik:RadMultiPage ID="RadMultiPage1" SelectedIndex="0" runat="server">

 

 

 

 

 

<telerik:RadPageView ID="TrackingRecordTab" runat="server">

 

 

</telerik:RadPageView>

 

 

<telerik:RadPageView runat="server" ID="ActivitySummaryTab">

 

</telerik:RadPageView>

 

 

<telerik:RadPageView runat="server" ID="ActivityLogTab">

 

 

<telerik:RadGrid ID="RepActivityLogGrid" runat="server" PageSize="20" Skin="ATTSkin" EnableEmbeddedSkins="false" Width="100%" AllowPaging="true" Visible="true" AlternatingItemStyle-BackColor="#E7F6FD" ShowHeader="true">

 

 

<MasterTableView GridLines="None" AllowSorting="true" ShowHeadersWhenNoRecords="true"></MasterTableView>

 

 

<PagerStyle Mode="NumericPages" Position="Bottom" AlwaysVisible="True" />

 

 

</telerik:RadGrid>

 

 

</telerik:RadPageView>

 

 

</telerik:RadMultiPage>

 

 

 

jerrybentil
Top achievements
Rank 1
 answered on 16 Nov 2011
5 answers
263 views
I can bind a array (containing hierarchical data) to a treeview with no problem.  I've been able to use a template when I've created the nodes programically.

I can't seem to be able to bind the array to a tree veiw that has a node template:

Error:
DataBinding: 'Telerik.Web.UI.RadTreeNode' does not contain a property with the name 'user'.

code:

<telerik:RadTreeView ID="RadTreeView1" runat="server">
   <NodeTemplate>
      <%# DataBinder.Eval(Container, "user")%> 
        <br />
     <%# DataBinder.Eval(Container, "mess") %> 
        <br />
     <%# DataBinder.Eval(Container, "dateentry") %> 
   </NodeTemplate>
</telerik:RadTreeView>

public class messages
   {
   public int id { get; set; }
   public int pid { get; set; }
   public string user { get; set; }
   public DateTime dateentry { get; set; }
   public string mess { get; set; }
   public messages(int i, int p, string u, DateTime dt, string m)
      {
      id = i;
      pid = p;
      user = u;
      dateentry = dt;
      if (m.Length > 300)
         mess = m.Substring(0, 290);
      else
         mess = m;
      }
   }
ArrayList data = new ArrayList();
protected void Page_Load(object sender, EventArgs e)
   {
   if (IsPostBack)
      {
      data = (ArrayList)Session["Data4"];
      }
   else
      {
      data = new ArrayList();
      LoadData();
      Session["Data4"] = data;
      }
   RadTreeView1.DataSource = data;
   RadTreeView1.DataTextField = "mess";
   RadTreeView1.DataValueField = "id";
   RadTreeView1.DataNavigateUrlField = "";
   RadTreeView1.DataFieldID = "id";
   RadTreeView1.DataFieldParentID = "pid";
   RadTreeView1.DataBind();
   }


Andy
Top achievements
Rank 1
Iron
 answered on 16 Nov 2011
28 answers
776 views
I haven't seen an examples online or in the documentation for what I'm trying to do. Has anyone dynamically created docks from content loaded from a database?

It seems like a realatively easy thing to do, but I seem to be having a problem with it. It may just be beause of the way I'm dynamically creating the docks, but I only get the first row of content from my database table to appear. If I hit refresh, the rest of the content appears, although not in any of the specified zones I have. They show up in the upper left corner of the browser.

Does anyone have some samples of doing anything like this?

Thanks!

Paul
Slav
Telerik team
 answered on 16 Nov 2011
3 answers
109 views
Sir,

In your demo 'dynamically adding dock'.its saving the entire dock's state.but my requirement is to store only the dock's position and index..and have to keep it in each page_load..

Another prbm is the raddocklayout's registereddocksstate is not clearing..
I used 

StoreLayoutInViewState

="false" EnableViewState="false"
and tried with

 

Dim stateList As List(Of DockState) = DkLayoutDocMain.GetRegisteredDocksState()  
Me.ClearChildControlState()  
Me.ClearChildViewState()  
Me.ClearChildState()  
DkLayoutDocMain.Dispose()  
ViewState.Clear()  
 

plz help me...

 

Slav
Telerik team
 answered on 16 Nov 2011
1 answer
95 views
Hi Telerik Team,

I am using a rad combo box with MarkFirstMatch property.and i used to bind  the rad combobox  with different  countries name using ID="ddlCountry" . I used this same ID="ddlCountry
" in various asp.net pages.
 <telerik:RadComboBox ID="ddlCountry" ExpandDirection="Down" runat="server"
                              MaxHeight="300px" Width="120px" DropDownWidth="150px"
                              AllowCustomText="false"   MarkFirstMatch="true" >
  </telerik:RadComboBox >
But when i start typing in that Rad Combobox,it works fine until i type the second character of country but when i typed the third character the existing values are getting erased and only the third character which i typed comes to first position and its MarkFirstMatch property is not working properly.

first i can try to bind  the rad combobox using code behind methods  with different  countries name and then  i also try to bind it with  the hard coded items values with different  countries name using ID="ddlCountry" .( Which Gives me Same Results)

But this problem is resoved when i simply changed the ID of rad combobox e.g
 <telerik:RadComboBox ID="ddlCountries" ExpandDirection="Down" runat="server"
                              MaxHeight="300px" Width="120px" DropDownWidth="150px"
                              AllowCustomText="false"   MarkFirstMatch="true" >
  </telerik:RadComboBox >
and its MarkFirstMatch property works fine...and it is happening for some specific keywords like ddlCountry, ddlState etc.
I am not sure what's the exact reason behind it??? My current telerik radcontrols version is 2011.1.1.519.35

Please Help.
Ivana
Telerik team
 answered on 16 Nov 2011
1 answer
55 views
Hi all togehter,
is there a way to change the Week-View of the RadScheduler object completely? I know it is possible to swap the days and the hours (i.e. to swap columns and rows of the original Week-View), but my goal is to change the Week-View completely as shown in the attached picture.
I fear this is not possible but thanks in advance for your answer :-).

Greetings,
Richard Huber.
Plamen
Telerik team
 answered on 16 Nov 2011
1 answer
48 views
Hi,
I am Unable to find RadGrid row using $find(rowClientID) for some rows from innermost table, although I can found few rows which are at same level.

I am attaching a screenshot of RowIDs which are collected by traversing though the table , you can see there are six row ids are found , out of them I am only able to get object of first 3 rows, next 3 rows are showing null.

I am using $find(rowID) command to get the row object.

Please let me know if you need more information.

Thanks & Regards

Andrey
Telerik team
 answered on 16 Nov 2011
2 answers
74 views
Hello guys!

I'm hoping this is an easy one. I've configured my radGrid to use a sorted back color by setting the following: SortingSettings-SortedBackColor="Green" and SortingSettings-EnableSkinSortStyles="true/false (tried both)". I've also set ClientSettings-Selecting-AllowRowSelect="true". When a user sorts a solumn (click column head) the column's sorted back color is set correctly (Green). The issue arises when a user then selects a row. When the row is selected the sorted back color stays on top of the selected row style. So, if the selected row color was red the sorted columns cell would still show green. Looking at some of the demos for this control it appears that the sorted back color should actually be overwritten by the selected row style? In any case, I would like the selected row style to overwrite the SortedBackColor style.

I'm using asp.net 4.0, IE 9, VB.NET.

Thanks!
Hunter
Top achievements
Rank 1
 answered on 16 Nov 2011
1 answer
117 views
Hello,
I want to create a grid with data changes as per radiobuttonlist selection.
Then depend on that data there are checkbox control ,cascading dropdoenlist control.but as per 
http://demos.telerik.com/aspnet-ajax/grid/examples/programming/accessingcellsandrows/defaultcs.aspx
this link i try to create dropdownlist as per my data but it is not working.
Here is following code: 
qry = "SELECT BudgetName, Budget,GroupName,Budget.GroupId FROM Budget,mGroup " +
                                " where BudgetTypeId=(select BudgetTypeId from BudgetType where BudgetTypeName='" + HiddenField1.Value + "') and " +
                                "Budget.GroupId = mGroup.GroupId ";


                            using (SqlCommand Cmd = new SqlCommand(qry, Conn))
                            {
                                da.SelectCommand = new SqlCommand(qry, Conn);


                                DataSet myDataSet = new DataSet();


                                try
                                {
                                    da.Fill(myDataSet, "BudgetDim");
                                    da.SelectCommand = new SqlCommand("SELECT GroupId, DimensionName FROM [Dimension]", Conn);
                                    da.Fill(myDataSet, "Dimension");
                                }
                                finally
                                {
                                    Conn.Close();
                                }
                               
                                    RadGrid2.DataSource = myDataSet;
                                    RadGrid2.DataBind ();

and also when I try to assign  seperate datatabels to 2 grids but it is not showing data for second grid.
Please help me out.                              
Andrey
Telerik team
 answered on 16 Nov 2011
3 answers
214 views
Hi

I have an issue when using radgrid inside radajaxpanel.
Radgrid is contained in .ascx control, and uses an arraylist as datasource for test purposes.

Initially, grid renders just fine, but when trying to use sorting for example, it dissapears and is not rendered any more.

Also, when I place grid outside of radajaxpanel, it works just fine.


Here is my aspx code (CTRL:UserList contains the grid)

<telerik:RadAjaxLoadingPanel ID="uxRadAjaxLoadingPanel" Skin="Transparent" InitialDelayTime="200" MinDisplayTime="250" runat="server" />
<telerik:RadAjaxPanel Height="100" ID="uxRadAjaxPanel_Content" EnableAJAX="true" LoadingPanelID="uxRadAjaxLoadingPanel" runat="server"><CTRL:UserList ID="UserList1" runat="server" /></telerik:RadAjaxPanel>


Aspx for the grid

<telerik:RadGrid ID="uxRadGrid" Skin="Transparent" AutoGenerateColumns="false" ShowHeader="true" Width="100%"
OnNeedDataSource="uxRadGrid_NeedDataSource"
PagerStyle-AlwaysVisible="true" PagerStyle-Mode="NumericPages" PagerStyle-Position="Bottom" AllowPaging="true" AllowSorting="true"
runat="server">
    <MasterTableView ClientDataKeyNames="user_id" TableLayout="Auto" GridLines="None">
        <Columns>
            <telerik:GridBoundColumn DataField="user_id" HeaderText="Id" />
            <telerik:GridBoundColumn DataField="user_status" HeaderText="Etat" />
            <telerik:GridBoundColumn DataField="user_role" HeaderText="Rôle" />
            <telerik:GridBoundColumn DataField="user_firstname" HeaderText="Prénom" />
            <telerik:GridBoundColumn DataField="user_lastname" HeaderText="Nom" />
            <telerik:GridBoundColumn DataField="user_email" HeaderText="Courriel" />
        </Columns>
    </MasterTableView>
 
    <ClientSettings>
        <ClientEvents OnRowClick="uxRadGrid_RowClick" />
    </ClientSettings>
</telerik:RadGrid>


And code-behind

protected void uxRadGrid_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
{
    ArrayList list = new ArrayList();
 
    list.Add(new TestObject("tYYpcH", "Activé", "Administrateur", "Vedran", "Vlajki", "vedran.vlajki@hotesline.ch"));
    list.Add(new TestObject("zzz333", "Activé", "Administrateur", "Catherine", "Schneider", "catherine@mail.com"));
 
    uxRadGrid.DataSource = list;
}


What is wrong ? Thanks everybody !
Iana Tsolova
Telerik team
 answered on 16 Nov 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?