Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
129 views
Hi,

I have a problem and would appreciate your help.

We are using RadEditor in ToolbarMode="RibbonBar". The tools list is from a file - tools.xml.
However we need also to add two custom (own) dropdowns to an existing tab (tab="Home"), but they should appear in own "section" (name="Links"). As 'section' I mean something like name="Clipboard" in the sample below.
<tools name="Clipboard" tab="Home">
        <tool name="PasteStrip" size="large"/>
        <tool name="Cut" size="medium"/>
        <tool name="Copy" size="medium" shortcut="CTRL+C"/>
        <tool name="Print" size="medium" shortcut="CTRL+P"/>
    </tools>


The custom dropdowns must be populated with data dynamically on Page_Load.

As in the sample on http://demos.telerik.com/aspnet-ajax/editor/examples/customdropdowns/defaultcs.aspx I have code like:

if (!IsPostBack)
{
    //add a new Toolbar dynamically
    EditorToolGroup dynamicToolbar = new EditorToolGroup();               
    txtHTMLContent.Tools.Add(dynamicToolbar);
 
    //add a custom dropdown and set its items and dimension attributes
    EditorDropDown ddn = new EditorDropDown("CustomLinks1");
    ddn.Text = "Links 1";
 
    //Set the popup width and height
    ddn.Attributes["width"] = "90px";
    ddn.Attributes["popupwidth"] = "180px";
    ddn.Attributes["popupheight"] = "260px";
 
    ///Add items
    ddn.Items.Add("a", "a"); // from DataBase
    ddn.Items.Add("b", "b");
 
    //Add tool to toolbar
    dynamicToolbar.Tools.Add(ddn);
 
 
 
    //add a new Toolbar dynamically
    EditorToolGroup dynamicToolbar2 = new EditorToolGroup();               
    txtHTMLContent.Tools.Add(dynamicToolbar2);
 
    //add a custom dropdown and set its items and dimension attributes
    EditorDropDown ddn2 = new EditorDropDown("CustomLinks2");
    ddn2.Text = "Links 2";
 
    //Set the popup width and height
    ddn2.Attributes["width"] = "90px";
    ddn2.Attributes["popupwidth"] = "180px";
    ddn2.Attributes["popupheight"] = "70px";
 
    //Add items
    ddn2.Items.Add("c", "c");  // from DataBase
    ddn2.Items.Add("d", "d");
 
    //Add tool to toolbar
    dynamicToolbar2.Tools.Add(ddn2);
}

But how to addapte it in order to have this custom dropdowns in editor's ribbonbar toolbar ?
Rahul
Top achievements
Rank 1
 answered on 05 Nov 2012
8 answers
235 views
Hi,

 I am using the Q32001 version of the controls and .NET Framework 4.5. Here is my situation. I have a grid and a client side event OnCommand that does some staff for grouping and ungrouping (and only that!). Everything is working as expected. However, when I sort the datain the grid the double sorting icon appers. If I remove the ClientEvent-OnCommand event handler, the problem goes away. In the handler there is no code related to sorting what so ever.

Could you please explain what I have this problem and how to fix it?

Thank  you,

Tatiana
Antonio Stoilkov
Telerik team
 answered on 05 Nov 2012
3 answers
131 views


I have to identical RadGrid's. I created the Radgrid and then placed it in a nested view. The image show up in the first table but not the nested. What am I missing?

FIrst Table:

<telerik:RadGrid ID="RadGrid6" runat="server"
                 DataSourceID="PictureDB" AutoGenerateColumns="False" AllowSorting="True"
                 AllowPaging="True" PageSize="5" GridLines="None"
                 ShowGroupPanel="True" CellSpacing="0" AllowFilteringByColumn="True">
    <ClientSettings>
        <Selecting CellSelectionMode="None"></Selecting>
    </ClientSettings>
 
    <MasterTableView
        DataKeyNames="PictureID"
        DataSourceID="PictureDB" AllowFilteringByColumn="False">
        <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
 
        <RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column">
            <HeaderStyle Width="20px"></HeaderStyle>
        </RowIndicatorColumn>
 
        <ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column">
            <HeaderStyle Width="20px"></HeaderStyle>
        </ExpandCollapseColumn>
 
        <Columns>
            <telerik:GridBoundColumn DataField="PictureID" DataType="System.Int32"
                                     FilterControlAltText="Filter PictureID column"
                                     HeaderText="PictureID" SortExpression="PictureID"
                                     UniqueName="PictureID" ReadOnly="True">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="Extension"
                                     FilterControlAltText="Filter Extension column" HeaderText="Extension"
                                     SortExpression="Extension" UniqueName="Extension">
            </telerik:GridBoundColumn>
            <telerik:GridCheckBoxColumn DataField="IsNew" DataType="System.Boolean"
                                        FilterControlAltText="Filter IsNew column" HeaderText="IsNew"
                                        SortExpression="IsNew" UniqueName="IsNew">
            </telerik:GridCheckBoxColumn>
            <telerik:GridBoundColumn DataField="SKU"
                                     FilterControlAltText="Filter SKU column"
                                     HeaderText="SKU" SortExpression="SKU"
                                     UniqueName="SKU">
            </telerik:GridBoundColumn>
        </Columns>
 
        <Columns>
            <telerik:GridBinaryImageColumn DataField="PictureBinary"></telerik:GridBinaryImageColumn>
        </Columns>
 
        <EditFormSettings>
            <EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>
        </EditFormSettings>
    </MasterTableView>
 
    <FilterMenu EnableImageSprites="False"></FilterMenu>
</telerik:RadGrid>


 Here is the table with nested view:

<telerik:RadGrid ID="RadGrid1"  DataSourceID="DataSourceMP"
                 runat="server" AutoGenerateColumns="False" AllowSorting="True"
                 AllowPaging="True" PageSize="5" GridLines="None"
                 ShowGroupPanel="True" CellSpacing="0" AllowFilteringByColumn="True">
    <PagerStyle Mode="NumericPages"></PagerStyle>
    <MasterTableView DataSourceID="DataSourceMP" AllowMultiColumnSorting="True"
                     GroupLoadMode="Server">
             
        <NestedViewTemplate>
 
            <telerik:RadTabStrip runat="server" ID="TabStip1" MultiPageID="Multipage1" SelectedIndex="0">
                <Tabs>
                    <telerik:RadTab runat="server" Text="Pricing" PageViewID="PageView1">
                    </telerik:RadTab>
                    <telerik:RadTab runat="server" Text="Online Detail" PageViewID="PageView2">
                    </telerik:RadTab>
                    <telerik:RadTab runat="server" Text="Images" PageViewID="PageView3">
                    </telerik:RadTab>
                </Tabs>
            </telerik:RadTabStrip>
 
            <telerik:RadMultiPage runat="server" ID="Multipage1" SelectedIndex="0" RenderSelectedPageOnly="false">
                <telerik:RadPageView runat="server" ID="PageView1">
                            
                    <%--this an a master table--%>
 
 
                    <%--this an a master table End--%>
 
                </telerik:RadPageView>
                <telerik:RadPageView runat="server" ID="PageView2" Width="460px">
                     
                    <%--this an a master table--%>
 
 
 
                    <%--this an a master table End--%>
 
 
                </telerik:RadPageView>
                <telerik:RadPageView runat="server" ID="PageView3">
 
 
                    <%--this an a master table--%>
                    <asp:Label ID="Label3" Font-Bold="true" Font-Italic="true" Text='<%# Eval("Item_Number") %>'
                               Visible="false" runat="server"></asp:Label>
 
 
                    <telerik:RadGrid ID="RadGrid5" runat="server"
                                     DataSourceID="PictureDB" AutoGenerateColumns="False" AllowSorting="True"
                                     AllowPaging="True" PageSize="5" GridLines="None"
                                     ShowGroupPanel="True" CellSpacing="0" AllowFilteringByColumn="True">
                        <ClientSettings>
                            <Selecting CellSelectionMode="None"></Selecting>
                        </ClientSettings>
 
                        <MasterTableView
                          DataKeyNames="PictureID"
                            DataSourceID="PictureDB" AllowFilteringByColumn="False">
                            <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
                     
                            <RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column">
                                <HeaderStyle Width="20px"></HeaderStyle>
                            </RowIndicatorColumn>
                     
                            <ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column">
                                <HeaderStyle Width="20px"></HeaderStyle>
                            </ExpandCollapseColumn>
                     
                            <Columns>
                                <telerik:GridBoundColumn DataField="PictureID" DataType="System.Int32"
                                                         FilterControlAltText="Filter PictureID column"
                                                         HeaderText="PictureID" SortExpression="PictureID"
                                                         UniqueName="PictureID" ReadOnly="True">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="Extension"
                                                         FilterControlAltText="Filter Extension column" HeaderText="Extension"
                                                         SortExpression="Extension" UniqueName="Extension">
                                </telerik:GridBoundColumn>
                                <telerik:GridCheckBoxColumn DataField="IsNew" DataType="System.Boolean"
                                                            FilterControlAltText="Filter IsNew column" HeaderText="IsNew"
                                                            SortExpression="IsNew" UniqueName="IsNew">
                                </telerik:GridCheckBoxColumn>
                                <telerik:GridBoundColumn DataField="SKU"
                                                         FilterControlAltText="Filter SKU column"
                                                         HeaderText="SKU" SortExpression="SKU"
                                                         UniqueName="SKU">
                                </telerik:GridBoundColumn>
                            </Columns>
                     
                            <Columns>
                                <telerik:GridBinaryImageColumn DataField="PictureBinary"></telerik:GridBinaryImageColumn>
                            </Columns>
                   
                          <EditFormSettings>
                              <EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>
                          </EditFormSettings>
                      </MasterTableView>
 
                        <FilterMenu EnableImageSprites="False"></FilterMenu>
                    </telerik:RadGrid>
                     
 
                    <%--this an a master table End--%>
 
                </telerik:RadPageView>
            </telerik:RadMultiPage>
 
        </NestedViewTemplate>
 
        <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
 
        <RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column"></RowIndicatorColumn>
 
        <ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column"></ExpandCollapseColumn>
 
 
    </MasterTableView>
    <ClientSettings AllowDragToGroup="false">
        <Selecting CellSelectionMode="None"></Selecting>
    </ClientSettings>
 
    <FilterMenu EnableImageSprites="False"></FilterMenu>
</telerik:RadGrid>

Radoslav
Telerik team
 answered on 05 Nov 2012
5 answers
266 views

Hi:
My radgrid have a text column with values 1/2, LARGE, MEDIUM..etc
When I export the grid to excel or csv the value LARGE, MEDIUM show up fine..
BUT
1/2 values are exported as 2-Jan and if you click in the actual cell the value showed is 1/1/2012
I try setting the column to datatype to System.String, but same results.

Jose

 

 

 

 

 

 

 

Kostadin
Telerik team
 answered on 05 Nov 2012
1 answer
77 views
Hi,

I have a radgrid, command settings of grid are :

<

 

 

CommandItemSettings AddNewRecordText="Add New Quote Item" />
When I click on Add New Quote Item it inserts a row in grid, now I want to save the previous insert item, if click Add New Quote Item again. i.e. click Add. inserts a row in grid, type in text for each columns and then when I click Add agian it should save my previouly inserted row and then insert a new row in grid.

Or Grid should allow me to add multiple rows without saving them.

Please suggest.

Thanks,
Aditi

 

Angel Petrov
Telerik team
 answered on 05 Nov 2012
1 answer
47 views
Hello,

I have what appears to be a simple issue but cannot figure out what I need to do to resolve it.  Currently I have a RadSiteMap in the center of a DIV element, however once security trimming is enabled and some columns are removed the RadSiteMap remains aligned to the left of the DIV although I am applying text-alignment: center to the containing DIV.

What do I need to override for this to work correctly as it just doesn't look right when columns are removed and the sitemap control is not centered?

Thanks,
Ron
Kate
Telerik team
 answered on 05 Nov 2012
3 answers
179 views

Hello Telerik Team,

I have one problem with Rad AJAX.

In my application I am using Master Page. And there is a label to print the name of the member selected.

Now, member is selected from a User control on each page having the above master pages. So accoriding to the member selected from the User Control,
the label Text at the top of Master page should be changed. But it is not happening.

Can you tell me what could be the problem??

The sceneraio is like this

<MASTER [Member Name]>
         <ASPX PAGE>
              <USER CONTROL>
                   <Member Name>
              </ USER CONTROL>
         </ ASPX PAGE>
</ MASTER>

So when the Member name changes in user control, the Member name (ie Label) should also change. This is done when the whole page is refreshed, but as I am using AJAX in my ASPX page, the page is not getting refreshed.

How can I solve this?

Pavlina
Telerik team
 answered on 05 Nov 2012
2 answers
61 views
dear sirs,

I am new to telerik, and I am trying out your controls. I have enabled filters in my grid but I would like to add a button to clear all the filters. Is this possible and how can it be done?

Thanks
Thomas
Thomas
Top achievements
Rank 1
 answered on 05 Nov 2012
1 answer
100 views
Is there any simple menu control with css like attached image which has already been used in telerik site itself. Please check the attached image that I would like to do the same.
Kate
Telerik team
 answered on 05 Nov 2012
1 answer
56 views
Hi, 

I have a RadScheduler with property AllowDelete=False. It works in all desktop browers, even with safari. But when I try it on an Ipad, the delete button appears when I select an appointment, and if I click on it, it ask me if I want to delete the appointment. It look likes a touch event problem. 

thanks Tom
Dimitar Terziev
Telerik team
 answered on 05 Nov 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?