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

I have two radgridviews, and one radcombobox for the ajax operations. Flow is that user enters information in grid1, on submitting the data, radcombobox gets populated with the details entered in grid1. On change of this dropdown, grid 2 gets reflected.

My problem is that when i click on Save button, and server side validation fails, user is brought back to the page. at that time i am unable to select item from the radcombobox, it does not open up to show options. Also when i perform any operation on the grids, Ajax loading icon does not appear. Following is the code.

UserControl1.ascx
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Windows7"
    MinDisplayTime="30" />
<telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="rgXAxisDetails">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="rgXAxisDetails" />
                <telerik:AjaxUpdatedControl ControlID="RadWindowManager1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="radCmbXAxisColumn">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="radCmbXAxisColumn" />
                <telerik:AjaxUpdatedControl ControlID="RadWindowManager1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManagerProxy>
<div>
    <table cellspacing="0" cellpadding="2" border="0" width="100%">
        <tr>
            <td colspan="2" style="font-weight: normal">
                <asp:Label ID="lblGenericChart" runat="server" Font-Bold="True" Text="Generic Chart Plot"></asp:Label>
                <asp:Label ID="lblError" runat="server" Text="" ForeColor="red"></asp:Label>
            </td>
        </tr>
    </table>
    <table cellspacing="2" cellpadding="2" border="0" width="100%">
        <tr>
            <td colspan="2">
                <asp:Label ID="lblErrorXAxis" runat="server" Text="" ForeColor="red"></asp:Label></td>
        </tr>
        <tr>
            <td colspan="2">
              
                <telerik:RadGrid ID="rgXAxisDetails" Skin="Windows7" GridLines="Both" runat="server"
                    AutoGenerateColumns="False" SelectedItemStyle-BackColor="blue" OnUpdateCommand="rgXAxisDetails_UpdateCommand"
                    OnItemCommand="rgXAxisDetails_ItemCommand" OnEditCommand="rgXAxisDetails_EditCommand"
                    OnItemDataBound="rgXAxisDetails_ItemDataBound" OnNeedDataSource="rgXAxisDetails_NeedDataSource"
                    OnInsertCommand="rgXAxisDetails_InsertCommand" OnItemCreated="rgXAxisDetails_ItemCreated"
                    OnDeleteCommand="rgXAxisDetails_DeleteCommand" AllowMultiRowEdit="false">
                    <MasterTableView InsertItemDisplay="Bottom" HorizontalAlign="NotSet" EditMode="InPlace"
                        TableLayout="Fixed" CommandItemDisplay="Bottom">
                        <Columns>
                            <telerik:GridTemplateColumn UniqueName="tcColumnName" HeaderText="Column Name">
                                <ItemTemplate>
                                    <asp:Label ID="lblColumnName" runat="server"></asp:Label>
                                </ItemTemplate>
                                <EditItemTemplate>
                                    <telerik:RadComboBox ID="radCmbColumnName" runat="server">
                                    </telerik:RadComboBox>
                                    <asp:RequiredFieldValidator ID="rfvColName" runat="server" ErrorMessage="*" ControlToValidate="radCmbColumnName"
                                        InitialValue="--Select--" Display="Dynamic"></asp:RequiredFieldValidator>
                                    <asp:CustomValidator ID="cvColumnName" runat="server" ErrorMessage="*Duplicate column"
                                        ControlToValidate="radCmbColumnName" OnServerValidate="cvColumnName_ServerValidate"
                                        Display="Dynamic">
                                    </asp:CustomValidator>
                                    <asp:CustomValidator ID="cvColNameInYaxis" runat="server" ErrorMessage="*Column exists in Yaxis data"
                                        ControlToValidate="radCmbColumnName" OnServerValidate="cvColNameInYaxis_ServerValidate"
                                        Display="Dynamic">
                                    </asp:CustomValidator>
                                </EditItemTemplate>
                            </telerik:GridTemplateColumn>
                            <telerik:GridTemplateColumn UniqueName="tcAxis" HeaderText="Axis">
                                <ItemTemplate>
                                    <asp:Label ID="lblAxis" runat="server"></asp:Label>
                                </ItemTemplate>
                                <EditItemTemplate>
                                    <telerik:RadComboBox ID="radCmbAxis" runat="server" OnClientSelectedIndexChanged="OnClientSelectedIndexChangedEventHandler">
                                        <Items>
                                            <telerik:RadComboBoxItem Text="--Select--" Value="--Select--" />
                                            <telerik:RadComboBoxItem Text="Primary Top" Value="Primary Top" />
                                            <telerik:RadComboBoxItem Text="Primary Bottom" Value="Primary Bottom" />
                                            <telerik:RadComboBoxItem Text="Secondary Top" Value="Secondary Top" />
                                            <telerik:RadComboBoxItem Text="Secondary Bottom" Value="Secondary Bottom" />
                                        </Items>
                                    </telerik:RadComboBox>
                                    <asp:RequiredFieldValidator ID="rfvAxis" runat="server" ErrorMessage="*" ControlToValidate="radCmbAxis"
                                        InitialValue="--Select--"></asp:RequiredFieldValidator>
                                </EditItemTemplate>
                            </telerik:GridTemplateColumn>
                            <telerik:GridTemplateColumn UniqueName="tcIsSameAxis" HeaderText="Is Same Axis">
                                <ItemTemplate>
                                    <asp:CheckBox ID="cbIsSameAxisDisplay" runat="server" Enabled="false" />
                                </ItemTemplate>
                                <EditItemTemplate>
                                    <asp:CheckBox ID="cbIsSameAxis" runat="server" />
                                </EditItemTemplate>
                            </telerik:GridTemplateColumn>
                            <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditColumn">
                                <ItemStyle CssClass="MyImageButton" Width="3%" />
                                <HeaderStyle Width="3%" />
                            </telerik:GridEditCommandColumn>
                            <telerik:GridButtonColumn ConfirmText="Delete this entry?" ConfirmDialogType="RadWindow"
                                ConfirmTitle="Attention" ConfirmDialogHeight="100" ConfirmDialogWidth="250" ButtonType="ImageButton"
                                CommandName="Delete" Text="Delete" UniqueName="DeleteColumn">
                                <ItemStyle CssClass="MyImageButton" Width="3%" />
                                <HeaderStyle Width="3%" />
                            </telerik:GridButtonColumn>
                        </Columns>
                        <CommandItemTemplate>
                            <table class="rgXAxisCommandTable">
                                <tr>
                                    <td align="left">
                                        <asp:Button ID="AddNewRecordButton" CommandName="InitInsert" runat="server" CssClass="rgAdd" />
                                        <asp:LinkButton ID="lnkAddNewRow" runat="server" CommandName="InitInsert" Text="Add new record"></asp:LinkButton>
                                    </td>
                                </tr>
                            </table>
                        </CommandItemTemplate>
                        <PagerStyle AlwaysVisible="True" />
                        <HeaderStyle Font-Bold="True" BackColor="#BDBDBD" ForeColor="Black" />
                    </MasterTableView>
                    <SelectedItemStyle BackColor="Blue" />
                </telerik:RadGrid>
            </td>
        </tr>
        <tr>
            <%-- <td>
        </td>--%>
            <td colspan="2">
                <telerik:RadComboBox ID="radCmbXAxisColumn" runat="server" OnSelectedIndexChanged="radCmbXAxisColumn_SelectedIndexChanged"
                    AutoPostBack="True">
                </telerik:RadComboBox
                <asp:HiddenField ID="hdnXAxisColName" runat="server" />
                <asp:HiddenField ID="hdnIsXAxisInEdit" runat="server" />
            </td>
        </tr>
        <tr>
            <td colspan="2">
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <asp:Label ID="lblErrorYAxis" runat="server" ForeColor="red"></asp:Label>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <telerik:RadGrid ID="rgYAxisDetails" runat="server" AutoGenerateColumns="False" Skin="Windows7"
                    GridLines="Both" SelectedItemStyle-BackColor="blue" OnItemDataBound="rgYAxisDetails_ItemDataBound"
                    OnNeedDataSource="rgYAxisDetails_NeedDataSource" OnDeleteCommand="rgYAxisDetails_DeleteCommand"
                    OnInsertCommand="rgYAxisDetails_InsertCommand" OnItemCommand="rgYAxisDetails_ItemCommand"
                    OnUpdateCommand="rgYAxisDetails_UpdateCommand" AllowMultiRowEdit="false">
                    <MasterTableView InsertItemDisplay="Bottom" HorizontalAlign="NotSet" EditMode="InPlace"
                        TableLayout="Fixed" CommandItemDisplay="Bottom">
                        <%--            <RowIndicatorColumn>
                        <HeaderStyle Width="20px" />
                    </RowIndicatorColumn>
                    <ExpandCollapseColumn>
                        <HeaderStyle Width="20px" />
                    </ExpandCollapseColumn>--%>
                        <Columns>
                            <telerik:GridTemplateColumn UniqueName="tcColumnName" HeaderText="Column Name">
                                <ItemTemplate>
                                    <asp:Label ID="lblColumnName" runat="server"></asp:Label>
                                </ItemTemplate>
                                <EditItemTemplate>
                                    <telerik:RadComboBox ID="radCmbColumnName" runat="server">
                                    </telerik:RadComboBox>
                                    <asp:RequiredFieldValidator ID="rfvYColName" runat="server" ErrorMessage="*" ControlToValidate="radCmbColumnName"
                                        InitialValue="--Select--" Display="Dynamic"></asp:RequiredFieldValidator>
                                    <asp:CustomValidator ID="cvYColumnName" runat="server" ErrorMessage="*Duplicate column"
                                        ControlToValidate="radCmbColumnName" OnServerValidate="cvYColumnName_ServerValidate"
                                        Display="Dynamic">
                                    </asp:CustomValidator>
                                    <asp:CustomValidator ID="cvYColNameInXAxis" runat="server" ErrorMessage="*Column exists in Xaxis data"
                                        ControlToValidate="radCmbColumnName" OnServerValidate="cvYColNameInXAxis_ServerValidate"
                                        Display="Dynamic">
                                    </asp:CustomValidator>
                                </EditItemTemplate>
                            </telerik:GridTemplateColumn>
                            <telerik:GridTemplateColumn UniqueName="tcAxis" HeaderText="Axis">
                                <ItemTemplate>
                                    <asp:Label ID="lblAxis" runat="server"></asp:Label>
                                </ItemTemplate>
                                <EditItemTemplate>
                                    <telerik:RadComboBox ID="radCmbAxis" runat="server" OnClientSelectedIndexChanged="OnClientSelectedIndexChangedEventHandler">
                                        <Items>
                                            <telerik:RadComboBoxItem Text="--Select--" Value="--Select--" />
                                            <telerik:RadComboBoxItem Text="Primary Left" Value="Primary Left" />
                                            <telerik:RadComboBoxItem Text="Primary Right" Value="Primary Right" />
                                            <telerik:RadComboBoxItem Text="Secondary Left" Value="Secondary Left" />
                                            <telerik:RadComboBoxItem Text="Secondary Right" Value="Secondary Right" />
                                        </Items>
                                    </telerik:RadComboBox>
                                    <asp:RequiredFieldValidator ID="rfvYAxis" runat="server" ErrorMessage="*" ControlToValidate="radCmbAxis"
                                        InitialValue="--Select--"></asp:RequiredFieldValidator>
                                </EditItemTemplate>
                            </telerik:GridTemplateColumn>
                            <telerik:GridTemplateColumn UniqueName="tcPlottingType" HeaderText="Plotting Type">
                                <ItemTemplate>
                                    <asp:Label ID="lblPlottingType" runat="server"></asp:Label>
                                </ItemTemplate>
                                <EditItemTemplate>
                                    <telerik:RadComboBox ID="radCmbPlottingType" runat="server">
                                        <Items>
                                            <telerik:RadComboBoxItem Text="--Select--" Value="--Select--" />
                                            <telerik:RadComboBoxItem Text="Line" Value="Line" />
                                            <telerik:RadComboBoxItem Text="Area" Value="Area" />
                                            <telerik:RadComboBoxItem Text="Marker" Value="Circle" />
                                        </Items>
                                    </telerik:RadComboBox>
                                    <asp:RequiredFieldValidator ID="rfvYPlottingType" runat="server" ErrorMessage="*"
                                        ControlToValidate="radCmbPlottingType" InitialValue="--Select--"></asp:RequiredFieldValidator>
                                </EditItemTemplate>
                            </telerik:GridTemplateColumn>
                            <telerik:GridTemplateColumn UniqueName="tcPlottingColor" HeaderText="Plotting Color">
                                <ItemTemplate>
                                    <asp:Label ID="lblPlottingColor" runat="server"></asp:Label>
                                </ItemTemplate>
                                <EditItemTemplate>
                                    <telerik:RadComboBox ID="radCmbCPlottingColor" runat="server">
                                    </telerik:RadComboBox>
                                    <asp:RequiredFieldValidator ID="rfvYPlottingColor" runat="server" ErrorMessage="*"
                                        ControlToValidate="radCmbCPlottingColor" InitialValue="--Select--"></asp:RequiredFieldValidator>
                                </EditItemTemplate>
                            </telerik:GridTemplateColumn>
                            <telerik:GridTemplateColumn UniqueName="tcIsSameAxis" HeaderText="Is Same Axis">
                                <ItemTemplate>
                                    <asp:CheckBox ID="cbIsSameAxisDisplay" runat="server" Enabled="false" />
                                </ItemTemplate>
                                <EditItemTemplate>
                                    <asp:CheckBox ID="cbIsSameAxis" runat="server" />
                                </EditItemTemplate>
                            </telerik:GridTemplateColumn>
                            <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditColumn">
                                <ItemStyle CssClass="MyImageButton" Width="3%" />
                                <HeaderStyle Width="3%" />
                            </telerik:GridEditCommandColumn>
                            <telerik:GridButtonColumn ConfirmText="Delete this entry?" ConfirmDialogType="RadWindow"
                                ConfirmTitle="Attention" ConfirmDialogHeight="100" ConfirmDialogWidth="250" ButtonType="ImageButton"
                                CommandName="Delete" Text="Delete" UniqueName="DeleteColumn">
                                <ItemStyle CssClass="MyImageButton" Width="3%" />
                                <HeaderStyle Width="3%" />
                            </telerik:GridButtonColumn>
                        </Columns>
                        <CommandItemTemplate>
                            <table class="rgYAxisCommandTable">
                                <tr>
                                    <td align="left">
                                        <asp:Button ID="AddNewRecordButton" CommandName="InitInsert" runat="server" CssClass="rgAdd" />
                                        <asp:LinkButton ID="lnkAddNewRow" runat="server" CommandName="InitInsert" Text="Add new record"></asp:LinkButton>
                                    </td>
                                </tr>
                            </table>
                        </CommandItemTemplate>
                        <PagerStyle AlwaysVisible="True" />
                        <HeaderStyle Font-Bold="True" BackColor="#BDBDBD" ForeColor="Black" />
                    </MasterTableView>
                    <SelectedItemStyle BackColor="Blue" />
                </telerik:RadGrid></td>
        </tr>
        <tr>
            <td align="center" colspan="2">
                <br />
                <asp:Button ID="btnSave" runat="server" Text="Save"  OnClick="btnSave_Click" />
                <asp:Button ID="btnCancel" runat="server" Text="Cancel" />
            </td>
        </tr>
    </table>
    <telerik:RadWindowManager ID="RadWindowManager1" runat="server">
    </telerik:RadWindowManager>
</div>

Following are the settings for the ajax manager in my usercontrol.ascx.cs
objRadAJAXManager = RadAjaxManager.GetCurrent(Page);
                objRadAJAXManager.ClientEvents.OnRequestStart = "onRequestStart";
  
                //X Axis grid
                objRadAJAXManager.AjaxSettings.AddAjaxSetting(rgXAxisDetails, rgXAxisDetails, RadAjaxLoadingPanel1);
                objRadAJAXManager.AjaxSettings.AddAjaxSetting(rgXAxisDetails, RadWindowManager1, RadAjaxLoadingPanel1);
                objRadAJAXManager.AjaxSettings.AddAjaxSetting(rgXAxisDetails, lblErrorXAxis);
                objRadAJAXManager.AjaxSettings.AddAjaxSetting(rgXAxisDetails, lblErrorYAxis);
                objRadAJAXManager.AjaxSettings.AddAjaxSetting(rgXAxisDetails, radCmbXAxisColumn);
                objRadAJAXManager.AjaxSettings.AddAjaxSetting(rgXAxisDetails, hdnXAxisColName);
                objRadAJAXManager.AjaxSettings.AddAjaxSetting(rgXAxisDetails, rgYAxisDetails);
  
                //Y axis grid
                objRadAJAXManager.AjaxSettings.AddAjaxSetting(rgYAxisDetails, rgYAxisDetails, RadAjaxLoadingPanel1);
                objRadAJAXManager.AjaxSettings.AddAjaxSetting(rgYAxisDetails, RadWindowManager1, RadAjaxLoadingPanel1);
                objRadAJAXManager.AjaxSettings.AddAjaxSetting(rgYAxisDetails, lblErrorYAxis);
                objRadAJAXManager.AjaxSettings.AddAjaxSetting(rgYAxisDetails, lblErrorXAxis);
                objRadAJAXManager.AjaxSettings.AddAjaxSetting(rgYAxisDetails, rgXAxisDetails);
  
                // X axis column drop down
                objRadAJAXManager.AjaxSettings.AddAjaxSetting(radCmbXAxisColumn, radCmbXAxisColumn, RadAjaxLoadingPanel1);
                objRadAJAXManager.AjaxSettings.AddAjaxSetting(radCmbXAxisColumn, RadWindowManager1, RadAjaxLoadingPanel1);
                objRadAJAXManager.AjaxSettings.AddAjaxSetting(radCmbXAxisColumn, hdnXAxisColName);
                objRadAJAXManager.AjaxSettings.AddAjaxSetting(radCmbXAxisColumn, rgYAxisDetails);

Thanks in advance

Satbir
Viktor Tachev
Telerik team
 answered on 13 Jun 2013
3 answers
110 views

Hi,

I am not able to trigger the "OnClientNodeDropping"  event when a parent node is dropped onto a child node. This is required in order to execute some custom code for cloning the parent node and adding it as a child. In the attached example, I have had to use a customised picker tool to add the parent node "Everyone" to its child "My Team". This is fine for a example, but not a practical solution.

I have tried using the method described in the below link to get the target node that the parent is dropped onto. However this will not give me the target node attributes only the html element of the node.
http://www.telerik.com/community/forums/aspnet-ajax/treeview/dropping-a-node-on-itself-doesn-t-fire-events.aspx

Am I missing an attribute in the Telerik control ? (I have both EnableDragAndDrop and EnableDragAndDropBetweenNodes set to true), or is there something else I should be doing?

Thanks
Justin

Boyan Dimitrov
Telerik team
 answered on 13 Jun 2013
1 answer
99 views
Recently we have upgraded our Telerik Web dll's i.e. Telerik.Web.Design.dll,Telerik.Web.UI.dll,Telerik.Web.UI.Skins.dll from 2011.3.1115.40 version to newer version 2013.1.410.40. in our development environment it is working fine.
But when these dlls were replaced in QA Environment the css and images were missing for some time and later they got updated automatically and everything was working fine as if there is no issue.

This is a typical scenario because we tried to delete the temporary files, browser cookies and all that can be done but still the issue was existing but later when we checked everything went well. This happened in QA but we don't want this to be repeated in Production Environment for that we need a best posssible solution so that we know what needs to be done beforehand this issue does not repeat.

Awaiting for the quick response on this.

Thanks

O'Man
Top achievements
Rank 1
 answered on 13 Jun 2013
0 answers
30 views
This is a duplicate post of this one. I don't know how it happened...
Please delete.
Mauro
Top achievements
Rank 1
 asked on 13 Jun 2013
3 answers
574 views
I have two grid with same number and type of columns. The number of rows are also same.
Only difference is the content of the grids.
Basically I want to show the difference in two grids for each column.
I want to show first column from both the grids, then second column from both the grids and so on.
How I can achieve this?
Princy
Top achievements
Rank 2
 answered on 13 Jun 2013
3 answers
300 views
Is it possible to export a RadGrid to Excel so that it's page orientation is Landscape and that it's print setting is also Landscape?
Kostadin
Telerik team
 answered on 13 Jun 2013
1 answer
81 views
I want to drag and drop from a RadListBox To another RadListBox in a table ?

and persist this server side but it not works :

My .cs :

protected void Page_Load(object sender, EventArgs e)
        {
            // Total number of rows.
            int rowCnt = 4;
            // Current row count.
            int rowCtr;
            // Total number of cells per row (columns).
            int cellCtr;
            // Current cell counter
            int cellCnt = 7;

           // rowCnt = int.Parse(TextBox1.Text);
           // cellCnt = int.Parse(TextBox2.Text);

            for (rowCtr = 1; rowCtr <= rowCnt; rowCtr++)
            {
                // Create new row and add it to the table.

                HtmlTableRow tRow = new HtmlTableRow();
                Table1.Rows.Add(tRow);
                for (cellCtr = 1; cellCtr <= cellCnt; cellCtr++)
                {
                    // Create a new cell and add it to the row.
                    HtmlTableCell tCell = new HtmlTableCell();
                   // tCell.Text = "Row " + rowCtr + ", Cell " + cellCtr;
                    RadListBox rr = new RadListBox();
                    rr.ItemTemplate = new RadListBoxTemplate();
                    rr.SelectionMode = ListBoxSelectionMode.Multiple;
                    rr.AllowReorder =true;
                    rr.AutoPostBackOnReorder =true;
                    rr.EnableDragAndDrop =true;
                   
                    List<int> i = new List<int>();
                    i.Add(1);
                    i.Add(2);
                    i.Add(3);
                    rr.DataSource = i;
                    rr.DataBind();
                    tCell.Controls.Add(rr);
                    tRow.Cells.Add((tCell));
                }
            }
        }
        ////
        class RadListBoxTemplate : ITemplate
        {
            public void InstantiateIn(Control container)
            {
                Label id = new Label();
                id.ID = "idLabel";
                id.CssClass = "idClass";
                id.DataBinding += new EventHandler(id_DataBinding);
                container.Controls.Add(id);
                Label name = new Label();
                name.ID = "nameLabel";
                name.CssClass = "list";
                name.DataBinding += new EventHandler(name_DataBinding);
                container.Controls.Add(name);
                HyperLink details = new HyperLink();
                details.ID = "details";
                details.CssClass = "list";
                details.Text = "Details";
                details.DataBinding += new EventHandler(details_DataBinding);
                container.Controls.Add(details);
            }
            private void id_DataBinding(object sender, EventArgs e)
            {
                //Label target = (Label)sender;
                //RadListBoxItem item = (RadListBoxItem)target.BindingContainer;
                //string id = Convert.ToString((int)DataBinder.Eval(item.DataItem, "ID"));
                //target.Text = id;
            }
            private void name_DataBinding(object sender, EventArgs e)
            {
                //Label target = (Label)sender;
                //RadListBoxItem item = (RadListBoxItem)target.BindingContainer;
                //string name = (string)DataBinder.Eval(item.DataItem, "Name");
                //target.Text = name;
            }
            private void details_DataBinding(object sender, EventArgs e)
            {
                //HyperLink target = (HyperLink)sender;
                //RadListBoxItem item = (RadListBoxItem)target.BindingContainer;
                //string id = Convert.ToString((int)DataBinder.Eval(item.DataItem, "ID"));
                //target.NavigateUrl = "Details.aspx?ID=" + id;
            }
        }
My .aspx like this :

  <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
    <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" CssClass="example-panel">
        <telerik:RadListBox ID="RadListBox1" CssClass="RadListBox1" runat="server" Width="200px"
            Height="200px" SelectionMode="Multiple" AllowTransfer="true" AutoPostBackOnTransfer="true"
            AllowReorder="true" AutoPostBackOnReorder="true" EnableDragAndDrop="true" Skin="Office2010Blue"
            OnDropped="RadListBox1_Dropped" OnDropping="RadListBox1_Dropping" OnTransferring="RadListBox1_Transferring">
            <Items>
                <telerik:RadListBoxItem Text="Argentina"></telerik:RadListBoxItem>
                <telerik:RadListBoxItem Text="Australia"></telerik:RadListBoxItem>
                <telerik:RadListBoxItem Text="Brazil"></telerik:RadListBoxItem>
                <telerik:RadListBoxItem Text="Canada"></telerik:RadListBoxItem>
                <telerik:RadListBoxItem Text="Chile"></telerik:RadListBoxItem>
                <telerik:RadListBoxItem Text="China"></telerik:RadListBoxItem>
                <telerik:RadListBoxItem Text="Egypt"></telerik:RadListBoxItem>
                <telerik:RadListBoxItem Text="England"></telerik:RadListBoxItem>
                <telerik:RadListBoxItem Text="France"></telerik:RadListBoxItem>
                <telerik:RadListBoxItem Text="Germany"></telerik:RadListBoxItem>
                <telerik:RadListBoxItem Text="India"></telerik:RadListBoxItem>
                <telerik:RadListBoxItem Text="Indonesia"></telerik:RadListBoxItem>
                <telerik:RadListBoxItem Text="Kenya"></telerik:RadListBoxItem>
                <telerik:RadListBoxItem Text="Mexico"></telerik:RadListBoxItem>
                <telerik:RadListBoxItem Text="New Zealand"></telerik:RadListBoxItem>
                <telerik:RadListBoxItem Text="South Africa"></telerik:RadListBoxItem>
            </Items>
        </telerik:RadListBox>
        <table id="Table1" runat="server" rules="Both">
        </table>
    </telerik:RadAjaxPanel>
Nencho
Telerik team
 answered on 13 Jun 2013
1 answer
80 views
I am having a big problem here. I have a class lib and a user control in there but I can not use the telerik intellisense the .ascx file. I did everything here http://www.telerik.com/community/forums/aspnet-mvc/general/cannot-use-telerik-intellisense-in-razor-views-when-these-views-are-in-class-library.aspx but this is not working. I have asp:.. intellisense but no intellisense for the telerik dll. Plese help me with this because It is a real stopper for me. Here is my web config file that I am placing in the class lib root and in the folder where is my user control. I also added the Telerik.Web.UI.dll to the GAC

<?xml version="1.0"?>
<configuration>
  <system.web>
    <compilation>
      <assemblies>
        <add assembly="Telerik.Web.UI, Version=2012.3.1308.40, Culture=neutral, PublicKeyToken=121fae78165ba3d4"/>
      </assemblies>
    </compilation>
    <pages>
      <controls>
        <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
        <add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
        <add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI, Version=2012.3.1308.40, Culture=neutral, PublicKeyToken=121fae78165ba3d4"/>
      </controls>
      <namespaces>
        <add namespace="Telerik.Web.UI" />
      </namespaces>
    </pages>
  </system.web>
</configuration>

Please give me the exact steps that I should do.
ivan
Top achievements
Rank 1
 answered on 13 Jun 2013
2 answers
54 views
Hello,

I have the following RadGrid with a RadEditor embedded in it.  Everything works as expected, except when I change the color of the text in a RadEditor row, I am not able to add another row.  I don' receive any errors and I am able to  step through the btnAddInstruction_Click and grdInstructions_ItemDataBound events without any issues.  It just will not render another row.



btnAddInstruction_Click Code:
public static void AddInstructionGridRow(RadGrid gridName)
            {
                bool instructionIsNull = false;
                ProjectInstruction projectInstruction;
                List<ProjectInstruction> projectInstructions = new List<ProjectInstruction>();
                RadEditor txtInstruction;

                //  Iterate through the grid rows and retain all previously entered data.
                foreach (GridDataItem gridRow in gridName.Items)
                {
                    //  Create new Project Instruction object.
                    projectInstruction = new ProjectInstruction();

                    // Project ID (Hidden)
                    HiddenField hdnProjectID = gridRow.FindControl("hdnProjectID") as HiddenField;
                    if (hdnProjectID != null)
                    {
                        projectInstruction.ProjectID = Convert.ToInt32(hdnProjectID.Value);
                    }
                    else
                    {
                        projectInstruction.ProjectID = 0;
                    }

                    // Project Instruction ID (Hidden)
                    HiddenField hdnProjectInstructionID = gridRow.FindControl("hdnProjectInstructionID") as HiddenField;
                    if (hdnProjectInstructionID != null)
                    {
                        projectInstruction.ID = Convert.ToInt32(hdnProjectInstructionID.Value);
                    }
                    else
                    {
                        projectInstruction.ID = 0;
                    }

                    //  Project Instruction
                    txtInstruction = gridRow.FindControl("txtInstruction") as RadEditor;
                    if (txtInstruction.Content.Trim().Length == 0)
                    {
                        instructionIsNull = true;
                    }
                    projectInstruction.Instruction = txtInstruction.Content;

                    //  Add Project Instruction to Project Instructions object.
                    projectInstructions.Add(projectInstruction);
                }

                //  Create new Project Instruction object.
                if (!instructionIsNull)
                {
                    projectInstructions.Add(AddProjectInstruction());
                }

                //  Update Project Instructions grid.
                gridName.DataSource = projectInstructions;
                gridName.Rebind();
            }

grdInstructions_ItemDataBound
 protected void grdInstructions_ItemDataBound(object sender, GridItemEventArgs e)
        {
            if (e.Item.ItemType == GridItemType.Item || e.Item.ItemType == GridItemType.AlternatingItem)
            {
                //  Current row object.
                ProjectInstruction projectInstruction = (ProjectInstruction)e.Item.DataItem;
                string referenceNumber = string.Empty;

                //  Row Number
                GridDataItem dataItem = (GridDataItem)e.Item;
                referenceNumber = Convert.ToString(e.Item.ItemIndex + 1);
                dataItem["ReferenceNumber"].Text = referenceNumber;

                //  Project Instruction
                RadEditor txtInstruction = e.Item.FindControl("txtInstruction") as RadEditor;
                txtInstruction.Content = projectInstruction.Instruction;
                //txtInstruction.Languages.Add(new SpellCheckerLanguage("en-US", "English"));

                //  Delete Column               
                GridDataItem item = e.Item as GridDataItem;
                //  Display Delete option when adding new record and if there is more then one row.
                if (grdInstructions.MasterTableView.Items.Count > 0)
                {
                    //  Show Delete column during Add.
                    item["btnDeleteInstructionRow"].Controls[0].Visible = true;
                    item["btnDeleteInstructionRow"].Attributes["onclick"] = "return confirm('Delete Instruction# " +  referenceNumber + "?')";
                }
                else
                {
                    //  Hide Delete option if there is only one row.
                    item["btnDeleteInstructionRow"].Controls[0].Visible = false;
                }
            }
        }

Can you please tell  me what is causing another row not to be rendered when HTML color formatting is applied to the text in a RadEditor row?

Thank Very Much in Advance!
Pavlina
Telerik team
 answered on 13 Jun 2013
1 answer
66 views
In chrome the styles are off on some of the skins

- Silk the close x is not centered in the circle
- metro the callout doesn't look like it belongs, kinda hangs out the top a bit
Bozhidar
Telerik team
 answered on 13 Jun 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?