Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
89 views
Hi,

I have a third level hierarchical grid.I try to insert/update/delete operations in this grid.I have tried the approach given in this demo,but the problem is I can't insert or update in my second detail table.I can't add or update the data in RecipeIngredients Table.By the way,I am using Sql data source.
My question is how I can insert and update operations in my second detail table?

The database structure of hierarchy is shown below:
 
RecipeTypes(Master Table)     Recipes(Details Table)           RecipeIngredients(Details Table)        
-RecipeTypeID(PK,int)             -RecipeID(PK,int)                    -RecipeID(PK,FK,int)                          
-RecipeType(nvarchar) -RecipeTypeID(FK,int)             -IngredientID(PK,FK,int)                    
-RecipeName (nvarchar)       -IngredientName(FK,nvarchar)

 Ingredients
-IngredientID(PK,int)
 -IngredientName(PK,nvarchar)

ASPX
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Default" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head runat="server">
    <title></title>
    <telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server" />
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        <Scripts>
            <%--Needed for JavaScript IntelliSense in VS2010--%>
            <%--For VS2008 replace RadScriptManager with ScriptManager--%>
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
        </Scripts>
    </telerik:RadScriptManager>
    <script type="text/javascript">
        //Put your JavaScript code here.
    </script>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadGrid1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    <div>
        <telerik:RadGrid ID="RadGrid1" runat="server" ShowStatusBar="True" AutoGenerateColumns="False"
            PageSize="3" AllowSorting="True" AllowPaging="True" GridLines="None" AllowAutomaticDeletes="True"
            AllowAutomaticInserts="True" AllowAutomaticUpdates="True" DataSourceID="SqlDataSource1"
            OnItemUpdated="RadGrid1_ItemUpdated" OnItemDeleted="RadGrid1_ItemDeleted" OnItemInserted="RadGrid1_ItemInserted"
            OnInsertCommand="RadGrid1_InsertCommand" CellSpacing="0">
            <PagerStyle Mode="NumericPages"></PagerStyle>
            <MasterTableView DataKeyNames="RecipeTypeID" AllowMultiColumnSorting="True" Width="100%"
                CommandItemDisplay="Top" Name="RecipeTypes" DataSourceID="SqlDataSource1" AllowAutomaticDeletes="true"
                AllowAutomaticInserts="true" AllowAutomaticUpdates="true">
                <DetailTables>
                    <telerik:GridTableView DataKeyNames="RecipeID" Width="100%" runat="server" CommandItemDisplay="Top"
                        Name="Recipes" DataSourceID="SqlDataSource2" AllowAutomaticDeletes="true" AllowAutomaticInserts="true"
                        AllowAutomaticUpdates="true">
                        <ParentTableRelation>
                            <telerik:GridRelationFields DetailKeyField="RecipeTypeID" MasterKeyField="RecipeTypeID" />
                        </ParentTableRelation>
                        <DetailTables>
                            <telerik:GridTableView DataKeyNames="RecipeID,IngredientID" Width="100%" runat="server"
                                CommandItemDisplay="Top" Name="RecipeIngredients" DataSourceID="SqlDataSource3"
                                AllowAutomaticDeletes="true" AllowAutomaticInserts="true" AllowAutomaticUpdates="true">
                                <ParentTableRelation>
                                    <telerik:GridRelationFields DetailKeyField="RecipeID" MasterKeyField="RecipeID" />
                                </ParentTableRelation>
                                <Columns>
                                    <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn1">
                                        <HeaderStyle Width="20px" />
                                        <ItemStyle CssClass="MyImageButton" />
                                    </telerik:GridEditCommandColumn>
                                    <telerik:GridBoundColumn SortExpression="RecipeID" HeaderText="RecipeID" HeaderButtonType="TextButton"
                                        DataField="RecipeID" UniqueName="RecipeID" ReadOnly="true" Visible="false">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn SortExpression="IngredientName" HeaderText="Ingredient Name"
                                        HeaderButtonType="TextButton" DataField="IngredientName" UniqueName="IngredientName">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn SortExpression="Quantity1" HeaderText="Quantity1" HeaderButtonType="TextButton"
                                        DataField="Quantity1" UniqueName="Quantity1">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn SortExpression="Quantity2" HeaderText="Quantity2" HeaderButtonType="TextButton"
                                        DataField="Quantity2" UniqueName="Quantity2">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn SortExpression="Quantity3" HeaderText="Quantity3" HeaderButtonType="TextButton"
                                        DataField="Quantity3" UniqueName="Quantity3">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridButtonColumn ConfirmText="Delete this product?" ButtonType="ImageButton"
                                        CommandName="Delete" Text="Delete" UniqueName="DeleteColumn1">
                                        <HeaderStyle Width="20px" />
                                        <ItemStyle HorizontalAlign="Center" CssClass="MyImageButton" />
                                    </telerik:GridButtonColumn>
                                </Columns>
                            </telerik:GridTableView>
                        </DetailTables>
                        <Columns>
                            <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn2">
                                <HeaderStyle Width="20px" />
                                <ItemStyle CssClass="MyImageButton" />
                            </telerik:GridEditCommandColumn>
                            <telerik:GridBoundColumn SortExpression="RecipeID" HeaderText="RecipeID" HeaderButtonType="TextButton"
                                DataField="RecipeID" UniqueName="RecipeID" ReadOnly="true">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn SortExpression="RecipeName" HeaderText="Recipe Name" HeaderButtonType="TextButton"
                                DataField="RecipeName" UniqueName="RecipeName">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn SortExpression="Calories1" HeaderText="Calories 1" HeaderButtonType="TextButton"
                                DataField="Calories1" UniqueName="Calories1">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn SortExpression="Calories2" HeaderText="Calories 2" HeaderButtonType="TextButton"
                                DataField="Calories2" UniqueName="Calories2">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn SortExpression="Calories3" HeaderText="Calories 3" HeaderButtonType="TextButton"
                                DataField="Calories3" UniqueName="Calories3">
                            </telerik:GridBoundColumn>
                            <telerik:GridButtonColumn ConfirmText="Delete these details record?" ButtonType="ImageButton"
                                CommandName="Delete" Text="Delete" UniqueName="DeleteColumn2">
                                <HeaderStyle Width="20px" />
                                <ItemStyle HorizontalAlign="Center" CssClass="MyImageButton" />
                            </telerik:GridButtonColumn>
                        </Columns>
                    </telerik:GridTableView>
                </DetailTables>
                <Columns>
                    <telerik:GridBoundColumn SortExpression="RecipeTypeID" HeaderText="RecipeTypeID"
                        DataField="RecipeTypeID" UniqueName="RecipeTypeID" ReadOnly="true" DataType="System.Int32">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn SortExpression="RecipeType" HeaderText="RecipeType" DataField="RecipeType"
                        UniqueName="RecipeType">
                    </telerik:GridBoundColumn>
                </Columns>
            </MasterTableView>
        </telerik:RadGrid>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:CateringDBConnectionString %>"
            ConflictDetection="CompareAllValues" OldValuesParameterFormatString="original_{0}"
            SelectCommand="SELECT * FROM [RecipeTypes]" InsertCommand="INSERT INTO [RecipeTypes] ([RecipeType]) VALUES (@RecipeType)"
            DeleteCommand="DELETE FROM [RecipeTypes] WHERE [RecipeTypeID] = @original_RecipeTypeID"
            UpdateCommand="UPDATE [RecipeTypes] SET [RecipeType] = @RecipeType WHERE [RecipeTypeID] = @original_RecipeTypeID AND [RecipeType] = @original_RecipeType">
            <InsertParameters>
                <asp:Parameter Name="RecipeType" Type="String" />
            </InsertParameters>
            <DeleteParameters>
                <asp:Parameter Name="original_RecipeTypeID" Type="Int32" />
            </DeleteParameters>
            <UpdateParameters>
                <asp:Parameter Name="RecipeType" Type="String" />
                <asp:Parameter Name="original_RecipeTypeID" Type="Int32" />
                <asp:Parameter Name="original_RecipeType" Type="String" />
            </UpdateParameters>
        </asp:SqlDataSource>
        <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:CateringDBConnectionString %>"
            SelectCommand="SELECT * FROM [Recipes] WHERE ([RecipeTypeID] = @RecipeTypeID)"
            InsertCommand="INSERT INTO [Recipes] ([RecipeTypeID], [RecipeName], [Calories1], [Calories2], [Calories3]) VALUES (@RecipeTypeID,@RecipeName, @Calories1, @Calories2, @Calories3)"
            DeleteCommand="DELETE FROM [Recipes] WHERE [RecipeID] = @original_RecipeID" UpdateCommand="UPDATE [Recipes] SET [RecipeName] = @RecipeName, [Calories1] = @Calories1, [Calories2] = @Calories2, [Calories3] = @Calories3 WHERE [RecipeID] = @original_RecipeID AND [RecipeName] = @original_RecipeName AND [Calories1] = @original_Calories1 AND [Calories2] = @original_Calories2 AND [Calories3] = @original_Calories3"
            ConflictDetection="CompareAllValues" OldValuesParameterFormatString="original_{0}">
            <SelectParameters>
                <asp:SessionParameter Name="RecipeTypeID" SessionField="RecipeTypeID" Type="Int32" />
            </SelectParameters>
            <InsertParameters>
                <asp:SessionParameter Name="RecipeTypeID" SessionField="RecipeTypeID" Type="Int32" />
                <asp:Parameter Name="RecipeName" Type="String" />
                <asp:Parameter Name="Calories1" Type="Int32" />
                <asp:Parameter Name="Calories2" Type="Int32" />
                <asp:Parameter Name="Calories3" Type="Int32" />
            </InsertParameters>
            <DeleteParameters>
                <asp:Parameter Name="original_RecipeID" Type="Int32" />
            </DeleteParameters>
            <UpdateParameters>
                <asp:Parameter Name="RecipeName" Type="String" />
                <asp:Parameter Name="Calories1" Type="Int32" />
                <asp:Parameter Name="Calories2" Type="Int32" />
                <asp:Parameter Name="Calories3" Type="Int32" />
                <asp:Parameter Name="original_RecipeID" Type="Int32" />
                <asp:Parameter Name="original_RecipeName" Type="String" />
                <asp:Parameter Name="original_Calories1" Type="Int32" />
                <asp:Parameter Name="original_Calories2" Type="Int32" />
                <asp:Parameter Name="original_Calories3" Type="Int32" />
            </UpdateParameters>
        </asp:SqlDataSource>
        <asp:SqlDataSource ID="SqlDataSource3" runat="server" ConnectionString="<%$ ConnectionStrings:CateringDBConnectionString %>"
            SelectCommand="SELECT * FROM [RecipeIngredients] WHERE ([RecipeID] = @RecipeID)"
            InsertCommand="INSERT INTO [RecipeIngredients] ([RecipeID], [IngredientName], [Quantity1], [Quantity2], [Quantity3]) VALUES (@RecipeID, @IngredientName, @Quantity1, @Quantity2, @Quantity3)"
            DeleteCommand="DELETE FROM [RecipeIngredients] WHERE [RecipeID] = @original_RecipeID"
            UpdateCommand="UPDATE [RecipeIngredients] SET [IngredientName] = @IngredientName, [Quantity1] = @Quantity1, [Quantity2] = @Quantity2, [Quantity3] = @Quantity3 WHERE [RecipeID] = @original_RecipeID AND [IngredientName] = @original_IngredientName AND [Quantity1] = @original_Quantity1 AND [Quantity2] = @original_Quantity2 AND [Quantity3] = @original_Quantity3"
            OldValuesParameterFormatString="original_{0}" ConflictDetection="CompareAllValues">
            <SelectParameters>
                <asp:SessionParameter Name="RecipeID" SessionField="RecipeID" Type="Int32" />
            </SelectParameters>
            <InsertParameters>
                <asp:SessionParameter Name="RecipeID" SessionField="RecipeID" Type="Int32" />
                <asp:Parameter Name="IngredientName" Type="String" />
                <asp:Parameter Name="Quantity1" Type="Int32" />
                <asp:Parameter Name="Quantity2" Type="Int32" />
                <asp:Parameter Name="Quantity3" Type="Int32" />
            </InsertParameters>
            <DeleteParameters>
                <asp:Parameter Name="original_RecipeID" Type="Int32" />
            </DeleteParameters>
            <UpdateParameters>
                <asp:Parameter Name="IngredientName" Type="String" />
                <asp:Parameter Name="Quantity1" Type="Int32" />
                <asp:Parameter Name="Quantity2" Type="Int32" />
                <asp:Parameter Name="Quantity3" Type="Int32" />
                <asp:Parameter Name="original_RecipeID" Type="Int32" />
                <asp:Parameter Name="original_IngredientName" Type="String" />
                <asp:Parameter Name="original_Quantity1" Type="Int32" />
                <asp:Parameter Name="original_Quantity2" Type="Int32" />
                <asp:Parameter Name="original_Quantity3" Type="Int32" />
            </UpdateParameters>
        </asp:SqlDataSource>
    </div>
    </form>
</body>
</html>
ASPX.CS
using System;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
 
using System.Data;
using System.Configuration;
using System.Web.Security;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Telerik.Web.UI;
using CateringWebApp.CateringDataSetTableAdapters;
using CateringWebApp;
 
public partial class Default : System.Web.UI.Page
{
    
 
    protected void Page_Load(object sender, EventArgs e)
    {
        
    }
 
    protected void RadGrid1_ItemUpdated(object source, Telerik.Web.UI.GridUpdatedEventArgs e)
    {
        string item = getItemName(e.Item.OwnerTableView.Name);
        string field = getFieldName(e.Item.OwnerTableView.Name);
        if (e.Exception != null)
        {
            e.KeepInEditMode = true;
            e.ExceptionHandled = true;
            DisplayMessage(item + " " + e.Item[field].Text + " cannot be updated. Reason: " + e.Exception.Message);
        }
        else
        {
            DisplayMessage(item + " " + e.Item[field].Text + " updated");
        }
    }
 
    protected void RadGrid1_ItemInserted(object source, GridInsertedEventArgs e)
    {
        string item = getItemName(e.Item.OwnerTableView.Name);
        if (e.Exception != null)
        {
            e.ExceptionHandled = true;
            DisplayMessage(item + " cannot be inserted. Reason: " + e.Exception.Message);
        }
        else
        {
            DisplayMessage(item + " inserted");
        }
    }
 
    protected void RadGrid1_ItemDeleted(object source, GridDeletedEventArgs e)
    {
        string item = getItemName(e.Item.OwnerTableView.Name);
        string field = getFieldName(e.Item.OwnerTableView.Name);
        if (e.Exception != null)
        {
            e.ExceptionHandled = true;
            DisplayMessage(item + " " + e.Item[field].Text + " cannot be deleted. Reason: " + e.Exception.Message);
        }
        else
        {
            DisplayMessage(item + " " + e.Item[field].Text + " deleted");
        }
    }
 
    protected void RadGrid1_InsertCommand(object source, GridCommandEventArgs e)
    {
        if ("Recipes".Equals(e.Item.OwnerTableView.Name))
        {
            GridDataItem parentItem = (GridDataItem)e.Item.OwnerTableView.ParentItem;
            SqlDataSource2.InsertParameters["RecipeTypeID"].DefaultValue = parentItem.OwnerTableView.DataKeyValues[parentItem.ItemIndex]["RecipeTypeID"].ToString();
        }
        else if ("RecipeIngredients".Equals(e.Item.OwnerTableView.Name))
        {
            GridDataItem parentItem = (GridDataItem)e.Item.OwnerTableView.ParentItem;
            SqlDataSource3.InsertParameters["RecipeID"].DefaultValue = parentItem.OwnerTableView.DataKeyValues[parentItem.ItemIndex]["RecipeID"].ToString();
        }
    }
 
    private String getItemName(string tableName)
    {
        switch (tableName)
        {
            case ("RecipeTypes"):
                {
                    return "RecipeTypes";
                }
            case ("Recipes"):
                {
                    return "Recipes";
                }
            case ("RecipeIngredients"):
                {
                    return "RecipeIngredients";
                }
            default: return "";
        }
    }
 
    private String getFieldName(string tableName)
    {
        switch (tableName)
        {
            case ("RecipeTypes"):
                {
                    return "RecipeTypeID";
                }
            case ("Recipes"):
                {
                    return "RecipeID";
                }
            case ("RecipeIngredients"):
                {
                    return "RecipeID";
                }
            default: return "";
        }
    }
 
    private void DisplayMessage(string text)
    {
        RadGrid1.Controls.Add(new LiteralControl(string.Format("<span style='color:red'>{0}</span>", text)));
    }
 
 
 
}

Antonio Stoilkov
Telerik team
 answered on 08 Dec 2011
8 answers
281 views
This behaviour is probably by design - but I'm confused as to why I still get the child control value changed events when I hit the Cancel link - I'd have thought they would have been discarded?

So for example - I have a RadGrid with an EditCommandColumn, and a template column with a label in the ItemTemplate, and a TextBox in the EditItemTemplate.

This TextBox has a _TextChanged event which is wired up to change the column in the dataset the RadGrid is bound to.

When I hit Edit, the row goes into Edit mode, and the textbox appears. I then change the text in that textbox, but hit Cancel, rather than Update. The _TextChanged event fires first, before the RadGrid_CancelCommand - so I can't event set a bIsCancelling flag, and have an "If Not bIsCancelling" around the code in my _TextChanged event, to prevent the dataset updating code from executing.

I'm new to these controls, so I'm probably missing something obvious - I just need to know how Cancels are handled correctly with the RadGrid.

Thanks,

Andrew
Tsvetoslav
Telerik team
 answered on 08 Dec 2011
5 answers
140 views

I use 2010.1.519.40 version of Rad Controls for ASP.NET AJAX

My RadComboBox uses markfirstmatch="true and allowcustomtext="true"

Here is code snippet:

<telerik:RadComboBox ID="RadComboBox1" runat="server" AllowCustomText="True" MarkFirstMatch="True"
  DataSourceID="LinqDataSource1" DataTextField="Name" DataValueField="Id">
</telerik:RadComboBox>

It does not work in IE9.

Autocomplete does not work at all and when I type custom text into control, on postback previously selected is set and RadComboBox1.Text on server side is set to that item.

Is there any fix/workaround?

Dimitar Terziev
Telerik team
 answered on 08 Dec 2011
3 answers
425 views
Hey guys, i wonder if someone would be kind enough to help me get the <asp:ValidationSummary> inside the notification box. Specifically the validation summary when client side validation is done, like the <asp:RequiredFieldValidator> or <asp:CompareValidator>. I have already successfully accomplished this scenario on the server side with the <asp:CustomValidator>... Any help with the client side functionality of this would be great!

Thanks,

Duncan
Duncan
Top achievements
Rank 2
 answered on 08 Dec 2011
3 answers
250 views
Hello
I Followed all these steps present in this KB Link

http://www.telerik.com/support/kb/aspnet-ajax/scheduler/implement-related-radcombobox-controls-in-the-advanced-form.aspx

and in my RadComboboxes are Showing Continents and Countries (3.jpg)... and this data is coming from my Database Table.
But i am facing still problem is that.. Its all Appointments data saving in XML File... which is prestent in App_Data Folder of Zip file and i added up in Proj App_Data.

and in Default.aspx.vb this code is used for XML File...
Protected Sub Page_Init(ByVal sender As Object, ByVal e As EventArgs)
  
       Dim provider As XmlSchedulerProvider = New XmlSchedulerProvider(Server.MapPath("~/App_Data /Appointments_CustomTemplates.xml"), True)
  
       RadScheduler1.Provider = provider
   End Sub
How can I Save all this stuff into my Database SQL 2005/?
And what would I do to save all data in my SQL Database table?
Any Solution ?
Thanks
Ivana
Telerik team
 answered on 08 Dec 2011
0 answers
128 views
Hi,

I've got a RadMenu using a SiteMapDataSource which reads a web.sitemap that has parent nodes with blank URLs. Previous to adding the AntiXSS 4.1 library as the default encoder type, any urls in the web.sitemap which had blank URL's were rendered with a #. For example, if this is in the sitemap;

<siteMapNode url="" title="Help"  description="" roles="UserRole">
    <siteMapNode url="~/help/faq.aspx" title="FAQ"  description="FAQ" roles="UserRole" />
</siteMapNode>


the node for Help list its href attribute like href=#

However, after adding the AntiXSS 4.1 library the href attribute is rendered like href=%23. Consequently when a user clicks the menu item navigation fails.

Is it possible to make the menu render blank urls with an empty href attribute? Basically, on some of my parent nodes I don't want the user to be able to navigate anywhere, I just want the menu to display the child nodes.
Jeff
Top achievements
Rank 1
 asked on 08 Dec 2011
1 answer
64 views
Telerik team,

I have face a new issue while try to implement the custom property inspector.

Here I attach a image,
<xref format="dita" href="#bnf_38311" otherprops="BNF:topic: Immunisation schedule" type="topic">
section 14.1
</xref>
If i click the text "section 14.1" in the yellow highlighted text,I can create a panel(with input fields) outside editor using java script .And i filled the selected tag attributes in the relevant fields.

But after filled ,the cursor from editor gone away. But i need that the cursor should stay in the selected position in this editor.

Is this natutre of editor or due to my operation in java script (create a panel outside for display the properties) should gone away?

Is any possibility should after create a panel,should stay the cursor in the editor itself.

Note:
One more point i found while investigating this issues,

When i click the tag,out side the editor panel created and the cursor should stay in that position in editor.

But when i click the outside input field,It moves out from editor to that fields.

Is any possibility to get the current position before leave from editor or get the selected tag details?

Kindly share your suggesstion/comments to solve my problem.

Thank you
Rumen
Telerik team
 answered on 08 Dec 2011
1 answer
121 views
Hello

I am playing with Editor inside RadDock. I found strange behaviour in some browsers (IE9 and Chrome - no other tested)

IE9:
After move of dock, design mode is not editable and blocked.
After move od dock in html mode, content is lost, editing blocked but switch to other mode and back will allow html editing.
Chrome:
When moving Dock in HTML mode, after placing dock into Zone, content is lost.
Also, when just clicking on the docked raddock (or doing  very short dragging), text will disappear from the editor however it is still present (checked with alert in javascript) and will usually reappear after it is moved somewhere else. 

This is not happening if the dock is not placed in zone

It is running without issues on IE8 or  IE9 in compatibility mode or IE9 if using  <meta http-equiv="X-UA-Compatible" content="IE=8" />.


Sample code : 
<div>    
        <telerik:RadDockZone ID="RadDockZone1" runat="server" Height="300px" Width="300px">
               </telerik:RadDockZone>
            <telerik:RadDock ID="RadDock1" runat="server" Width="300px" >
                <ContentTemplate>                     
                    <telerik:RadEditor ID="RadEditor1" runat="server">
                    </telerik:RadEditor>                    
                </ContentTemplate> 
            </telerik:RadDock>
</div>

SW: VS 2008, .NET 3.5, Telerik 3Q 2011

Is there any way to fix such behaviour preferably without use of <meta...

Regards

Pavel
Slav
Telerik team
 answered on 08 Dec 2011
13 answers
2.4K+ views
Hi,
In my project I used RadGrid and I made the Filter Row appearance optional between Show and Hide, I put a "LinkButton" control in "CommanditemTemplate" tag in my Grid and on the "OnClick" event I call a code behind procedure including below statement to switch between the two state  :

RadGrid1.AllowFilteringByColumn = !RadGrid1.AllowFilteringByColumn;

My default state is Hide the Filter row but when I click my LinkButton the first click did not show the filter but the second click show it !! Why this happened !!! why its start to work with the second click only,
I try to solve it by JavaScript and the same problem appear to me,
Please help and advice me.
Thanks

Ban


 

 

Michael
Top achievements
Rank 1
 answered on 08 Dec 2011
1 answer
79 views
Hi All,,,,

I use javascript to add tab and assign a multipage view to it....

i need to change the width and height of this pageview from the javascript too to fit my page content properly....

i tried to assign an id to this pageview but still be undefined....

I don't know how to do that....

any help will be grate....

thanks

Best Regards
Asa'ad....


Kate
Telerik team
 answered on 08 Dec 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?