Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
146 views
Hello,

I'm having some trouble with getting a RadGrid to perform automatic operations inside a RadWindow, and am wondering if i'm either doing something wrong or it's not possible.

Scenario: I have RadGrid (Id = RadGridHdr) on default.aspx.vb.  This grid is databound with all automatic operations enabled and working beautifully.  I have the OnRowDblClick clientsetting set to open a RadWindow (Id = RadWindowDtl).  This works no problem.  The RadWindow loads detail.aspx.vb which contains another RadGrid (Id = RadGridDtl).  This grabs the request object from the OnRowDblClick client event which is a selectparameter on the datasource that feeds RadGridDtl.  All this works no problem.  I can click the Insert button and the ItemCommand fires for RadGridDtl (I'm using a formtemplate with radcontrols for the insert/edit).  However when I click the PerformInsert button the RadGridDtl basically refreshes itself leaving me on a blank insert form.  I have all the Automatic Operations enabled and I know the Insert Query on the datasource is correct.  Also another snafu is when RadGridDtl has rows the Edit button is inoperable as well.

Will I need to do advanced data-binding or even client side insert/update/delete because of the RadWindow layer?  I can't post an example project due to this being internal data housed in an Oracle Database.  I'm workin in VB.Net and using Q1 2010 SP2 controls.

Any help would greatly be appreciated.

Thanks,

Sean
Iana Tsolova
Telerik team
 answered on 22 Jun 2010
3 answers
155 views
I am having trouble sorting when the SortExpression is set to Object[i].Property

Scenario:

My Site class has a property of type Collection<Estimate> Estimates
The Estimate class has a Decimal property called Total

After executing a search, I am binding the radGrid to a collection of Site objects that fit the criteria
ie: gvResults.DataSource = Collection<CustomSite.Site>

When executing the search query, the Estimate collection above gets filled with up to 3 types of estimates. One of these types is very important, and is always added to the collection in the first position.

When creating the grid, I have a column defined as

<telerik:GridBoundColumn DataField="Estimates[0].Total" HeaderText="Estimate Total" SortExpression="Estimates[0].Total" DataFormatString="{0:n0}" DataType="System.Decimal" HtmlEncode="False" HeaderStyle-Width="86px" ItemStyle-Width="86px" ItemStyle-HorizontalAlign="Right" ItemStyle-VerticalAlign="Top" SortAscImageUrl="~/Images/sort-up.gif" SortDescImageUrl="~/Images/sort-down.gif" />

I have a second column defined the same way, it just binds to a different property

<telerik:GridBoundColumn DataField="Values.Equipment" HeaderText="Equipment" SortExpression="Values.Equipment" DataFormatString="{0:n0}" DataType="System.Decimal" HtmlEncode="False" HeaderStyle-Width="86px" ItemStyle-Width="86px" ItemStyle-HorizontalAlign="Right" ItemStyle-VerticalAlign="Top" SortAscImageUrl="~/Images/sort-up.gif" SortDescImageUrl="~/Images/sort-down.gif" />

The cells in both cases are filled with the correct value after the search binds.

I have no trouble sorting on the Values.Equipment column. Ascending, descending, it works find both directions.

However, when I try to sort on the Estimates[0].Total column, I get very strange and entirely incorrect results.

The odd thing is that if I sort ASC, maybe one or two rows will shift from their default position, but not in the sort position specified. If I sort DESC, I may or may not get a change. If I sort ASC again, the rows may still stay the same, or they may shift to yet a different position from the first ASC sort and still different from the original sort.

Is it not possible to have a SortExpression defined as an indexed value of a collection (ie: Estimates[0].Total)

More code can be posted if necessary.
                                
                                
Iana Tsolova
Telerik team
 answered on 22 Jun 2010
3 answers
150 views
is it possible to expand / collapse a row (custom) with additional information and even HTML / functionality within it?

So not using the hierarchical stuff but more a list of items that can be expanded / collapsed and have additional information and even links to other pages?

Plus, it could be dragged (as a whole row) to another control (like a tree)?

Let me know if there are any examples or anything that can point me in the right direction..

Thanks..
Pavlina
Telerik team
 answered on 22 Jun 2010
1 answer
91 views
I need to alter the Filtercontrol width according to the RadGrid Column width. I know how to assign the width statically by using filter column width.

I want to make this in one place for all grids. Anyone know how to get the column width after binding and need to assign the same for Filtercontrol.

Anyone has any idea?
Dimo
Telerik team
 answered on 22 Jun 2010
1 answer
176 views
Hi Guys,

I have just started using the ASP .Net AJAX controls from Telerik.
We have a currently running solution that was built using standard ASP .Net & C#.

Just wondering if there is any automated solution / method to convert (upgrade) my current website to use telerik components or we need to change the asp pages manually?

Regards,
Vaibhav
Sebastian
Telerik team
 answered on 22 Jun 2010
2 answers
112 views
Hi All

Have a RadGrid with records which works fine. I have used Custom Skin.

Have a scroll bar which appears when the Add New Record is clicked.

Have sent two screen shots.

Is there any option to rectify this.

Thank You

-Anto
Anto (DLL Version : 2008.3.1314.35)
Top achievements
Rank 2
 answered on 22 Jun 2010
1 answer
42 views
I'm attempting to set this property to an image for when hovering over a menu item. It works as expected when the menu item gets hovered over, but the problem is when I stop hovering over the menu item the hover image remains there?

Any ideas what could be causing this to happen?

I'm new to using Telerik so if any more info is needed I can do my best to provide it.

Thanks
Veronica
Telerik team
 answered on 22 Jun 2010
10 answers
338 views
Hi All,

Have a master page with RadMenu.

While clicking a menu, a page opens in a popup. For this I have should RadWindowManager.

Works fine.

But each page is of different width. So I used the AutoSize="True", which I found in the telerik demos. But it is not working.

<%@ Control Language="C#" AutoEventWireup="True" CodeBehind="HeaderV2.ascx.cs" Inherits="ProductAdmin.Header" %> 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
 
  <telerik:RadScriptBlock runat="server" ID="RadScriptBlock1"> 
 
        <script type="text/javascript"> 
 
            function rmnuPageClientClicking(sender, eventArgs) { 
                var item = eventArgs.get_item(); 
                var navigateUrl = item.get_value(); 
                if (navigateUrl && navigateUrl != "#") { 
                    var wnd = window.radopen(navigateUrl, null); 
                                       
                    return false; 
                } 
            } 
//            wnd.setSize(515, 345);   
             
          </script> 
 
    </telerik:RadScriptBlock> 
<table border="0" cellpadding="0" cellspacing="0" width="100%"> 
    <tbody> 
        <tr> 
            <td id="header"> 
                <table border="0" cellpadding="0" cellspacing="0" width="100%"> 
                    <tbody> 
                        <tr> 
                            <td style="width: 100%;" valign="top"> 
                                <table cellpadding="0" cellspacing="0"> 
                                    <tr> 
                                        <td> 
                                            <telerik:RadMenu runat="server" ID="rmnuProducts" DataTextField="ProductName" DataFieldID="ProductID" 
                                                DataFieldParentID="ParentID" DataValueField="ProductID" Skin="Vista" OnItemClick="rmnuProducts_ItemClick"> 
                                            </telerik:RadMenu> 
                                        </td> 
                                        <td> 
                                            <telerik:RadMenu Width="100%" runat="server" ID="rmnuPage" DataTextField="PseudoName" 
                                                DataFieldID="UID" DataFieldParentID="ParentID"  
                                                 
                                                DataValueField="PageNavigateURL" 
                                                OnClientItemClicking="rmnuPageClientClicking" 
                                                 
                                                 CollapseAnimation-Type="OutSine" Skin="Vista" 
                                                EnableAutoScroll="true"> 
                                            </telerik:RadMenu> 
                                             
                                            <%--OnItemClick="rmnuPage_ItemClick"--%> 
                                            <%--DataNavigateUrlField="PageNavigateURL"--%> 
                                            <img visible="false" alt="Products" id="productLogo" runat="server" /> 
                                        </td> 
                                        <td> 
                                            <telerik:RadMenu runat="server" ID="RadMenu1" Skin="Vista" OnItemClick="rmnuProducts_ItemClick" Width="100%"> 
                                                <Items> 
                                                    <telerik:RadMenuItem Text="Home" NavigateUrl="../Home/DefaultCS.aspx"> 
                                                    </telerik:RadMenuItem> 
                                                    <telerik:RadMenuItem Text="Log Out" NavigateUrl="../Admin/LoginCS.aspx"> 
                                                    </telerik:RadMenuItem> 
                                                </Items> 
                                            </telerik:RadMenu> 
                                        </td> 
                                    </tr> 
                                </table> 
                            </td> 
                            <%-- <td align="right"> 
                                <table border="1" cellpadding="0" cellspacing="0"> 
                                    <tbody> 
                                        <tr> 
                                            <td> 
                                            </td> 
                                            <td class="myArea" align="left"> 
                                                <%--| <a href="../Home/DefaultCS.aspx" class="myAreaLink">Home</a>|<a href="../Admin/LoginCS.aspx" 
                                                    class="myAreaLink">Logout</a>--%> 
                            <%--</td> 
                                            <td id="colorpicker" class="welcome" style="border-left: 2px solid rgb(221, 221, 221); 
                                                padding-right: 5px;" nowrap="nowrap" valign="top"> 
                                            </td> 
                                        </tr> 
                                    </tbody> 
                                </table> 
                            </td>--%> 
                        </tr> 
                        <tr> 
                            <td> 
                                <telerik:RadToolBar runat="server" ID="RTBproducts" OnButtonClick="RTBproducts_ButtonClick"  Skin="Office2007" Width="100%"> 
                                    <Items> 
                                        <telerik:RadToolBarButton Text="Employee Master" ImagePosition="AboveText" ImageUrl="../iSmart/images/users2.gif"> 
                                        </telerik:RadToolBarButton> 
                                        <telerik:RadToolBarButton Text="Employee" IsSeparator="true"> 
                                        </telerik:RadToolBarButton> 
                                        <telerik:RadToolBarButton Text="Leave Master" ImagePosition="AboveText" ImageUrl= "../iSmart/images/attend.gif"> 
                                        </telerik:RadToolBarButton> 
                                        <telerik:RadToolBarButton Text="Leave" IsSeparator="true"> 
                                        </telerik:RadToolBarButton> 
                                        <telerik:RadToolBarButton Text="Attendance" ImagePosition="AboveText" ImageUrl= "../iSmart/images/atendance.gif"> 
                                        </telerik:RadToolBarButton> 
                                        <telerik:RadToolBarButton Text="Attendan" IsSeparator="true"> 
                                        </telerik:RadToolBarButton> 
                                        <telerik:RadToolBarButton Text="CTC Master" ImagePosition="AboveText" ImageUrl= "../iSmart/images/ctc.gif"> 
                                        </telerik:RadToolBarButton> 
                                        <telerik:RadToolBarButton Text="CTC" IsSeparator="true"> 
                                        </telerik:RadToolBarButton> 
                                        <telerik:RadToolBarButton Text="Salary Process" ImagePosition="AboveText" ImageUrl= "../iSmart/images/dolr1.gif"> 
                                        </telerik:RadToolBarButton> 
                                        <telerik:RadToolBarButton Text="Salary" IsSeparator="true"> 
                                        </telerik:RadToolBarButton> 
                                        <telerik:RadToolBarButton Text="Salary Slip" ImagePosition="AboveText" ImageUrl="../iSmart/images/salslipnew.gif"> 
                                        </telerik:RadToolBarButton> 
                                        <telerik:RadToolBarButton Text="SalarySlip" IsSeparator="true"> 
                                        </telerik:RadToolBarButton> 
                                        <telerik:RadToolBarButton Text="Exit" ImagePosition="AboveText" ImageUrl="../iSmart/images/exitnew.gif"> 
                                        </telerik:RadToolBarButton> 
                                        <telerik:RadToolBarButton IsSeparator="true"> 
                                        </telerik:RadToolBarButton> 
                                    </Items> 
                                </telerik:RadToolBar> 
                            </td> 
                        </tr> 
                        <%-- <tr> 
                            <td style="padding: 10px 5px 0px 10px;" align="right" nowrap="nowrap" valign="top"> 
                                <table border="0" cellpadding="0" cellspacing="0"> 
                                    <tbody> 
                                        <tr> 
                                            <td class="search" >--%> 
                        <%--<telerik:RadTextBox EnableEmbeddedSkins="false" ID="RTBSearch" TabIndex="1" runat="server" 
                                                                MaxLength="20"    > 
                                             </telerik:RadTextBox>--%> 
                        <%--</td><td>--%> 
                        <%--<asp:Button ID="BtnSearch" runat="server" Text="Search" CssClass="button"/>--%> 
                        <%--</td> 
                                        </tr> 
                                    </tbody> 
                                </table> 
                            </td> 
                        </tr>--%> 
                        <%--<tr> 
                            <td colspan="2" align="left"> 
                            </td> 
                        </tr>--%> 
                        <tr> 
                            <td> 
                                <table border="0" cellpadding="0" cellspacing="0" width="100%"> 
                                    <tbody> 
                                        <tr> 
                                            <td id="subtabs" width="100%"> 
                                            </td> 
                                        </tr> 
                                        <tr> 
                                            <td colspan="4" class="lastView" nowrap="nowrap"> 
                                                <table border="0" cellpadding="0" cellspacing="0" width="100%"> 
                                                    <tbody> 
                                                        <tr> 
                                                            <td align="left"> 
                                                                <asp:Label ID="lblPage" runat="server" Text=""></asp:Label> 
                                                            </td> 
                                                            <td align="right"> 
                                                                <b style="white-space: nowrap;">Welcome&nbsp;&nbsp;</b> 
                                                                <asp:Label ID="lblWelcomeBy" runat="server" Text="None"></asp:Label>&nbsp;&nbsp;&nbsp;&nbsp; 
                                                            </td> 
                                                            <td align="right"> 
                                                                <b style="white-space: nowrap;">Last Viewed:&nbsp;&nbsp;</b> 
                                                                <asp:Label ID="lblLastViewed" runat="server" Text="None"></asp:Label>&nbsp;&nbsp; 
                                                            </td> 
                                                        </tr> 
                                                    </tbody> 
                                                </table> 
                                            </td> 
                                        </tr> 
                                    </tbody> 
                                </table> 
                                 <telerik:RadWindowManager ID="RadWindowManager" ReloadOnShow="true" VisibleOnPageLoad="true" Animation="Slide"   
                                 AutoSize="true" ShowContentDuringLoad="false" runat="server" Skin="Vista" 
                                    VisibleStatusbar="false"> 
                                    <Windows> 
                                        <%-- <telerik:RadWindow ID="RadWindow1" runat="server" ShowContentDuringLoad="false" Width="400px" 
                                            Height="400px" Title="Telerik RadWindow" Behaviors="Default"> 
                                        </telerik:RadWindow>--%> 
                                    </Windows> 
                                </telerik:RadWindowManager> 
                                 
                                <telerik:RadAjaxManager ID="ramTemp" runat="server"> 
                        <AjaxSettings> 
                            <telerik:AjaxSetting AjaxControlID="RTBproducts"> 
                                <UpdatedControls> 
                                    <telerik:AjaxUpdatedControl ControlID="RadWindowManager" LoadingPanelID="LoadingPanel1"/> 
                                </UpdatedControls> 
                            </telerik:AjaxSetting> 
                            <telerik:AjaxSetting AjaxControlID="rmnuPage"> 
                                <UpdatedControls> 
                                    <telerik:AjaxUpdatedControl ControlID="RadWindowManager" LoadingPanelID="LoadingPanel1" /> 
                                </UpdatedControls> 
                            </telerik:AjaxSetting> 
                            
                        </AjaxSettings> 
                    </telerik:RadAjaxManager> 
                            </td> 
                        </tr> 
                    </tbody> 
                </table> 
            </td> 
        </tr> 
    </tbody> 
</table> 

This the ascx page I am using. Have called the new page through javascript.

It Opens in a window with scroll in both. Need to fit the size of the page.

Have sent a screen shot also.

Is there any possible way to rectify this.

Thank you

-Anto

Anto (DLL Version : 2008.3.1314.35)
Top achievements
Rank 2
 answered on 22 Jun 2010
2 answers
808 views
HI

I have enabled context menu filtering on the grid - it works fine. The only concern is that it is case sensitive. For example if I have a condition like 
"Filter - StartsWith d" it returns nohing
typing "D" in upper case returns records

Is it possible to disable case sensitivity on filtering.

Many thanks 

MG
FISCAL
Top achievements
Rank 1
 answered on 22 Jun 2010
1 answer
126 views

Hi,

I would like to know if there's a way to get the mouse position after a click on the plot area.

I’ know there a way to get which element a click occurred but i want to know the position even when there isn't a element on that spot.

What i'm tring to achieve is to use the chart a input mechanism for the end user. By pointing with the mouse  (in the chart) the user can set a value within the chart.

any idea's would be appreciated,

Frans van Ek

Ves
Telerik team
 answered on 22 Jun 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?