Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
163 views
 I  have a similar scenario to the online demo Demo . my issue is that when i use a combobox to filter the grid the tooltip manager is not updated. Instead it retains the datakey for the 1st ,2nd record rather than those of the  filtered items. Here are snippets of my code...
Public Sub OnAjaxUpdate(ByVal sender As Object, ByVal args As ToolTipUpdateEventArgs)  
        Me.UpdateToolTip(args.Value, args.UpdatePanel)  
End Sub 
Private Sub UpdateToolTip(ByVal elementID As String, ByVal panel As UpdatePanel)  
        Dim ctrl As Control = Page.LoadControl("~/UserControls/ControlRoot/TooTips/Tip.ascx")  
        panel.ContentTemplateContainer.Controls.Add(ctrl)  
        Dim details As EquipmentTip = DirectCast(ctrl, EquipmentTip)  
        details.ID = CType(elementID, Int32)  
End Sub 


tool tip manager
  <telerik:RadToolTipManager ID="RadToolTipManager1" OffsetY="-1" HideEvent="ManualClose" 
            Width="250" Height="350" runat="server" OnAjaxUpdate="OnAjaxUpdate" RelativeTo="Element" 
            Position="MiddleRight" Skin="Windows7" ShowDelay="100" Sticky="True">  
  </telerik:RadToolTipManager> 



grid template column

<telerik:GridTemplateColumn HeaderText=" Owner" SortExpression="OwnerStatusDescription">  
                        <ItemTemplate> 
                            <asp:HyperLink ID="targetControl" NavigateUrl="#" runat="server" Text='<%# Eval("OwnerStatusDescription") %>'> </asp:HyperLink> 
                        </ItemTemplate> 
 </telerik:GridTemplateColumn> 


and my ajax manager



<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" DefaultLoadingPanelID="RadAjaxLoadingPanel1" 
    ClientEvents-OnRequestStart="requestExportStart" > 
    <ClientEvents OnRequestStart="requestExportStart"></ClientEvents> 
    <AjaxSettings> 
        <telerik:AjaxSetting AjaxControlID="ComboBox">  
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="RadToolTipManager1" /> 
                <telerik:AjaxUpdatedControl ControlID="Grid" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting> 
        <telerik:AjaxSetting AjaxControlID="Grid">  
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="RadToolTipManager1" /> 
                <telerik:AjaxUpdatedControl ControlID="Grid" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting> 
    </AjaxSettings> 
</telerik:RadAjaxManager> 


is there a way to make sure that this doesn't happen i.e. via code or client script .

How do I manually clear the tootip and reasign the filtered values???
Svetlina Anati
Telerik team
 answered on 31 Mar 2010
5 answers
181 views
Hi,

I have radgrid wrapepd by div with relative positioning css attribute.

The problem is: page size listbox or filter listbox showup in wired places.
When i remove relative positioning everything looks fine (but I need this positioning to my page layout look good)

Any help?


Cheers, Grzesiek
Dimo
Telerik team
 answered on 31 Mar 2010
3 answers
181 views
Hi,

I need confirm dilog when user deselects a row.
I am using GridClientSelectColumn for row selection.
I am using RowDeselecting event of grid.

I am doing eventArgs.set_cancel(true); when user says cancel, and it leave the row in its old state(selected).

            var grid = sender;
            var MasterTable = grid.get_masterTableView();
            var row = MasterTable.get_dataItems()[eventArgs.get_itemIndexHierarchical()];
            var cell = MasterTable.getCellByColumnUniqueName(row, "Name");

if(!confirm("confirm?"))
{
eventArgs.set_cancel(true);
}

But the problem is check box in GridClientSelectColumn loses its status. It becomes unchecked and does not get checked even if i set cancel true.

I want the select checkbox should also be cancelled and made checked again.

Tell me if I have chosen wrong event or on wrong object.

Help please.

Thanks,
Jimmy.


Jimmy Vithalani
Top achievements
Rank 1
 answered on 31 Mar 2010
2 answers
69 views

I’m using ASP.NET mvc controls

I need to change the hover style for a tab strip control on my pages

If i do this the grid hover changes as well...

 

Can i have separate style for the grid and the tabstrip?

Sean Farmar
Top achievements
Rank 1
 answered on 31 Mar 2010
1 answer
156 views

Shinu
Top achievements
Rank 2
 answered on 31 Mar 2010
1 answer
118 views

I have a grid that allows drag n drop of a row.   When I drag a row outside of a grid, and let go of it, the dragged row is still attached to the mouse in IE 7 and 8.  This does not happen in firefox.  Also, I tried this on the demo telerik's site and the issue is still there on the latest version.

http://demos.telerik.com/aspnet-ajax/grid/examples/programming/draganddrop/defaultcs.aspx

Does anyone have a solution to this?


Thanks.





BaiH
Top achievements
Rank 1
 answered on 31 Mar 2010
2 answers
97 views
Hi everybody

The title mentions it all :)
The AllowMultiRowSelection property is enabled, but whenever I select a multiple rows using the CTRL + SHIFT combo, the rows are marked as selected but the OnSelectedIndexChanged event doesn't fire. Am I missing something? 

I'll provide further information if needed.

Thanks in advance.

Regards,
Mallory
Mallory
Top achievements
Rank 1
 answered on 31 Mar 2010
2 answers
112 views

I have a RadGrid with a GridDropDown column:

<telerik:RadGrid ID="DGrid" runat="server" AutoGenerateColumns="False" 
    Width="100%" AllowAutomaticDeletes="True" GridLines="None" OnItemDataBound="DGrid_ItemDataBound" 
    OnNeedDataSource="DGrid_NeedDataSource" OnInsertCommand="DGrid_InsertCommand" 
    OnUpdateCommand="DGrid_UpdateCommand" OnDeleteCommand="DGrid_DeleteCommand" 
    AllowMultiRowEdit="false">  
    <mastertableview commanditemdisplay="Bottom" editmode="InPlace">  
        <HeaderStyle Wrap="false" /> 
        <RowIndicatorColumn> 
            <HeaderStyle Width="20px"></HeaderStyle> 
        </RowIndicatorColumn> 
        <ExpandCollapseColumn> 
            <HeaderStyle Width="20px"></HeaderStyle> 
        </ExpandCollapseColumn> 
        <Columns> 
            <telerik:GridDropDownColumn DataField="Id" UniqueName="Id" 
                ListValueField="SystemID" ListTextField="SystemName" HeaderText="D" 
                ItemStyle-Wrap="false" ItemStyle-Font-Names="Arial" ItemStyle-Width="500px">  
                   <ItemStyle Font-Names="Arial" /> 
            </telerik:GridDropDownColumn> 
            <telerik:GridButtonColumn CommandName="Delete" Text="Delete" UniqueName="DeleteColumn" ButtonType="LinkButton" > 
            </telerik:GridButtonColumn> 
        </Columns> 
    </mastertableview> 
    <clientsettings> 
        <Selecting AllowRowSelect="false" /> 
    </clientsettings> 
</telerik:RadGrid> 

My questions are:
How do I specify that the box that holds the values in the dropdownlist needs to be X pixels wide?
The text that shows up in the RadCombobox, how do you set the style? 

Just not sure where to find the answers.

J
Princy
Top achievements
Rank 2
 answered on 31 Mar 2010
1 answer
205 views
I have a master grid that opens to show  rows in a child grid. The master grid has alternating colors for rows. I want the child rows to all have the same color as their parent row. This I have accomplished, but the first  column (contains the expand/collapse button in parent row) is not colored appropriatly.

How do I get access to that column's cell to change it's background color?

I have attached two image files...one with parent collapsed and one with parent expanded.

Thank you,
Frank Prevatt
Rosen
Telerik team
 answered on 31 Mar 2010
1 answer
197 views
Hi,

I want to have two different aggregates, one for the mastertable (easy) and a different one for a detailtable which is where I am having the issue. In the detail table I am using a gridBoundColumn, Aggregate="Sum" and the datafield and uniqueNames are unique, i.e. the do not exist anywhere else including anywhere in the mastertable.

Despite all this, the Sum aggregate from the master table for a different column named 'TotAmount' is showing in the DetailTable in a column named 'PayAmount'

I was assuming from the samples that its possible to have a nested hierarchy with aggregates - but for whatever reason, I am hitting the wall here. Any help appreciated.
Martin
Telerik team
 answered on 31 Mar 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?