Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
65 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
107 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
165 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
144 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
151 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
62 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
1 answer
131 views
how to avoid a recurrence rule for a particular date for example the recurrence rule is from Jan 1st to Jan 30 but i don't want the recurrence to be visible on some days like 15th Jan and 20 Jan
Peter
Telerik team
 answered on 12 Jan 2010
2 answers
131 views
Is it possible to add a section in the combobox list that shows the recently selected values, apart from displaying the data from db?

I have a search interface where I use the combo - autocomplete for a City field. I plan to save the searches that user does on this field for a few sessions and display them as a seperate section within the dropdown. The dropdown should still display the data from the assigned datasource.
Would this be possible to do?

thanks
-Kalyani
Kalyani Mantripragada
Top achievements
Rank 1
 answered on 12 Jan 2010
1 answer
92 views

When user clicking "view" on the radContextMenu, btn.click(); repeats itself over and over again until it throws an Stack Overflow error.  Can someone please point me a workaround?  Thank you!!

hours ago (permalink)   
 
 
var check = true;     
    
function OnToolBarButtonClicked(sender, args) {      
var selectedRows = $find("<%= rg1.ClientID %>").get_masterTableView().get_selectedItems();     
    
         if (selectedRows.length > 0) {             
                 if (check) {     
                     args.set_cancel(true);     
                 }     
    
                 btn = args.get_item();     
    
                 if (btn.get_commandName() == 'View' && check) {     
    
                        btn.click();     
                        check = false;     
                 }     
                    
         }     
     }     
    
    
     function CallBackFn(args) {     
         if (args == true) {     
                btn.click();     
        
              
        }     
    }     
    
'============ Code Behind ======================================     
    
Public Sub OnMenuPostBackClick(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadMenuEventArgs)     
    
Case "View"     
    
                For Each item In rg1.MasterTableView.Items     
                    If item.Selected = True Then     
    
                        jobNm = item.GetDataKeyValue("JobName").ToString()     
    
    
                    End If     
    
                Next     
    
                   
        End Select     
    
End Sub     
    
'=====================  ASPX ============================     
    
<telerik:RadToolBar ID="RadToolBar1" runat="server" style="display:block; float:none" Skin="Vista" OnClientButtonClicking="OnToolBarButtonClicked"  OnButtonClick="ExecPostBackClick">      
         
        <Items>    
                  
             <telerik:RadToolBarButton runat="server" ImageUrl="style/images/window_view.gif"  CommandName="View" ToolTip="View" />           
        </Items>    
                 
    </telerik:RadToolBar>    
 
Veselin Vasilev
Telerik team
 answered on 12 Jan 2010
1 answer
94 views
Hello,
i am evaluating your TreeView control. In our scenario, the WebService for retrieving the nodes is not reachable from the client only from the server. Can i use the WebService LoadOnDemand in this scenario?

with best regards
Meik Napierski
Veselin Vasilev
Telerik team
 answered on 12 Jan 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?