Telerik Forums
UI for ASP.NET AJAX Forum
13 answers
282 views
Accidentally posted this in the non-ajax forum, so reposting here...

Is there a way to programmatically remove all docks from a zone?  I want to initiate this from a button click, preferrably in server side code.
jose luis
Top achievements
Rank 1
 answered on 12 Sep 2011
1 answer
94 views
Is this not possible to achieve?

<telerik:GridBoundColumn SortExpression="Registrations.RegisteredOrganisationName" UniqueName="RegisteredOrganisationName" HeaderText="Organisation name" DataField="RegisteredOrganisationName" HtmlEncode="true" />

Here is the error message i receive (translated from swedish):

[IndexOutOfRangeException: Cant find the column Registrations.RegisteredFirstName.]
   System.Data.DataTable.ParseSortString(String sortString) +6235165
   System.Data.DataView.CheckSort(String sort) +35
   System.Data.DataView.set_Sort(String value) +155
   Telerik.Web.UI.GridEnumerableFromDataView.PerformTransformation() +3177
   Telerik.Web.UI.GridEnumerableFromDataView.TransformEnumerable() +24
   Telerik.Web.UI.GridTableView.GetEnumerator(Boolean useDataSource, GridEnumerableBase resolvedDataSource, ArrayList dataKeysArray) +164
   Telerik.Web.UI.GridTableView.CreateControlHierarchy(Boolean useDataSource) +514
   Telerik.Web.UI.GridTableView.CreateChildControls(IEnumerable dataSource, Boolean useDataSource) +608
   System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data) +72
   System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) +147
   System.Web.UI.WebControls.DataBoundControl.PerformSelect() +261
   Telerik.Web.UI.GridTableView.PerformSelect() +23
   Telerik.Web.UI.GridTableView.DataBind() +363
   Telerik.Web.UI.GridSortCommandEventArgs.ExecuteCommand(Object source) +243
   Telerik.Web.UI.RadGrid.OnBubbleEvent(Object source, EventArgs e) +185
   System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +70
   Telerik.Web.UI.GridItem.OnBubbleEvent(Object source, EventArgs e) +53
   System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +70
   Telerik.Web.UI.GridItem.OnBubbleEvent(Object source, EventArgs e) +115
   System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +70
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +29
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2981
                     
Mattias
Top achievements
Rank 1
 answered on 12 Sep 2011
3 answers
169 views
Hi!

    I was trying to install the Acceleration Kit for evaluation on my Sharepoint server, I am the administrator but when I try to install it, a message appears: "This installation requires elevated privileges. Run the Setup Wizard with elevated privileges (run the setup through a console, started as Administrator)." I run the .exe in command prompt but I obtain the same result.

  Is it something missing? what's the right way?

Thanks for your support!
Andrey
Telerik team
 answered on 12 Sep 2011
0 answers
144 views
Telerik Team,

I am using Rad Grid and have following command item template in the grid where I am using Rad Tool Bar and Rad Tool Bar Button. I want to call client side function to display filter bar in the grid on client click of one of the button. Please suggest which event should I use. I notice that Rad Tool Bar Button does not support OnClientClick event.

<CommandItemTemplate>
            <telerik:RadToolBar Skin="Vista" ID="RadToolBar1" runat="server">
                <Items>
                    <telerik:RadToolBarButton Text="Add new student" ID="btnInitInsert" runat="server"
                        CommandName="Insert" ImageUrl="~/images/telerik/AddRecord.gif" ImagePosition="Left">
                    </telerik:RadToolBarButton>
                    <telerik:RadToolBarButton Text="Delete student"
                        ID="btnDelete" runat="server" CommandName="Delete" ImageUrl="~/images/telerik/Delete.gif"
                        ImagePosition="Left">
                    </telerik:RadToolBarButton>
                    <telerik:RadToolBarButton Text="Toggle filtering" ID="ToggleFiltering" runat="server"
                        CommandName="ToggleFiltering" ImageUrl="~/images/telerik/search.png" ImagePosition="Left">
                    </telerik:RadToolBarButton>
                    <telerik:RadToolBarButton Text="Refresh" ID="btnRefresh" runat="server" CommandName="RebindGrid"
                        ImageUrl="~/images/telerik/Refresh.gif" ImagePosition="Left" CausesValidation="false">
                    </telerik:RadToolBarButton>
                </Items>
            </telerik:RadToolBar>
        </CommandItemTemplate>


Thank you for your assistance in advance.

Pathan L. M.
L. M. Pathan
Top achievements
Rank 1
 asked on 12 Sep 2011
6 answers
109 views

Hi,

We currently have RadEditor 4.6.x installed on our SP2007 farm.  We are building a brand new SP2010 farm and migrate the content dbs over to this new farm via db attached.  Currently, I have installed RadEditor 5.8.10 on the new farm. 

In doing my preupgradecheck and test-spcontentdatabase commands, I am gettings the missing features reported on the databases (see below). As mentioned, I have already installed and deployed RadEditor 5.8.10  on the new farm. Why am I still getting these? Are these removed from the latest version? Please advise how I can resolve this. Thanks


Missing Feature: f374a3ca-f4a7-11db-827c-8dd056d89593, RadEditorFeatureIE

Stanimir
Telerik team
 answered on 12 Sep 2011
3 answers
200 views
When I add a few controls to a page, I always need to adjust the CSS on a per-control basis just to get them to align vertically properly in Chrome.  Things seem to look ok by default in IE and Firefox.

Even just adding the following simple controls looks quite ridiculous without any manual adjustments, as you can see from the screengrab attached from Google Chrome:

<rad:RadFormDecorator ID="RadFormDecorator1" runat="server" Skin="Forest" />
<rad:RadTextBox ID="RadTextBox1" runat="server">
</rad:RadTextBox>
<rad:RadButton ID="RadButton1" runat="server" Text="Test" Icon-PrimaryIconCssClass="rbOk">
</rad:RadButton>
<asp:CheckBox ID="CheckBox1" runat="server" Checked="true" Text="Test Label" />

Any suggestions?
Bozhidar
Telerik team
 answered on 12 Sep 2011
1 answer
304 views
Dear Telerik-Staff,

in my application, I have an aspx-Page which stores a RadGrid. In the RadGrid, each row has a column with a link. Clicking this link, opens a RadWindow which displays a custom user control (ASCX).

Inside this ASCX-Control I have another RadGrid, which displays data. I have implemented this and the window opens with the RadGrid. But when I want to sort (for example) data in the grid which is in the user control, the page only posts back and nothing happens. Let me show you, what I have done:

In my ASPX-Page:

<asp:Content ID="Main" ContentPlaceHolderID="PlaceHolderMain" runat="server">    
    <telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" />
    <telerik:RadSkinManager ID="RadSkinManager1" runat="server" Skin="Windows7">
    </telerik:RadSkinManager>
                    
    <telerik:RadAjaxPanel ID="contentPanel" runat="server">
                                                                                                                 
                                <telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="false" AllowSorting="true" AllowPaging="false"
                                OnNeedDataSource="RadGrid1_NeedDataSource" OnItemCommand="RadGrid1_ItemCommand">
                                <MasterTableView DataKeyNames="ID" ClientDataKeyNames="ID">
                                    <Columns>
                                        <telerik:GridBoundColumn UniqueName="ID" DataField="ID" Visible="false"/>
                                        <telerik:GridBoundColumn DataField="Title" DataType="System.String" HeaderText="Title" SortExpression="Title" HeaderStyle-Width="200px"/>
                                        <telerik:GridBoundColumn DataField="Description" Visible="false"/>
                                                                                                                                   
                                        <telerik:GridTemplateColumn UniqueName="MyUniqueColumn" HeaderText="Custom Column" HeaderStyle-Width="150px">
                                            <ItemTemplate>
                                                <asp:Button ID="btnShowUserControl" runat="server" Text="anzeigen" CommandName="CustomCommand"></asp:Button>
                                            </ItemTemplate>
                                        </telerik:GridTemplateColumn>                               
                                    </Columns>  
                                    <SortExpressions>
                                        <telerik:GridSortExpression FieldName="Title" SortOrder="Ascending" />
                                    </SortExpressions>                  
                                </MasterTableView>                        
                                                                                      
                                <ClientSettings>
                                    <Selecting AllowRowSelect="true" />
                                </ClientSettings>
                            </telerik:RadGrid>                       
    </telerik:RadAjaxPanel>
    <telerik:RadWindowManager ID="RadWindowManager1" runat="server" EnableViewState="false">
        <Windows>           
            <telerik:RadWindow ID="MyWindow" Title="My Title" Modal="true" runat="server" Behaviors="Close" EnableViewState="false"
                ReloadOnShow="true" ShowContentDuringLoad="false" VisibleStatusbar="false" Width="800px" Height="400px"
                <ContentTemplate>
                    <company:MyCustomControl ID="myCustomcontrol" runat="server"></company:MyCustomControl>
                </ContentTemplate>
            </telerik:RadWindow>           
        </Windows>
    </telerik:RadWindowManager>
</asp:Content>

The user control has been registered properly on the page head but I have skipped this since it is not relevant to my problem. The Code-behind of my ASPX-Page looks like this (again, only the relevant parts):

protected void RadGrid1_ItemCommand(object sender, GridCommandEventArgs e)
        {
            if (e.CommandName == "Customcommand")
            {
                try
                {
                    //Get the requesting item
                    GridDataItem itemToEdit = (GridDataItem)e.Item;
 
                    //Init the user control
                    MyCustomControl control = (MyCustomControl)MyWindow.ContentContainer.FindControl("myCustomcontrol");
                    control.MakeInit(new Guid(itemToEdit["ID"].Text), IDFromQueryString);
 
                    MyWindow.VisibleOnPageLoad = true;
                }
                catch { }
            }
        }

Ok, now. That works since the RadWindow shows up and displays the user control. The markup of the ascx-file looks like this:

<telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">
    <AjaxSettings>           
        <telerik:AjaxSetting AjaxControlID="RadGrid1">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManagerProxy>
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" /> 
 
<telerik:RadAjaxPanel ID="contentPanel" runat="server">
        <telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="false" AllowSorting="true" AllowPaging="false"
            OnNeedDataSource="RadGrid1_NeedDataSource">
            <MasterTableView>
                <Columns>
                    <telerik:GridBoundColumn DataField="FirstID" Visible="false" />
                    <telerik:GridBoundColumn DataField="SecondID" Visible="false" />
            <telerik:GridBoundColumn DataField="User.UserFullName" DataType="System.String" HeaderText="Full name of user" SortExpression="User.UserFullName" HeaderStyle-Width="200px"/>                  
                </Columns>  
                <SortExpressions>
                    <telerik:GridSortExpression FieldName="User.UserFullName" SortOrder="Ascending" />
                </SortExpressions>                   
            </MasterTableView>                                                                                                
            <ClientSettings>
                <Selecting AllowRowSelect="true" />
            </ClientSettings>
        </telerik:RadGrid>
</telerik:RadAjaxPanel>

The code behind of the ascx-control looks like this:

private static Guid globalGuidID;
private static int globalIntID = 0;
         
        protected void Page_Load(object sender, EventArgs e)
        {
        }
         
        public void MakeInit(Guid guidID, int intID)
        {           
            globalGuidID = guidID;       
            globalIntID = intID;
 
            RadGrid1.Rebind();
        }
 
        protected void RadGrid1_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)
        {
            if (globalIntID > 0)
            {
                //Create service instance
                DataClient dataService = new DataClient();
 
                RadGrid1.DataSource = dataService.GetAppropriateData(globalIntID);
 
                //Close service instance after usage
                dataService.Close();
            }
        }

The Grid displays all the requested information that are retrieved by the "GetAppropriateData"-Method of a WebService instance. But when I try to sort the grid, it behaves as described above: The LoadingPanel is shown, a postback is raised and the grid is reloaded but not sorted.

In general: Any time, a postback is raised inside the RadGrid1 in my usercontrol, this control reloads making any sort, checkbox check, etc. lost.

I have spent so much time on this but I don't get the reason for this issue. When I transfer the code to a "simple" aspx-Page, everything runs as expected, but not for my usercontrol.

Could you please tell me what can cause my issue? I am totally stuck on this.

Best regards,
really appreciate your help,
Marco
Marco Beyer
Top achievements
Rank 1
 answered on 12 Sep 2011
1 answer
73 views
Hi,

I have 3 chartseries in my radchart. 1st and 3rd chartseries is of type Bar series and 2nd is of type stackedBar. When my chart is created , the 2nd series i.e. StackedBar is always showing on the 3rd position (in the right). I want to show Stackedbar series on 2nd position(in the middle).

Please give some suggestion.

Thanks,
Yavor
Telerik team
 answered on 12 Sep 2011
1 answer
66 views
In radscheduler the time interval is 1 hours for day view. Cal I reduce that nterval to 15 minutes. So that the vertical column have time 9:00,9:15,9:30,9:45 etc etc...
Shinu
Top achievements
Rank 2
 answered on 12 Sep 2011
0 answers
82 views
Hi,

I am searching the solution for this from last 6 days.

I have no idea about JQuery.

I have grid with both Master data & details data.So what are the rows that i selected either in Master and Details table,it will be printed with out header row(s).

With out column headings, it is not good.

Here is my java script function for printing grid with Master data & details data :

<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
<script type="text/javascript">
    function PrintRadGrid() {
        var sh = '<%= Page.ClientScript.GetWebResourceUrl(gvIndents.GetType(),String.Format("Telerik.Web.UI.Skins.{0}.Grid.{0}.css",gvIndents.Skin)) %>';
        var styleStr = "<html><head><link href = '" + sh + "' rel='stylesheet' type='text/css'></link></head>";
        var MasterTable = $find('<%= gvIndents.ClientID %>').get_masterTableView();
        var selectedRows = MasterTable.get_selectedItems();
        var htmlcontent = "<table>";
        for (var i = 0; i < selectedRows.length; i++) {
            var row = selectedRows[i];
            htmlcontent = htmlcontent + "<tr>" + row.get_element().innerHTML + "</tr>";
            if (row.get_nestedViews().length > 0) {
                var nestedSelectedRows = row.get_nestedViews()[0].get_selectedItems();
                for (var j = 0; j < nestedSelectedRows.length; j++) {
                    var nestedRow = nestedSelectedRows[j];
                    htmlcontent = htmlcontent + "<tr>" + nestedRow.get_element().innerHTML + "</tr>";
                }
            }
        }
 
        htmlcontent = styleStr + "<body><div class='RadGrid RadGrid_Simple'>" + htmlcontent + "</table></div></body></html>";
 
        var previewWnd = window.open('about:blank', '', '', false);
        previewWnd.document.open();
        previewWnd.document.write(htmlcontent);
        previewWnd.document.close();
        previewWnd.print();
 
    }   
</script>
</telerik:RadCodeBlock>

So please tell me where can i add below piece of code
var headerRow = $telerik.$("th.rgHeader").parent("tr");

Here i need to print both the Master & Details grid header rows.

Thanks in advance...
Guruvu
Top achievements
Rank 1
 asked on 12 Sep 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?