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

Telerik RadEdition Image viwer Not Working.
Please check below mention code

 <telerik:RadEditor runat="server" ID="RadEditor1" SkinID="DefaultSetOfTools" Height="300" Width="90%">
                                               <ImageManager ViewPaths="~\My Documents\My Music" 
                                                    UploadPaths="~\My Documents\My Music"
                                                    DeletePaths="~\My Documents\My Music">
                                                </IImageManager
                                            </telerik:RadEditor>

we have a licensed version of Telerik. Please let me know ASAP

I am attaching screen shot as well
Svetlina Anati
Telerik team
 answered on 02 Mar 2011
3 answers
61 views
We have a grid and for each row, we need a RadMenu that will contain multiple action that can be performed on the row item.  Our current implementation of the menu within the grid, the z-order is messing with us. The menu items are hidden under the grid.
Thanks
Nikolay Rusev
Telerik team
 answered on 02 Mar 2011
2 answers
100 views
AMIRIGHT?

I mean shouldnt I be able to change axis, legend, plotarea, etc properties interactively on the chart control itself?  why cant i selct the legend on a chart and see the properties in the IDEs Properties window like other .net controls?  why do I have to use the wizard?  It rewrites my markup anyway when I use it, i try to avoid it.

Is this on the plate for the Devs? 

Please Please redo the chart interface

Giuseppe
Telerik team
 answered on 02 Mar 2011
1 answer
138 views
I'd like to copy and paste from MS word to RadEditor. but I found the bold tag were stripped out. Is there any way I can fix this issue.

Thanks for your help
Rumen
Telerik team
 answered on 02 Mar 2011
8 answers
183 views
I have a radgrid that displays selfhierarchical records.  When I have the following set:

AllowPaging="False" 
AllowCustomPaging="False" 
EnableLinqExpressions="True" 
 
-OR- 
 
AllowPaging="False" 
AllowCustomPaging="True" 
EnableLinqExpressions="True" 

The hierarchy (regardless of how many levels) is displayed correctly and everything works as expected.  However, if I turn paging on as using AllowPaging="True", things start to fall apart in that the grid will display two levels of hierarcy for SOME records (when there should be three) and NONE for others (when there should be ONE).  In addition, if I have the detail records expanded for all visible parent nodes, some of the detail records aren't displayed until I change the number of results for that page (e.g., from 10 to 20) even though there are only five detail records (when it's set to 10, two are displayed, when I change it to 20, all five are displayed).  (This is being changed via the pager control and not via the PageSize setting.)

Here is the code for the radgrid.  The datasource is set when the user loads the page and is dynamic.  It is not set at markup time.

    <telerik:RadGrid  
        ID="grdNotes"  
        runat="server"  
        OnColumnCreated="grdNotes_ColumnCreated" 
        OnItemCreated="grdNotes_ItemCreated"  
        OnItemDataBound="grdNotes_ItemDataBound" 
        OnNeedDataSource="grdNotes_NeedDataSource" 
        AutoGenerateColumns="False" 
        AllowPaging="True"  
        AllowCustomPaging="True"  
        ShowStatusBar="True"  
        EnableLinqExpressions="True" PageSize="10"
        > 
         
        <HeaderContextMenu  
            EnableTheming="True"
            <CollapseAnimation  
                Type="OutQuint"  
                Duration="200"
            </CollapseAnimation> 
        </HeaderContextMenu> 
         
        <ClientSettings > 
            <Selecting AllowRowSelect="True" /> 
            <ClientEvents  
                OnRowCreated="RowCreated"  
                OnRowSelected="RowSelected"  
                OnRowDblClick="grdNotes_OnRowDblClick"
            </ClientEvents> 
        </ClientSettings> 
         
        <PagerStyle  
            HorizontalAlign="Center"  
            Position="Bottom" 
            AlwaysVisible="True" 
            Mode="NextPrevAndNumeric" 
            Wrap="False" 
            BackColor="White"  
            Font-Size="Large" 
        />          
                 
        <MasterTableView  
            HierarchyDefaultExpanded="true"  
            HierarchyLoadMode="Client"  
            AllowSorting="true" 
            DataKeyNames="Id,ParentId"  
            ClientDataKeyNames="Id,ParentId" 
            Width="100%" 
            AutoGenerateColumns="false" 
            ShowHeader="true" 
            NoDetailRecordsText=""  
            enablenorecordstemplate="False" 
            > 
 
            <SelfHierarchySettings  
                ParentKeyName="ParentId"  
                KeyName="Id"  
                MaximumDepth="20" /> 
                                 
            <RowIndicatorColumn> 
                <HeaderStyle Width="20px"></HeaderStyle> 
            </RowIndicatorColumn> 
 
            <ExpandCollapseColumn visible="True"
                <HeaderStyle Width="20px"></HeaderStyle> 
            </ExpandCollapseColumn> 
                 
            <Columns> 
                <telerik:GridBoundColumn DataField="Id" HeaderText="Id" SortExpression="Id" UniqueName="Id" ReadOnly="True"
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="Title" HeaderText="Title" SortExpression="Title" UniqueName="Title"
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="Body" HeaderText="Body" SortExpression="Body" UniqueName="Body"
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="CreatedBy" HeaderText="Created By" SortExpression="CreatedBy" UniqueName="CreatedBy"
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="CreatedDate" HeaderText="Created On" SortExpression="CreatedDate" UniqueName="CreatedOn"
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="ModifiedDate" HeaderText="Modified On" SortExpression="ModifiedDate" UniqueName="ModifiedOn"
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="ParentId" HeaderText="Parent Id" SortExpression="ParentId" UniqueName="ParentId" visible="false"
                </telerik:GridBoundColumn> 
            </Columns>                 
        </MasterTableView> 
 
        <FilterMenu EnableTheming="True"
            <CollapseAnimation  
                Type="OutQuint"  
                Duration="200"
            </CollapseAnimation> 
        </FilterMenu> 
    </telerik:RadGrid>  

Here's the code behind refreshing the datasource:

protected void grdNotes_NeedDataSource(object source, GridNeedDataSourceEventArgs e) 
            RefreshGridDataSource(); 
 
private void RefreshGridDataSource() 
            NoteDataProvider noteDataProvider = new NoteDataProvider(WebServicesUri, TicketIdentity.Current.Ticket); 
 
            List<DisplayNote> displayNotes = noteDataProvider.GetAll(ObjectId); 
 
            grdNotes.DataSource = displayNotes; 
            grdNotes.VirtualItemCount = displayNotes.Count; 
 

Here's the kicker...when I set PageSize=50 (from the default of 10), all records (there are 24 that I'm working with) appear to show up correctly -- on the all three levels that I'm expecting.  When I set PageSize=20 and then run it, I get the same issues as when I set it to 10, only less so. 

With that in mind, I believe there's an issue with paging and hierarchy when the number of TOTAL records in the datasource exceeds the PageSize, regardless of where they are in the hierarchy level.

Is this a known issue or is there something I'm missing that's causing me to experience this wackiness?  We are using the latest release (2009 Q1) FWIW.
Tsvetoslav
Telerik team
 answered on 02 Mar 2011
4 answers
160 views
I am using the RADGrid with a self-referencing hierarchy. The markup for this is (columns omitted):

    <telerik:RadGrid ID="RadGrid1" runat="server" PageSize="50" AutoGenerateColumns="False" GridLines="None" Skin="Vista" ShowHeader="true" CommandItemStyle-Height="30px" Width="100%" HorizontalAlign="Center" AllowPaging="true" OnNeedDataSource="RadGrid1_NeedDataSource" OnItemCreated="RadGrid1_ItemCreated"
        <MasterTableView HierarchyDefaultExpanded="false" HierarchyLoadMode="Client" EnableNoRecordsTemplate="true" DataKeyNames="NETT_IS_ID,NETT_ID" Width="100%"
            <SelfHierarchySettings KeyName="ID" ParentKeyName="IS_ID" />             
            <Columns>                 
 
            </Columns> 
            <EditFormSettings> 
                <PopUpSettings ScrollBars="None"></PopUpSettings> 
            </EditFormSettings> 
            <PagerTemplate> 
                    <table border="0" cellpadding="0" cellspacing="0" style="height: 20px" align="center"
                        <tr> 
                            <td width="100px"
                                <asp:LinkButton ID="LinkButton1" CommandName="Page" CausesValidation="false" CommandArgument="First" runat="server" style="text-decoration: none;"><img src="_assets/images/first.gif" alt="" style="vertical-align:middle; border: none; "/> <span class="pager">First</span></asp:LinkButton> 
                            </td> 
                            <td width="100px"
                                <asp:LinkButton ID="LinkButton5" CommandName="Page" CausesValidation="false" CommandArgument="Prev" runat="server" style="text-decoration: none;"><img src="_assets/images/arrow.gif" alt="" style="vertical-align:middle; border: none;" /> <span class="pager">Prev</span></asp:LinkButton> 
                            </td> 
                            <td align="center" width="100px"
                                <asp:LinkButton ID="LinkButton6" CommandName="RebindGrid" CausesValidation="false" runat="server" style="text-decoration: none;"><img src="_assets/images/refresh.gif" alt="" style="margin-right: 2px; vertical-align: middle; border: none;" /> <span class="pager">Refresh</span></asp:LinkButton> 
                            </td>                             
                            <td align="right" width="100px"
                                <asp:LinkButton ID="LinkButton3" CommandName="Page" CausesValidation="false" CommandArgument="Next" runat="server" style="text-decoration: none;"><span class="pager">Next</span> <img src="_assets/images/arrowRight.gif" style="vertical-align:middle; border: none;" alt="" /></asp:LinkButton> 
                            </td> 
                            <td align="right" width="100px"
                                <asp:LinkButton ID="LinkButton2" CommandName="Page" CausesValidation="false" CommandArgument="Last" runat="server" style="text-decoration: none;"><span class="pager">Last</span> <img src="_assets/images/last.gif" style="vertical-align:middle; border: none;" alt="" /></asp:LinkButton> 
                            </td> 
                        </tr> 
                        <tr> 
                            <td colspan="5" align="center"
                                Page <%# (int)DataBinder.Eval(Container, "Paging.CurrentPageIndex") + 1 %> of <%# DataBinder.Eval(Container, "Paging.PageCount")%>, items from <%# (int)DataBinder.Eval(Container, "Paging.FirstIndexInPage") + 1 %> to <%# (int)DataBinder.Eval(Container, "Paging.LastIndexInPage") + 1 %> of <%# DataBinder.Eval(Container, "Paging.DataSourceCount")%>
                            </td> 
                        </tr> 
                    </table> 
                </PagerTemplate> 
        </MasterTableView> 
        <PagerStyle Mode="Advanced" /> 
    </telerik:RadGrid> 

The total record count in the database is 150. If I set the page size to 50, when I get to the third page the child records don't show (nor do the arrows indicating child records are present), however pages 1 and 2 worked fine. If I change the page size to 100 or higher the records with issues originally on page 3+ work flawlessly, but then I get the annoying "This script is taking a long time to run, do you wish to cancel?" error message from IE. It is only when the records get to the third page or more that their correlating child entries stop displaying.

The grid is being bound in the code-behind (Oracle is the provider) using the NeedDataSource event handler. Whenever that event is fired the grid's data source is set to a data table containing the entries (which is retrieved every time that event fires - all records returned according to the stored procedure).

Any thoughts on why pages 3+ would break, but 1 or 2 function fine no matter the page count?
Tsvetoslav
Telerik team
 answered on 02 Mar 2011
1 answer
166 views
Hi,

I have Tree View with three parent node. I wanted to use parent node just as title for those Child Nodes. User can't select it or no operation should happen when they select it.

In my application On select of node we need to update panel and grid is loading based on selected tree view node value. But when user select parent node i don't want to do that.

Is there any way i can make parent node read only ?

Thanks,
Shinu
Top achievements
Rank 2
 answered on 02 Mar 2011
3 answers
64 views
Hi,
I am using RadEditor control, and when i click on toggle mode, it correctly makes it to full screen mode. But as soon as i type the first word in full screen mode, the editor shrinks vertically.
I am using this RadEditor control in a Usercontrol (".ascx file").

Please let me know if this is a bug or i am doing something wrong?

Thanks,
Santosh
Rumen
Telerik team
 answered on 02 Mar 2011
3 answers
96 views
The following is my aspx code...
When the page first loads it displays the contents properly (datagrid).  When I click on another tab the contents from the first tab is placed underneath the contents for the current tab.  Same thing happens if I click on the first tab...I now get two datagrids appearing with the same information ie. the grids are duplicated.

Any help would be greatly appreciated...I must be missing something small....I am at a total loss..
thanks,
scott


radtsYear_tabclick event code

 

 

protected void radtsYear_TabClick(object sender, Telerik.Web.UI.RadTabStripEventArgs e)

 

 

{

 

 

 

int ItemID = int.Parse(e.Tab.Text);

 

 

Session[

 

"ItemID"] = ItemID;

 

 

 

 

DataSet dsTemp = (DataSet) Session["dsGetGrowerOfferDetail"];

 

 

 

 

switch (ItemID)

 

 

{

 

 

 

case 2011:

 

 

 

if (dsTemp.Tables[2].Rows.Count > 0)

 

 

{

 

gvOffers2011.DataSource = dsTemp.Tables[2];

 

gvOffers2011.DataBind();

 

}

 

 

 

break;

 

 

 

 

case 2010:

 

 

 

if (dsTemp.Tables[1].Rows.Count > 0)

 

 

{

 

gvOffers2010.DataSource = dsTemp.Tables[1];

 

gvOffers2010.DataBind();

 

}

 

 

 

 

 

break;

 

 

 

 

case 2009:

 

 

 

if (dsTemp.Tables[0].Rows.Count > 0)

 

 

{

 

gvOffers2009.DataSource = dsTemp.Tables[0];

 

gvOffers2009.DataBind();

 

}

 

 

 

break;

 

}

}





 

 

<telerik:RadAjaxPanel runat="server" EnableHistory="false" HorizontalAlign="NotSet"

 

 

 

 

LoadingPanelID="RadAjaxLoadingPanel1">

 

 

 

<telerik:RadTabStrip ID="radtsYear" runat="server"

 

 

 

 

Skin="Forest" MultiPageID="radMultiPage" ontabclick="radtsYear_TabClick" SelectedIndex="0">

 

 

 

<Tabs>

 

 

 

<telerik:RadTab runat="server" Text="2011" >

 

 

 

</telerik:RadTab>

 

 

 

<telerik:RadTab runat="server" Text="2010" >

 

 

 

</telerik:RadTab>

 

 

 

<telerik:RadTab runat="server" Text="2009" >

 

 

 

</telerik:RadTab>

 

 

 

</Tabs>

 

 

 

</telerik:RadTabStrip>

 

 

 

<telerik:RadMultiPage ID="radMultiPage" runat="server" Width="100%" SelectedIndex="0" RenderSelectedPageOnly="true">

 

 

 

<telerik:RadPageView ID="pv2011" runat="server" ToolTip="2011 Grower Registrations">

 

 

 

<tr>

 

 

 

<td>

 

 

 

<asp:GridView ID="gvOffers2011" runat="server"

 

 

 

 

AlternatingRowStyle-BackColor="Gainsboro" AutoGenerateColumns="False"

 

 

 

 

Caption="2011 Offers" CaptionAlign="Top" EmptyDataText="No 2011 Offers Found"

 

 

 

 

HeaderStyle-BackColor="Green" HeaderStyle-ForeColor="White"

 

 

 

 

HeaderStyle-HorizontalAlign="Center" OnRowDataBound="gvOffers2010_RowDataBound"

 

 

 

 

Visible="True" Width="100%">

 

 

 

<Columns>

 

 

 

<asp:BoundField DataField="Offer_name" HeaderText="Program" />

 

 

 

<asp:BoundField DataField="Offer_description" HeaderText="Details" />

 

 

 

<asp:TemplateField HeaderText="Registration" ItemStyle-HorizontalAlign="Center">

 

 

 

<ItemTemplate>

 

 

 

<asp:Image ID="ImageRegistration" runat="server"

 

 

 

 

ImageUrl="Images/checkboxno.gif">

 

 

 

</asp:Image>

 

 

 

</ItemTemplate>

 

 

 

</asp:TemplateField>

 

 

 

<asp:TemplateField HeaderText="Paid" ItemStyle-HorizontalAlign="Center">

 

 

 

<ItemTemplate>

 

 

 

<asp:Image ID="ImagePaid" runat="server" ImageUrl="Images/checkboxno.gif">

 

 

 

</asp:Image>

 

 

 

</ItemTemplate>

 

 

 

</asp:TemplateField>

 

 

 

</Columns>

 

 

 

<HeaderStyle BackColor="Green" ForeColor="White" />

 

 

 

<AlternatingRowStyle BackColor="Gainsboro" />

 

 

 

</asp:GridView>

 

 

 

</td>

 

 

 

</tr>

 

 

 

</telerik:RadPageView>

 

 

 

<telerik:RadPageView ID="pv2010" runat="server"

 

 

 

 

ToolTip="2010 Grower Registrations">

 

 

 

<tr>

 

 

 

<td>

 

 

 

<asp:GridView ID="gvOffers2010" runat="server"

 

 

 

 

AlternatingRowStyle-BackColor="Gainsboro" AutoGenerateColumns="False"

 

 

 

 

Caption="2010 Offers" CaptionAlign="Top" EmptyDataText="No Offers Found"

 

 

 

 

HeaderStyle-BackColor="Green" HeaderStyle-ForeColor="White"

 

 

 

 

HeaderStyle-HorizontalAlign="Center" OnRowDataBound="gvOffers2010_RowDataBound"

 

 

 

 

Visible="true" Width="100%">

 

 

 

<Columns>

 

 

 

<asp:BoundField DataField="Offer_name" HeaderText="Program" />

 

 

 

<asp:BoundField DataField="Offer_description" HeaderText="Details" />

 

 

 

<asp:TemplateField HeaderText="Registration" ItemStyle-HorizontalAlign="Center">

 

 

 

<ItemTemplate>

 

 

 

<asp:Image ID="ImageRegistration" runat="server"

 

 

 

 

ImageUrl="Images/checkboxno.gif">

 

 

 

</asp:Image>

 

 

 

</ItemTemplate>

 

 

 

</asp:TemplateField>

 

 

 

<asp:TemplateField HeaderText="Paid" ItemStyle-HorizontalAlign="Center">

 

 

 

<ItemTemplate>

 

 

 

<asp:Image ID="ImagePaid" runat="server" ImageUrl="Images/checkboxno.gif">

 

 

 

</asp:Image>

 

 

 

</ItemTemplate>

 

 

 

</asp:TemplateField>

 

 

 

</Columns>

 

 

 

<HeaderStyle BackColor="Green" ForeColor="White" />

 

 

 

<AlternatingRowStyle BackColor="Gainsboro" />

 

 

 

</asp:GridView>

 

 

 

</td>

 

 

 

</tr>

 

 

 

</telerik:RadPageView>

 

 

 

<telerik:RadPageView ID="pv2009" runat="server"

 

 

 

 

ToolTip="2009 Grower Registrations">

 

 

 

<tr>

 

 

 

<td>

 

 

 

<asp:GridView ID="gvOffers2009" runat="server"

 

 

 

 

AlternatingRowStyle-BackColor="Gainsboro" AutoGenerateColumns="False"

 

 

 

 

Caption="2009 Offers" CaptionAlign="Top" EmptyDataText="No Offers Found"

 

 

 

 

HeaderStyle-BackColor="Green" HeaderStyle-ForeColor="White"

 

 

 

 

OnRowDataBound="gvOffers2010_RowDataBound" Visible="true" Width="100%">

 

 

 

<HeaderStyle BackColor="Green" ForeColor="White" />

 

 

 

<AlternatingRowStyle BackColor="Gainsboro" />

 

 

 

<Columns>

 

 

 

<asp:BoundField DataField="Offer_name" HeaderText="Program" />

 

 

 

<asp:BoundField DataField="Offer_description" HeaderText="Details" />

 

 

 

<asp:TemplateField HeaderText="Registration" ItemStyle-HorizontalAlign="Center">

 

 

 

<ItemTemplate>

 

 

 

<asp:Image ID="ImageRegistration" runat="server"

 

 

 

 

ImageUrl="Images/checkboxno.gif">

 

 

 

</asp:Image>

 

 

 

</ItemTemplate>

 

 

 

 

</asp:TemplateField>

 

 

 

</Columns>

 

 

 

</asp:GridView>

 

 

 

</td>

 

 

 

</tr>

 

 

 

</telerik:RadPageView>

 

 

 

</telerik:RadMultiPage>

 

 

 

</telerik:RadAjaxPanel>

 

 

 

<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server"

 

 

 

 

Skin="Forest" MinDisplayTime="5" InitialDelayTime="2">

 

 

 

</telerik:RadAjaxLoadingPanel>

 

Veronica
Telerik team
 answered on 02 Mar 2011
1 answer
115 views


Table

menuid   navigationurl  text           parentmenuid    isheadermenu
1 NULL InternetSites NULL True
2 NULL Yahoo 1 False
3 www.yahoo1.com Yahoo1 2 False
4 www.yahoo2.com Yahoo2 2 False
5 NULL Google 1 False
6 www.google1.com Google1 5 False
7 www.google2.com Google2 5 False
8 NULL Services NULL True
9 NULL IT 8 False
10 www.it1.com it1 9 False
11 www.it2.com it2 9 False
12 NULL Infrastructure 9 False
13 www.infra1.com infra1 12 False
14 www.infra2.com infra2 12 False

IsHeaderMenu represents menus which are present in the menubar.

This is my table structure.
User can add more menus from the UI provided.

I have to create the menu dynamically by using the above table structure.
I want to prepare xml for the above structure and want to do.

Can you give me some sample ?

Regards
Sreedhar Ambati



Shinu
Top achievements
Rank 2
 answered on 02 Mar 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?