Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
92 views
The following is my aspx code...
When the page first loads it displays the contents properly (datagrid).  When I click on another tab the contents from the first tab is placed underneath the contents for the current tab.  Same thing happens if I click on the first tab...I now get two datagrids appearing with the same information ie. the grids are duplicated.

Any help would be greatly appreciated...I must be missing something small....I am at a total loss..
thanks,
scott


radtsYear_tabclick event code

 

 

protected void radtsYear_TabClick(object sender, Telerik.Web.UI.RadTabStripEventArgs e)

 

 

{

 

 

 

int ItemID = int.Parse(e.Tab.Text);

 

 

Session[

 

"ItemID"] = ItemID;

 

 

 

 

DataSet dsTemp = (DataSet) Session["dsGetGrowerOfferDetail"];

 

 

 

 

switch (ItemID)

 

 

{

 

 

 

case 2011:

 

 

 

if (dsTemp.Tables[2].Rows.Count > 0)

 

 

{

 

gvOffers2011.DataSource = dsTemp.Tables[2];

 

gvOffers2011.DataBind();

 

}

 

 

 

break;

 

 

 

 

case 2010:

 

 

 

if (dsTemp.Tables[1].Rows.Count > 0)

 

 

{

 

gvOffers2010.DataSource = dsTemp.Tables[1];

 

gvOffers2010.DataBind();

 

}

 

 

 

 

 

break;

 

 

 

 

case 2009:

 

 

 

if (dsTemp.Tables[0].Rows.Count > 0)

 

 

{

 

gvOffers2009.DataSource = dsTemp.Tables[0];

 

gvOffers2009.DataBind();

 

}

 

 

 

break;

 

}

}





 

 

<telerik:RadAjaxPanel runat="server" EnableHistory="false" HorizontalAlign="NotSet"

 

 

 

 

LoadingPanelID="RadAjaxLoadingPanel1">

 

 

 

<telerik:RadTabStrip ID="radtsYear" runat="server"

 

 

 

 

Skin="Forest" MultiPageID="radMultiPage" ontabclick="radtsYear_TabClick" SelectedIndex="0">

 

 

 

<Tabs>

 

 

 

<telerik:RadTab runat="server" Text="2011" >

 

 

 

</telerik:RadTab>

 

 

 

<telerik:RadTab runat="server" Text="2010" >

 

 

 

</telerik:RadTab>

 

 

 

<telerik:RadTab runat="server" Text="2009" >

 

 

 

</telerik:RadTab>

 

 

 

</Tabs>

 

 

 

</telerik:RadTabStrip>

 

 

 

<telerik:RadMultiPage ID="radMultiPage" runat="server" Width="100%" SelectedIndex="0" RenderSelectedPageOnly="true">

 

 

 

<telerik:RadPageView ID="pv2011" runat="server" ToolTip="2011 Grower Registrations">

 

 

 

<tr>

 

 

 

<td>

 

 

 

<asp:GridView ID="gvOffers2011" runat="server"

 

 

 

 

AlternatingRowStyle-BackColor="Gainsboro" AutoGenerateColumns="False"

 

 

 

 

Caption="2011 Offers" CaptionAlign="Top" EmptyDataText="No 2011 Offers Found"

 

 

 

 

HeaderStyle-BackColor="Green" HeaderStyle-ForeColor="White"

 

 

 

 

HeaderStyle-HorizontalAlign="Center" OnRowDataBound="gvOffers2010_RowDataBound"

 

 

 

 

Visible="True" Width="100%">

 

 

 

<Columns>

 

 

 

<asp:BoundField DataField="Offer_name" HeaderText="Program" />

 

 

 

<asp:BoundField DataField="Offer_description" HeaderText="Details" />

 

 

 

<asp:TemplateField HeaderText="Registration" ItemStyle-HorizontalAlign="Center">

 

 

 

<ItemTemplate>

 

 

 

<asp:Image ID="ImageRegistration" runat="server"

 

 

 

 

ImageUrl="Images/checkboxno.gif">

 

 

 

</asp:Image>

 

 

 

</ItemTemplate>

 

 

 

</asp:TemplateField>

 

 

 

<asp:TemplateField HeaderText="Paid" ItemStyle-HorizontalAlign="Center">

 

 

 

<ItemTemplate>

 

 

 

<asp:Image ID="ImagePaid" runat="server" ImageUrl="Images/checkboxno.gif">

 

 

 

</asp:Image>

 

 

 

</ItemTemplate>

 

 

 

</asp:TemplateField>

 

 

 

</Columns>

 

 

 

<HeaderStyle BackColor="Green" ForeColor="White" />

 

 

 

<AlternatingRowStyle BackColor="Gainsboro" />

 

 

 

</asp:GridView>

 

 

 

</td>

 

 

 

</tr>

 

 

 

</telerik:RadPageView>

 

 

 

<telerik:RadPageView ID="pv2010" runat="server"

 

 

 

 

ToolTip="2010 Grower Registrations">

 

 

 

<tr>

 

 

 

<td>

 

 

 

<asp:GridView ID="gvOffers2010" runat="server"

 

 

 

 

AlternatingRowStyle-BackColor="Gainsboro" AutoGenerateColumns="False"

 

 

 

 

Caption="2010 Offers" CaptionAlign="Top" EmptyDataText="No Offers Found"

 

 

 

 

HeaderStyle-BackColor="Green" HeaderStyle-ForeColor="White"

 

 

 

 

HeaderStyle-HorizontalAlign="Center" OnRowDataBound="gvOffers2010_RowDataBound"

 

 

 

 

Visible="true" Width="100%">

 

 

 

<Columns>

 

 

 

<asp:BoundField DataField="Offer_name" HeaderText="Program" />

 

 

 

<asp:BoundField DataField="Offer_description" HeaderText="Details" />

 

 

 

<asp:TemplateField HeaderText="Registration" ItemStyle-HorizontalAlign="Center">

 

 

 

<ItemTemplate>

 

 

 

<asp:Image ID="ImageRegistration" runat="server"

 

 

 

 

ImageUrl="Images/checkboxno.gif">

 

 

 

</asp:Image>

 

 

 

</ItemTemplate>

 

 

 

</asp:TemplateField>

 

 

 

<asp:TemplateField HeaderText="Paid" ItemStyle-HorizontalAlign="Center">

 

 

 

<ItemTemplate>

 

 

 

<asp:Image ID="ImagePaid" runat="server" ImageUrl="Images/checkboxno.gif">

 

 

 

</asp:Image>

 

 

 

</ItemTemplate>

 

 

 

</asp:TemplateField>

 

 

 

</Columns>

 

 

 

<HeaderStyle BackColor="Green" ForeColor="White" />

 

 

 

<AlternatingRowStyle BackColor="Gainsboro" />

 

 

 

</asp:GridView>

 

 

 

</td>

 

 

 

</tr>

 

 

 

</telerik:RadPageView>

 

 

 

<telerik:RadPageView ID="pv2009" runat="server"

 

 

 

 

ToolTip="2009 Grower Registrations">

 

 

 

<tr>

 

 

 

<td>

 

 

 

<asp:GridView ID="gvOffers2009" runat="server"

 

 

 

 

AlternatingRowStyle-BackColor="Gainsboro" AutoGenerateColumns="False"

 

 

 

 

Caption="2009 Offers" CaptionAlign="Top" EmptyDataText="No Offers Found"

 

 

 

 

HeaderStyle-BackColor="Green" HeaderStyle-ForeColor="White"

 

 

 

 

OnRowDataBound="gvOffers2010_RowDataBound" Visible="true" Width="100%">

 

 

 

<HeaderStyle BackColor="Green" ForeColor="White" />

 

 

 

<AlternatingRowStyle BackColor="Gainsboro" />

 

 

 

<Columns>

 

 

 

<asp:BoundField DataField="Offer_name" HeaderText="Program" />

 

 

 

<asp:BoundField DataField="Offer_description" HeaderText="Details" />

 

 

 

<asp:TemplateField HeaderText="Registration" ItemStyle-HorizontalAlign="Center">

 

 

 

<ItemTemplate>

 

 

 

<asp:Image ID="ImageRegistration" runat="server"

 

 

 

 

ImageUrl="Images/checkboxno.gif">

 

 

 

</asp:Image>

 

 

 

</ItemTemplate>

 

 

 

 

</asp:TemplateField>

 

 

 

</Columns>

 

 

 

</asp:GridView>

 

 

 

</td>

 

 

 

</tr>

 

 

 

</telerik:RadPageView>

 

 

 

</telerik:RadMultiPage>

 

 

 

</telerik:RadAjaxPanel>

 

 

 

<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server"

 

 

 

 

Skin="Forest" MinDisplayTime="5" InitialDelayTime="2">

 

 

 

</telerik:RadAjaxLoadingPanel>

 

Veronica
Telerik team
 answered on 02 Mar 2011
1 answer
108 views


Table

menuid   navigationurl  text           parentmenuid    isheadermenu
1 NULL InternetSites NULL True
2 NULL Yahoo 1 False
3 www.yahoo1.com Yahoo1 2 False
4 www.yahoo2.com Yahoo2 2 False
5 NULL Google 1 False
6 www.google1.com Google1 5 False
7 www.google2.com Google2 5 False
8 NULL Services NULL True
9 NULL IT 8 False
10 www.it1.com it1 9 False
11 www.it2.com it2 9 False
12 NULL Infrastructure 9 False
13 www.infra1.com infra1 12 False
14 www.infra2.com infra2 12 False

IsHeaderMenu represents menus which are present in the menubar.

This is my table structure.
User can add more menus from the UI provided.

I have to create the menu dynamically by using the above table structure.
I want to prepare xml for the above structure and want to do.

Can you give me some sample ?

Regards
Sreedhar Ambati



Shinu
Top achievements
Rank 2
 answered on 02 Mar 2011
1 answer
221 views
Hello,

I'm following this example: http://demos.telerik.com/aspnet-ajax/treeview/examples/functionality/treeviewcombobox/defaultcs.aspx

This works great.  But what I want is for the RadComboBox drop down not to collapse when clicking on the root element.  My tree is two levels deep always, and for the child only do I want the selection to happen.  I have this working great, but I need to cancel the drop down collapse, is there something passed in through the event arg for this?

Thanks.
Princy
Top achievements
Rank 2
 answered on 02 Mar 2011
1 answer
101 views
Hi Telerik,

I have a RadComboBox inside a RadComboBox ItemTemplate and the inner combobox is loading the items but the items are displayed behind the main combobox. Please look at the attached image to understand clearly. I want to get the items in the front so user can see all the items clearly and feel as the normal behavior of combobox.

Let me know how I can get out of this issue.

Thanks in advance,
Ravi
Princy
Top achievements
Rank 2
 answered on 02 Mar 2011
1 answer
224 views
Hello,
The RadDatePicker has default validation for any invalid date. It is working fine. But ,this does not work for me. For a invalid date , current as is implementation keeps the focus on the RadDatePicker control with a Warning image (like a triangle).

My requirement is to put the error message just below the RadDatePicker control, Not inside the control. I want to get rid of the image. Is there way I can disable the default behaviour and implement the custom behaviour using a javascript ?

Thanks,
Deba 
Shinu
Top achievements
Rank 2
 answered on 02 Mar 2011
1 answer
140 views
Hi
I am working on a problem where I need to fire a javascript function when a value is selected in the GridDateTimeColumn of PickerType= "DatePicker". But I couldn't find a relevant event for that. Kindly provide some inputs

Thanks
Sudhanshu
Princy
Top achievements
Rank 2
 answered on 02 Mar 2011
8 answers
79 views
Hi ,
I got an issue while adding reusable content in RadEditor for sharepoint

If we insert the reusable content (which has Automatic update =yes) and check- in the page (you are at Design mode), the Rad Editor remove the reusable content automatically. But if you insert the reusable content and you are at HTML Mode of editor and doing the page checked in it doesn’t remove the reusable content. Also if the Automatic Update =No in the content then there is on issue in RadEditor.

if anybody has faced the same issue, please let me know the resolution  ?

Thanks a lot 
Rajesh Soni
shrikant
Top achievements
Rank 1
 answered on 02 Mar 2011
0 answers
82 views
Hi,
We're using telerik version 2009.2.826.35

We've just upgrade (from .net 3.5) to .Net 4.0 and asp.net 4.0
The Radcombo, sits inside asp undatepanel, postbacks after the selected item changes.
(Attaching the s-shot for the error) This is occuring after the results comes back from the server.

Becasue of this error, our submit button is not enabled(ie this is enabled from the server side code)
This was working fine with .net 3.5

Please treat this as an urgent issue.

Thanks for the help.

Gopi
Gopinath
Top achievements
Rank 1
 asked on 02 Mar 2011
4 answers
132 views

I wish to use a single RadListBox as a replacement for a CheckBoxListControl. I am only really interested in the Checked functionality of the listbox items. Their selected state is irelevant. Therefore, I would like to prevent the items from ever being "Selected" and force users to use the checkboxes. I found a handy example which allows me to check/uncheck the checkboxes if the user clicks on an item by handling the selectedindexchanged event:
 

var sema_used; 
       function listItemClicked_BSC(sender, eventArgs) {
           if (!sema_used) {  
               sema_used = true;
               var item = eventArgs.get_item();  
               if (item.get_checked()) {  
                   item.uncheck();  
               }  
               else {  
                   item.check();   
               }
               item.set_selected(false);
               sema_used = false;  
           }  
       }


However, even though I call item.set_selected(false), the item still apears to be highlighted in the listbox. I believe this is probably because the selectedindex does not always change when a user clicks on an item. Is there a way to make sure all items are unselected (unhighlighted) in a listbox. Or is there a way to disable item selectiong, but keep the checkbox functionality? Ideally, there should be a client-side event for ItemClicked and ItemClicking, rather than just the current SelectedIndexChanged.

Thad
Top achievements
Rank 2
 answered on 02 Mar 2011
6 answers
157 views
When using the rad grid I dont see the columns until I bind.  I have AutoGenerateColumns="False".  Any way to see the columns?
John Giblin
Top achievements
Rank 1
 answered on 01 Mar 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?