Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
133 views
Hello,

I have a Grid. Grid is bound and OnItemDatabound event I am configuring target control for my tooltip manager like:

 rttManager.TargetControls.Add(e.Item.ClientID, "myValue", true);

Tooltip manager:
<telerik:RadToolTipManager ID="rttManager" runat="server" OnAjaxUpdate="rttManager_AjaxUpdate" 
        ShowEvent="OnClick" HideEvent="ManualClose" Position="BottomLeft" 
        OnClientBeforeShow="RttManager_BeforeShow" RelativeTo="Element" OffsetY="-1" OffsetX="-6" ShowCallout="false"> 

So effectively my tooltip should be relative to row  element in the grid.
Now I FF 3.5.7, everything is ok and the tooltip renders as:

<div id="RadToolTipWrapper_ctl00_ctl00_mainContentHolder_contentHolder_rttManager1101263315470997"  
class="RadToolTip RadToolTip_Telerik "  
unselectable="on" style="position: absolute; z-index: 8000; visibility: visible; left: 277px; top: 430px;"> 




In IE8 and IE7 it renders:
<DIV style="Z-INDEX: 8000; POSITION: absolute; VISIBILITY: visible; TOP: 430px; LEFT: 0px" id=RadToolTipWrapper_ctl00_ctl00_mainContentHolder_contentHolder_rttManager1071263315770540  
class="RadToolTip RadToolTip_Telerik " unselectable="on"> 

Notice the Left: 0PX in IE8. Now what can cause this problem ?


Roland
Top achievements
Rank 1
 asked on 12 Jan 2010
7 answers
171 views
Hello,

Our web server and database server are hosted in the Mountain Standard Time Zone and we are in the Central Standard Time Zone.  The data is inserted and updated on the database in MST.  I want to display the data in the radGrid in CST.  Is there a function to convert or do I need to write something from scratch?  I need it to handle time changes also.  I was looking at the DataFormatString, but it doesn't look like that will work.  I'm thinking I need to do something on a per row basis.

Thanks,

Randy
Randy Bauer
Top achievements
Rank 1
 answered on 12 Jan 2010
1 answer
83 views
i created an application in asp.net 3.5 and using telerik 3.5.   my menu looks nice and everything was fine. 
i added global.asax file to set up some sessions on on start and prerequest and now my meny breaks and seems that html is not rendering. 

is there a work around so telerik always works and renders? 
Schlurk
Top achievements
Rank 2
 answered on 12 Jan 2010
1 answer
104 views
Hi,

I liked the Grid / Editing with external form in one of the Grid samples.
What kind of changes will I need to make if my main page is in an. <asp:Content> or has a masterpage?

Currenty, I am getting following error:

Message: Sys.InvalidOperationException: Could not find UpdatePanel with ID 'ctl00_ContentPlaceHolder1_ctl00_ContentPlaceHolder1_TrackingGrid_RadGrid1Panel'. If it is being updated dynamically then it must be inside another UpdatePanel.
Line: 6
Char: 62099
Code: 0
URI: http://localhost:49711/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_TopNav_ScriptManager_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d3.5.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3ad0c4ca6e-6b5d-49b6-922d-5244924fb100%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2009.3.1208.20%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a0d8e1f65-7492-499f-bc1d-d6dcea420537%3a16e4e7cd%3af7645509%3a24ee1bba%3ae330518b%3a1e771326%3ac8618e41%3aed16cbdc%3aaa288e2d%3a8674cba1%3ab7778d6c%3ac08e9f8a%3a59462f1%3aa51ee93e%3a58366029

 

Appreciate your help.

Thanks,
Anil
Tsvetoslav
Telerik team
 answered on 12 Jan 2010
1 answer
69 views
Hello,

Are declarative columns already created and accessible in:
- OnPreInit
- OnInit
or later.

Could I set the visible attribute for a column in OnInit ?
And the default Grid sort Order ?

If it can't be done here, where to set this to avoid a Rebind (assumed in OnpreRender.) ?

Thanks

CS
Veli
Telerik team
 answered on 12 Jan 2010
2 answers
108 views
Hi,

I have a problem with the RadAlert OK button.
On the Internet Explorer (8) options, under "Security" tab, when the "Active scripting" is disabled for "Internet" zone (and is enabled for all other zones) even when the web page url is "http://localhost/...." ("Local Internet" zone) the RadAlert OK button cannot be pressed and therefore stays visible.
This is odd since all our site is under local internet.
It is a problem for us since some of our customers wont allow changing this IE setting for the Internet zone.

i will appreciate your help
Maor

maor
Top achievements
Rank 1
 answered on 12 Jan 2010
1 answer
172 views
Hi,

I am using a grid view inside XmlHttpPanel.
My issue is regarding call back.
Above the grid, there is one dropdown list and one radiobuttonlist, and on their selectedindexchanged event, client side, I am setting the value of the panel, and it binds the grid at server side.

For the first time say, it is binding the grid from the database and all works well, then I change the value in dropdownlist, so it again binds the grid according to the value selected in dropdown.
Additionally, I have one button below the grid, on its click event at server side, I am generating a datatable and storing it in a session. The issue creates when I press that button.
Now I am pressing the button below the grid. This does the post back (which opens a popup to show preview of the grid), and it  rebinds the grid (on the parent page) again without calling the .databind() - and that is which it bound before from the database .

XmlHttpPanel, does not support this kind of scenario ?
Pero
Telerik team
 answered on 12 Jan 2010
4 answers
160 views
hi,

I'm using the component radwindows and need help.
When I use a component radwindows performance is very low, but I know why that is, in fact when I call her window render any other window behind in your HTML code.
there any way that generates only the code in the html link that I'm calling?


tanks,


José Luiz
Brazil
Jose Luiz Borges
Top achievements
Rank 2
 answered on 12 Jan 2010
5 answers
158 views
hi,

i have used two detail tables in my radgrid.
The problem i am facing is the values with in the two detail tables are displaying in the same row.
I want that values to be displayed in two rows.below is the code in the aspx page

<

 

telerik:RadGrid ID="rgOrderItem" DataSourceID="dsOrderItem" AutoGenerateColumns="False"

 

 

GridLines="None" AllowPaging="True" PageSize="30" runat="server" CellPadding="0"

 

 

Skin="" EnableEmbeddedSkins="False" ImagesPath="~\Images\Grid\" CssClass="grid"

 

 

CellSpacing="0" OnItemDataBound="rgOrderItem_ItemDataBound" Height="305px" Width="676px"

 

 

OnPreRender="rgOrderItem_PreRender" OnItemCommand="rgOrderItem_ItemCommand" OnDetailTableDataBind="rgOrderItem_DetailTableDataBind">

 

 

<PagerStyle Position="Bottom" Mode="NextPrevAndNumeric" PagerTextFormat="{4} Showing {2}-{3} of {5}"

 

 

CssClass="gridpager" />

 

 

<MasterTableView AllowPaging="true" CommandItemDisplay="Top" ExpandCollapseColumn-Display="false"

 

 

HierarchyDefaultExpanded="true" HierarchyLoadMode="ServerBind" NoDetailRecordsText="No records found">

 

 

<ItemStyle CssClass="gridstyle"></ItemStyle>

 

 

<HeaderStyle CssClass="gridheaderstyle"></HeaderStyle>

 

 

<CommandItemTemplate>

 

 

<div style="padding: 3px 5px; background-color: #efeded;">

 

 

<asp:CheckBox ID="CheckBox1" runat="server" Text="SELECT ALL" onclick="SelectAll(this);" />

 

 

</div>

 

 

</CommandItemTemplate>

 

 

<DetailTables>

 

 

<telerik:GridTableView HorizontalAlign="Right" HierarchyDefaultExpanded="true" ShowHeader="false"

 

 

DataKeyNames="SkuId,WarehouseId" Name="Notes">

 

 

<Columns>

 

 

<telerik:GridBoundColumn DataField="ItemNotes" ItemStyle-Width="400px">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridTemplateColumn>

 

 

<ItemTemplate>

 

 

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:CheckBox ID="chkNotesSelect" runat="server" />

 

 

<asp:Label ID="lblSkuId" runat="server" Text='<%# Bind("SkuId") %>' Visible="false"></asp:Label>

 

 

<asp:Label ID="lblWarehouseId" runat="server" Text='<%# Bind("WarehouseId") %>' Visible="false"></asp:Label>

 

 

</ItemTemplate>

 

 

</telerik:GridTemplateColumn>

 

 

</Columns>

 

 

</telerik:GridTableView>

 

 

</DetailTables>

 

 

<DetailTables>

 

 

<telerik:GridTableView HorizontalAlign="Right" HierarchyDefaultExpanded="true" ShowHeader="false"

 

 

Name="DeliveryNotes" >

 

 

<Columns>

 

 

<telerik:GridBoundColumn DataField="DeliveryDaysString" ItemStyle-Width="400px">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridTemplateColumn>

 

 

<ItemTemplate>

 

 

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:CheckBox ID="chkDNotesSelect" runat="server" />

 

 

<asp:Label ID="lblSkuId" runat="server" Text='<%# Bind("SkuId") %>' Visible="false"></asp:Label>

 

 

<asp:Label ID="lblWarehouseId" runat="server" Text='<%# Bind("WarehouseId") %>' Visible="false"></asp:Label>

 

 

</ItemTemplate>

 

 

</telerik:GridTemplateColumn>

 

 

</Columns>

 

 

</telerik:GridTableView>

 

 

</DetailTables>

 

 

<Columns>

 

 

<telerik:GridTemplateColumn HeaderText="TOOLS">

 

 

<ItemTemplate>

 

 

<asp:ImageButton ID="imgDelete" runat="server" ImageUrl="~/Images/icons/delete.png"

 

 

CommandName="cmdDelete" OnClientClick="return confirm('Are you sure want to delete this item?');"

 

 

Width="16px" Height="16px" />

 

 

<asp:ImageButton ID="imgAdd" runat="server" ImageUrl="~/Images/icons/add_16.gif"

 

 

CommandName="cmdAdd" />

 

 

<asp:ImageButton ID="imgNotes" runat="server" ImageUrl="~/Images/icons/notes.gif"

 

 

CommandName="cmdShowNotes" Width="16px" Height="16px" />

 

 

<asp:ImageButton ID="imgDNotes" runat="server" ImageUrl="~/Images/icons/DeliveryNotes.png"

 

 

CommandName="cmdShowDeliveryNotes" Width="20px" Height="20px" />

 

 

</ItemTemplate>

 

 

<HeaderStyle Width="120px" />

 

 

<ItemStyle Width="120px" />

 

 

</telerik:GridTemplateColumn>

 

 

<telerik:GridTemplateColumn HeaderText="QTY">

 

 

<ItemTemplate>

 

 

<telerik:RadNumericTextBox ID="txtQty" runat="server" MaxLength="4" MaxValue="9999"

 

 

MinValue="0" Text='<%#Bind("Quantity") %>' Width="40px">

 

 

<IncrementSettings InterceptArrowKeys="False" InterceptMouseWheel="False" />

 

 

<NumberFormat AllowRounding="False" DecimalDigits="1" DecimalSeparator="," KeepNotRoundedValue="False" />

 

 

</telerik:RadNumericTextBox>

 

 

</ItemTemplate>

 

 

<HeaderStyle Width="50px" />

 

 

<ItemStyle Width="50px" />

 

 

</telerik:GridTemplateColumn>

 

 

<telerik:GridBoundColumn HeaderText="QA" DataField="QuantityAvailable" Visible="false">

 

 

<HeaderStyle Width="40px"></HeaderStyle>

 

 

<ItemStyle Width="40px"></ItemStyle>

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridTemplateColumn HeaderText="ORD" Visible="false">

 

 

<ItemTemplate>

 

 

<asp:LinkButton ID="lnkQuantityPending" runat="server" Text='<%# Bind("QuantityPending") %>'

 

 

CommandName="cmdShowStockDetails"></asp:LinkButton>

 

 

</ItemTemplate>

 

 

<HeaderStyle Width="40px"></HeaderStyle>

 

 

<ItemStyle Width="40px"></ItemStyle>

 

 

</telerik:GridTemplateColumn>

 

 

<telerik:GridBoundColumn HeaderText="PN" DataField="PartNumber" Visible="false">

 

 

<HeaderStyle Width="50px"></HeaderStyle>

 

 

<ItemStyle Width="50px"></ItemStyle>

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn HeaderText="WHSE" DataField="WarehouseId" Visible="false">

 

 

<HeaderStyle Width="50px"></HeaderStyle>

 

 

<ItemStyle Width="50px"></ItemStyle>

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridTemplateColumn HeaderText="WHSE">

 

 

<ItemTemplate>

 

 

<asp:LinkButton ID="lnkWarehouseId" runat="server" Text='<%# Bind("WarehouseId") %>'

 

 

CommandName="cmdShowPartsInfo"></asp:LinkButton>

 

 

</ItemTemplate>

 

 

<HeaderStyle Width="60px"></HeaderStyle>

 

 

<ItemStyle Width="60px"></ItemStyle>

 

 

</telerik:GridTemplateColumn>

 

 

<telerik:GridTemplateColumn HeaderText="PN">

 

 

<ItemTemplate>

 

 

<asp:LinkButton ID="lnkPartNumber" runat="server" Text='<%# Bind("PartNumber") %>'

 

 

CommandName="cmdShowPartsDetails"></asp:LinkButton>

 

 

</ItemTemplate>

 

 

<HeaderStyle Width="60px"></HeaderStyle>

 

 

<ItemStyle Width="60px"></ItemStyle>

 

 

</telerik:GridTemplateColumn>

 

 

<telerik:GridBoundColumn HeaderText="DESC" DataField="Description">

 

 

<HeaderStyle Width="120px"></HeaderStyle>

 

 

<ItemStyle Width="120px"></ItemStyle>

 

 

</telerik:GridBoundColumn>

 

 

 

 

 

</Columns>

 

 

</MasterTableView>

 

 

<ClientSettings>

 

 

<Scrolling AllowScroll="True" UseStaticHeaders="true" ScrollHeight="133" />

 

 

</ClientSettings>

 

 

<SortingSettings SortToolTip="" />

 

 

<CommandItemStyle BorderColor="White" HorizontalAlign="Right" />

 

 

</telerik:RadGrid>

Any help on this will be greatly appreciated.

 

Pavlina
Telerik team
 answered on 12 Jan 2010
1 answer
66 views
Hi,

When certain html structures are present the editor will insert <p> tags at random spots.

Steps to reproduce


2) go to HTML mode

3) Delete everything and Paste the following html:

<p><strong><h3>1</h3></strong></p> 
<p>&nbsp;</p> 
<p>2</p> 

4) Go back to design mode

5) Go back to HTML mode and note the code

<p><strong></strong></p> 
<strong> 
<h3>1</h3> 
</strong> 
<p></p> 
<p> </p> 
<p>2</p> 


The problem affects at least Chrome and IE. Chrome will only insert 1 additional tag and then stop. If you repeat steps 4 & 5 in IE it will insert an additional <p> each cycle.
Dobromir
Telerik team
 answered on 12 Jan 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?