Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
486 views
RadSkinManager's intuitive design-time options allow you to define global skin for the RadControls on the page as well as granular settings for particular controls through the TargetControls collection.

By default the Skin property of RadSkinManager is an empty string. If the property is set to a different value and Enabled is set to true for the control, the manager will apply automatically the specified skin to all RadControls on the form. If you set the ShowChooser property to true the manager will display run-time RadComboBox as a part of its smart tag, populated with all embedded skins, where you can pick a skin.

Additionally, in the TargetControls (persisted in ViewState) collection you can add per-control skin setting (setting TargetControl -> ID and TargetControl -> Skin) alongside with Enabled property value to enable/disable this particular setting. You can select any RadControl on the form and the manager will find recursively all ISkinableControl instances to set their skin.



To get familiar with the control please follow these online resources:

Telerik Admin
Top achievements
Rank 1
Iron
 asked on 25 Jun 2009
1 answer
206 views
Hi

I need to add some hyperlinks to a page dynamically that trigger an synchonous postback using

javascript:__doPostBack


and the radajax manager. I reduced the page to its most simplest form but i can't get it to work - the page performs a full postback when the link is clicked

I have created a panel that contains a placeholder. I am adding a hyperlink dynamically to the placeholder. The href property of the hyperlink is a javascript doPostback call. I have set up the RadAjax manager so that the pnl is the ajaxified control and the updated control is the pnl but this did not work - a full postback was performed (my thinking here was that is i set the pnl as the ajaxified control then any control within the panel such as my dynamically link that triggers a postback will lead to an asynchronous update of the panel itself). I also tried adding the dynamically created hyperlinks to the ajax manager in the code behind but that didn't work either. Please can you advise what I need to do.

many thanks

 

<asp:ScriptManager ID="ScriptManager1" runat="server">

 

 

</asp:ScriptManager>

 

 

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">

 

 

<AjaxSettings>

 

 

<telerik:AjaxSetting AjaxControlID="pnlTest">

 

 

<UpdatedControls>

 

 

<telerik:AjaxUpdatedControl ControlID="pnlTest" />

 

 

</UpdatedControls>

 

 

</telerik:AjaxSetting>

 

 

</AjaxSettings>

 

 

</telerik:RadAjaxManager>

 

 

<br />

 

 

<br />

 

 

<asp:panel ID="pnlTest" runat="server">

 

 

<asp:PlaceHolder runat="server" ID="ph1"></asp:PlaceHolder>

 

 

<br />

 

 

 

<br />

 

 

<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>

 

 

 

</asp:panel>

in page load event

 

 

Dim h As New HyperLink

 

h.NavigateUrl =

"javascript:__doPostBack('x','y')"

 

 

 

 

 

 

 

 

 

 

ph1.Controls.Add(h)

RadAjaxManager1.AjaxSettings.AddAjaxSetting(h, pnlTest)

label1.text = now()

Iana Tsolova
Telerik team
 answered on 25 Jun 2009
8 answers
141 views
I m a new user of telerik.

i want to create a portal page using your rad control like netvibes/bbc.co.uk

pls help me, how to create this page.



Petio Petkov
Telerik team
 answered on 25 Jun 2009
4 answers
327 views
Telerik Support,

I have Toolbar with some buttons. I have a toolbardropdown and toolbarsplitbutton, inside I have 2 buttons. Now when I select any one of them there should be a indication of which is selected, like a tick sign or something. I am not able to find any propery in toolbar out of box. Is there any property available to do so, or else how can we achive it ?

Below is the code for my toolbar.


<telerik:RadToolBar ID="tbTopPage" runat="server" Skin="Office2007" Width="100%">  
    <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
    <Items> 
        <telerik:RadToolBarButton runat="server" Text="Collapse All">  
        </telerik:RadToolBarButton> 
        <telerik:RadToolBarButton runat="server" IsSeparator="True" Text="Seperator1">  
        </telerik:RadToolBarButton> 
        <telerik:RadToolBarSplitButton runat="server" Text="Relation"   
            EnableDefaultButton="False">  
            <Buttons> 
                <telerik:RadToolBarButton runat="server" CheckOnClick="True"   
                    Text="With Relation" ValidationGroup="Relation">  
                </telerik:RadToolBarButton> 
                <telerik:RadToolBarButton runat="server" CheckOnClick="True"   
                    Text="Without Relation" Checked="True" ValidationGroup="Relation">  
                </telerik:RadToolBarButton> 
            </Buttons> 
        </telerik:RadToolBarSplitButton> 
        <telerik:RadToolBarButton runat="server" IsSeparator="True" Text="Seperator2">  
        </telerik:RadToolBarButton> 
        <telerik:RadToolBarDropDown runat="server" Text="View">  
            <Buttons> 
                <telerik:RadToolBarButton runat="server" CheckOnClick="True" Group="View"   
                    Text="Summary">  
                </telerik:RadToolBarButton> 
                <telerik:RadToolBarButton runat="server" CheckOnClick="True" Group="View"   
                    Text="Detail">  
                </telerik:RadToolBarButton> 
            </Buttons> 
        </telerik:RadToolBarDropDown> 
        <telerik:RadToolBarButton runat="server" IsSeparator="True" Text="Seperator3">  
        </telerik:RadToolBarButton> 
        <telerik:RadToolBarSplitButton runat="server" Text="Actions"   
            EnableDefaultButton="False">  
            <Buttons> 
                <telerik:RadToolBarButton runat="server" CheckOnClick="True" 
                    Text="Add to Basket">  
                </telerik:RadToolBarButton> 
                <telerik:RadToolBarButton runat="server" CheckOnClick="True" 
                    Text="Maintenance Update">  
                </telerik:RadToolBarButton> 
            </Buttons> 
        </telerik:RadToolBarSplitButton> 
    </Items> 
</telerik:RadToolBar> 


Thanks,
Het
Yana
Telerik team
 answered on 25 Jun 2009
5 answers
844 views
Hi, I have a grid that binds to a data table. Data table can have different number of columns. A user can select the view (grouping or not and if to show a data table A or B).
Everything works ok when there is no grouping.

When I add grouping: if a grid is bound to a data table with less columns (than the currently bound one) all works ok, but if a new data table has more columns I get an error that "Column 'Col 4' does not belong to table .

I am assuming that I do something wrong but so far could not see what it is. Could somebody point me in the right direction? The issue is: a grid is bound dynamically to differently structured data tables and when there is grouping added ... swicthing  to a table with more columns causes and error (Error only occurs when there is grouping and aggregate function in a footer).

I can supply a simple project that demonstartates this if this is not somethign obvious.The grid is RADGrid for ASP.NET AJAX and the version is 2009 Q1

Full Error:
-----------------------------------------------------------------------------------------------------------------------------
ArgumentException: Column 'Col 4' does not belong to table .]
   System.Data.DataRow.GetDataColumn(String columnName) +1775301
   System.Data.DataRow.get_Item(String columnName) +13
   Telerik.Web.UI.GridDataSetHelper.CalculateAggregates(DataRow SourceRow, DataRow DestRow, Int32 rowCountInGroup, GridTableView view) +704
   Telerik.Web.UI.GridDataSetHelper.InsertGroupByInto(GridTableView gridTableView, DataTable DestTable, DataTable SourceTable, String RowFilter, Int32 FirstIndexInPage, Int32 LastIndexInPage, Boolean ApplyPaging, Boolean IsCustomPaging) +669
   Telerik.Web.UI.GridEnumerableFromDataView.PerformTransformation() +2743
   Telerik.Web.UI.GridEnumerableFromDataView.TransformEnumerable() +21
   Telerik.Web.UI.GridTableView.GetEnumerator(Boolean useDataSource, GridEnumerableBase resolvedDataSource, ArrayList dataKeysArray) +105
   Telerik.Web.UI.GridTableView.CreateControlHierarchy(Boolean useDataSource) +169
   Telerik.Web.UI.GridTableView.CreateChildControls(IEnumerable dataSource, Boolean useDataSource) +499
   System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data) +57
   System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) +114
   System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +31
   System.Web.UI.WebControls.DataBoundControl.PerformSelect() +142
   Telerik.Web.UI.GridTableView.PerformSelect() +4
   System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +73
   Telerik.Web.UI.GridTableView.DataBind() +238
   Telerik.Web.UI.RadGrid.DataBind() +80
   Telerik.Web.UI.RadGrid.AutoDataBind(GridRebindReason rebindReason) +2122
   Telerik.Web.UI.RadGrid.Rebind() +9
   TelerikGridApp._Default.ddl_indexChanged(Object sender, EventArgs e) in C:\Projects\NRS\Utils\TelerikGridApp\Default.aspx.cs:68
   System.Web.UI.WebControls.ListControl.OnSelectedIndexChanged(EventArgs e) +111
   System.Web.UI.WebControls.DropDownList.RaisePostDataChangedEvent() +134
   System.Web.UI.WebControls.DropDownList.System.Web.UI.IPostBackDataHandler.RaisePostDataChangedEvent() +10
   System.Web.UI.Page.RaiseChangedEvents() +165
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1485

Thanks,

KJRB
KJRB
Top achievements
Rank 1
 answered on 25 Jun 2009
3 answers
128 views
We are using Hierarchy Grid, 1st lever is Client mode, send also same, but if we are using 3rd level also client.
we are getting MAX Script error. and also while loading very very slow. Can you please suggest me on this.

-- Shaik
Pavlina
Telerik team
 answered on 25 Jun 2009
4 answers
63 views
I just viewed the tutorial "Set alternating style to rows".  I can't seem to get that style to work on my code.  I can't find an rsRow or rsAltRow class used anywhere in the source either.  (I'm looking at the source code from a week view)

Thanks for any tips!
Matt
Top achievements
Rank 1
 answered on 25 Jun 2009
2 answers
325 views
Hi,

I have a asp.net gridview in a radpagepiew. The gridview has 3 editable textboxes. On the "onblur" event of the third textbox, I want to first execute a javascript code, and then a server side code. I need the postback to be ajaxified.
I have used the following code

<

 

asp:Button runat = "server" ID = "btnPsuedoButton" Visible="true" OnClick="btnPsuedoButton_Click" />

In the RowDatabound event of the gridview, I do

 

string

 

eventHandler = this.GetPostBackEventReference(this.btnPsuedoButton, "");

 

txtDescription.Attributes.Add(

"OnBlur", eventHandler);

My problems are
1. If I make the button btnPsuedoButton invisible, I get error on page
2. How do I make the postback ajaxified.
3. How to call a javascript before the btnPsuedoButton_Click event

Vanika
Top achievements
Rank 1
 answered on 25 Jun 2009
3 answers
199 views

Hi to all,

it is not possible for me to make a GridTemplateColumn sortable with a LinkButton - control inside?

For my RadGrid i have set the attributes AllowMultiColumnSorting="true" and have define a <SortExpressions> Tag for a default sortexpression.

I don´t know if this information is important for problem solving?


The GridTemplateColumn with the UniqueName="WText" is not sortable in my example code

            <telerik:RadGrid ID="rdgWI" 
                             runat="server"   
                             AutoGenerateColumns="False" 
                             GridLines="None" 
                             onneeddatasource="rdgWI_NeedDataSource"   
                             PageSize="8" 
                             AllowSorting="True" 
                             Width="100%">  
                <HeaderContextMenu> 
                    <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
                </HeaderContextMenu> 
 
                <ClientSettings> 
                    <Scrolling AllowScroll="True" UseStaticHeaders="true" /> 
                    <ClientEvents OnGridCreated="GetGridObject"></ClientEvents> 
                </ClientSettings> 
 
                <MasterTableView ClientDataKeyNames="WRhText, WiRhTask, WId, WText" ShowHeadersWhenNoRecords="true" AllowMultiColumnSorting="true" ShowHeader="true" runat="server" Width="99%">  
                     
                    <RowIndicatorColumn> 
                        <HeaderStyle Width="20px"></HeaderStyle> 
                    </RowIndicatorColumn> 
                    <ExpandCollapseColumn> 
                        <HeaderStyle Width="20px"></HeaderStyle> 
                    </ExpandCollapseColumn> 
                   <SortExpressions> 
                        <telerik:GridSortExpression FieldName="WRhText" SortOrder="Ascending" /> 
                    </SortExpressions> 
                    <Columns> 
                        <telerik:GridBoundColumn DataField="WId" UniqueName="WId" Visible="false">  
                        </telerik:GridBoundColumn> 
                        <telerik:GridTemplateColumn HeaderText="Category" SortExpression="WRhText"   
                            UniqueName="WCategory" DataField="WRhText" Visible="false">  
                            <ItemTemplate> 
                                <asp:Label ID="lblWCategory" runat="server" CssClass="DefaultText"   
                                    Text='<%# GetWorklistTypText(Eval("WRhTask")) %>' /> 
                            </ItemTemplate> 
                        </telerik:GridTemplateColumn> 
                        <telerik:GridTemplateColumn HeaderText="Description" SortExpression="WText" 
                            UniqueName="WText" > 
                            <ItemTemplate> 
                                <asp:LinkButton ID="lbWText" runat="server" 
                                    CommandArgument='<%# Eval("WId") %>'   
                                    CommandName="ShowDetails"   
                                    Text='<%# Eval("WText") %>' OnCommand="btnShowDetails">  
                                </asp:LinkButton> 
                        </ItemTemplate> 
                        </telerik:GridTemplateColumn> 
                    </Columns> 
                </MasterTableView> 
                <FilterMenu> 
                    <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
                </FilterMenu> 
            </telerik:RadGrid> 

Thank for your help
Pavlina
Telerik team
 answered on 25 Jun 2009
2 answers
161 views
Hi

   I am using RadMenu, I want a small triangle kind of icon on the righ end of each RadMenuItem and when I clik this triangle kind of icon it should display its child items..

  How can we do this with RadMenu. Can you please provide me a sample code

 Thanks
 Srikanthgn
srikanth
Top achievements
Rank 1
 answered on 25 Jun 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?