Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
74 views
Hi,
    Im yogesh,,,I am new to asp.net with c#. i am working with asp.net ajax radgrid control. i am unable to store image in radgrid row and then it should be displayed in image box which is in that same page. i tried my best but unable to get it. plz send me the code snippet..its urgent.....
Shinu
Top achievements
Rank 2
 answered on 02 Mar 2011
3 answers
122 views
Hi,

In my RadGrid, i have 4 textboxes in item template.
Now i want apply one calculation formula on these columns.
I want to do auto calculation of txt4 value, when values in txt1, txt2, txt3 changed.
My formula is:
txt4 = txt1 + txt2 - txt3

How can i do this, on which event of grid, or on each textbox text changed event.
Any sample code is helpful.

Thanks in advance.
Princy
Top achievements
Rank 2
 answered on 02 Mar 2011
1 answer
45 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
60 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
93 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
124 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
176 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
151 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
152 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
61 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?