Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
179 views
how to rebind data of a repeater in a radpanle themplate?

 <div> 
        <telerik:RadPanelBar ID="RadPanelBar1" runat="server" Skin="Default2006"
            <CollapseAnimation Type="None" Duration="100"></CollapseAnimation> 
            <Items> 
                <telerik:RadPanelItem runat="server" Text="Root RadPanelItem1"
                    <Items> 
                        <telerik:RadPanelItem runat="server" Text="Child RadPanelItem 1"
                            <ItemTemplate> 
                                <asp:Repeater ID="Repeater1" runat="server" DataSourceID="SqlDataSource1"  
                                    > 
                                    <ItemTemplate> 
                                        <asp:Label ID="Label1" runat="server" Text='<%#bind ("email") %>'></asp:Label> 
                                        <br /> 
                                    </ItemTemplate> 
                                </asp:Repeater> 
                            </ItemTemplate> 
                        </telerik:RadPanelItem> 
                    </Items> 
                </telerik:RadPanelItem> 
            </Items> 
            <ExpandAnimation Type="None" Duration="100"></ExpandAnimation> 
        </telerik:RadPanelBar> 
    </div> 
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:test %>" 
        SelectCommand="SELECT [Email] FROM [Person]"></asp:SqlDataSource> 
    <asp:Button ID="Button1" runat="server" Text="Button" /> 


sadeghhp
Top achievements
Rank 1
 asked on 10 Aug 2009
1 answer
227 views
Hi,

I have a radGrid to which I am assigning custom filter menu at runtime as given below. When I click on filter menu, I am getting the following error. Any suggestions please.

Error

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6; InfoPath.2; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
Timestamp: Thu, 30 Jul 2009 13:49:43 UTC


Message: Sys.WebForms.PageRequestManagerServerErrorException:  is neither a DataColumn nor a DataRelation for table Table.
Line: 6
Char: 62099
Code: 0
URI: http://localhost:1168/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_RadScriptManager1_HiddenField&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d3.5.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a0d787d5c-3903-4814-ad72-296cea810318%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2009.2.701.35%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3ad5b69bca-cfa7-4e0a-9dd0-824ae4c4ef5a%3a16e4e7cd%3af7645509%3a24ee1bba%3a19620875%3a874f8ea2%3a33108d14%3abd8f85e4%3a86526ba7%3aed16cbdc%3a1e771326%3aaa288e2d%3a58366029%3ae330518b%3ac8618e41%3ae4f8f289

 

Default.aspx

<telerik:RadGrid ID="radGrid" runat="server" AutoGenerateColumns="false" AllowPaging="true"
                AllowSorting="true" AllowCustomPaging="true" PageSize="5" AllowFilteringByColumn="false"
                OnPageIndexChanged="radGrid_PageIndexChanged" OnPageSizeChanged="radGrid_PageSizeChanged"
                OnSortCommand="radGrid_SortCommand" OnItemCommand="radGrid_ItemCommand">
                <PagerStyle Mode="NextPrevNumericAndAdvanced" AlwaysVisible="true" />
                <FilterMenu OnItemClick="FilterMenu_ItemClick"></FilterMenu>
                <ClientSettings Scrolling-AllowScroll="false">
                    <ClientEvents OnColumnContextMenu="ColumnContextMenu" />
                </ClientSettings>
            </telerik:RadGrid>
          
Default.aspx.cs

public void AddCustomGridFilters()
        {
            radGrid.FilterMenu.Items.Clear();
            GridFilterMenu filterMenu = radGrid.FilterMenu;

            RadMenuItem[] radMenuItems = new RadMenuItem[7];
            for (int index = 0; index < radMenuItems.Length; index++)
            {
                radMenuItems[index] = new RadMenuItem();
                radGrid.FilterMenu.Items.Add(radMenuItems[index]);
            }

            radMenuItems[0].Text = Constants.EqualTo;
            radMenuItems[1].Text = Constants.StartsWith;
            radMenuItems[2].Text = Constants.EndsWith;
            radMenuItems[3].Text = Constants.LessThan;
            radMenuItems[4].Text = Constants.GreaterThan;
            radMenuItems[5].Text = Constants.Contains;
            radMenuItems[6].Text = Constants.NoFilter;
        }


Thanks,
Mahesh

Yavor
Telerik team
 answered on 10 Aug 2009
2 answers
94 views

I have 5 RadGrids on a page, registered with RadAjaxManager (AddAjaxSetting(grid, grid, loadingpanel)).

All grids use paging and hook the NeedDataSource() event. 

When I page through one grid, there is no full page refresh, the loading panel appears as expected and paging functions correctly. 

However, when I investigated the very slow paging I discovered that NeedDataSource (and infact all the lifecycle events) was firing on all 5 grids and not just the one that I was actually paging.

Is there any way that the RadAjaxManager could be refreshing all it's AjaxSettings regardless of which control is the trigger?

Thanks,

brian
Yavor
Telerik team
 answered on 10 Aug 2009
1 answer
110 views
Hey,

I am having a problem with a RadDatePicker.  My picker is sitting inside a GridTemplateColumn under the EditItem section.  I am wanting to set the SelectedDate and the MaxDateRange from the codebehind but I cannot figure out how to access the control.  Can you please help me out??


Thanks,

Kyle
Princy
Top achievements
Rank 2
 answered on 10 Aug 2009
1 answer
109 views
Hi all,
I have installed for Insert Command with code in ItemCommand event:
if (e.CommandName == RadGrid.InitInsertCommandName)
            {
                e.Canceled = true;
                e.Item.OwnerTableView.InsertItem();
                e.Item.OwnerTableView.IsItemInserted = true;
                GridEditableItem insertedItem = e.Item.OwnerTableView.GetInsertItem();
                String MyUserControlId = GridEditFormItem.EditFormUserControlID;
                UserControl userControl = insertedItem.FindControl(MyUserControlId) as UserControl;               
            }
this run well.

However, I don't know how to find my usercontrol when click Edit command. Please help me!

Thanks!

Princy
Top achievements
Rank 2
 answered on 10 Aug 2009
1 answer
71 views
We have a RadGrid in which "CommandItemDisplay" is set to "top".  We would like to change the behavior of the "Add Record" function within this display.  Instead of the normal form for a person to input data with the insert and cancel links, we would like to popup a RadWindow that includes another RadGrid from which a user could select a record.

We have all the code for the popup and to return values to the primary RadGrid.  All we need is how to override the "Add Record" functionality of the CommandItemDisplay so that our method is called instead of the default.

Thanks!

Dan
Shinu
Top achievements
Rank 2
 answered on 10 Aug 2009
1 answer
188 views
hi

I have a method eg: Shared Sub Demo(byval rowvalue as String).
How do i call this method using  <telerik:GridButtonColumn Text="Select" CommandName="Select">
                        </telerik:GridButtonColumn> so that when i click the select button it also passes in the value of the selected row?


Thanks
Shinu
Top achievements
Rank 2
 answered on 10 Aug 2009
3 answers
97 views
Hi

I want to give the coloring for appointment like this and no text wrap also.
http://demos.telerik.com/aspnet-ajax/scheduler/examples/outlook2007/defaultcs.aspx.
Because the rounded corner image are used this demo.how can i acheive this ?
I want to give five different type of color for my scheduler appointmet depent on count.

Regards
Vairam
vairam
Top achievements
Rank 1
 answered on 10 Aug 2009
1 answer
112 views
how do i disable the tab click onclientselecting.
Princy
Top achievements
Rank 2
 answered on 10 Aug 2009
2 answers
63 views
Hi

I've noticed that since the release of Q2-2009, the buttons that are skinned don't look quite right. I'm using the Office 2007 skin, which usually gives the button text a blue colour, and centres the text in the button. But if you look at this screenshot - 

http://i970.photobucket.com/albums/ae187/paulehn/spellcheck.jpg

You can see that the text is black, and the text is not centered (and perhaps the font size is a little bigger than it should be too?). I was just wondering if there was any way to fix this?
Peter
Top achievements
Rank 1
 answered on 10 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?