Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
162 views
Hi :

I got a strange error message about a gridview with combobox in user control issue

we use combobox in user control, then we put the user control in gridview

this is the user control(ASCX) code fragment

<%@ Control Language="C#" AutoEventWireup="true" Codebehind="UC062.ascx.cs" Inherits="VMI.Web.Controls.UC062" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
 
<telerik:RadCodeBlock ID="RCB1" runat="server">
<script type="text/javascript" language="javascript">
       function RadComboBox2_OnClientFocus() {
       }
</script>

<table cellspacing="0" cellpadding="0" border="0">
    <tr>
        <td width="10%">
                <telerik:RadComboBox ID="RadComboBox2" runat="server"
                EnableLoadOnDemand="True"                      
                HighlightTemplatedItems="True"
                ItemRequestTimeout="500"
                AllowCustomText="True"
                NoWrap ="true"
                ShowWhileLoading ="true"
                Height="100%"
                DropDownWidth="180px"
                MarkFirstMatch="True"           
                OnItemDataBound="RadComboBox2_ItemDataBound"  
                OnItemsRequested="RadComboBox2_ItemsRequested"               
                OnClientFocus="RadComboBox2_OnClientFocus" 
                                          
                OnLoad="RadComboBox2_Load" 
                OnSelectedIndexChanged="RadComboBox2_SelectedIndexChanged"
                ShowToggleImage="False"                
                Skin="Inox">               
                             
                </telerik:RadComboBox>
                            
                </td>
   </tr>
</table>

this is ASPX Page code fragment

<asp:GridView ID="dgiPipeLineItem" CssClass="cellPadding" runat="server" AutoGenerateColumns="False"
                        Width="100%" meta:resourcekey="dgiPipeLineItemResource1" BorderWidth="1" BorderColor="#cacaca"
                        OnRowDataBound="dgiPipeLineItem_RowDataBound" OnRowCancelingEdit="dgiPipeLineItem_RowCancelingEdit"
                        OnRowEditing="dgiPipeLineItem_RowEditing" DataKeyNames="ID" OnRowUpdating="dgiPipeLineItem_RowUpdating">
                        <HeaderStyle CssClass="Td_UpdateForm_Field3" />
                        <RowStyle CssClass="table_11" />
                        <AlternatingRowStyle CssClass="table_10" />
                        <Columns>
                            <asp:TemplateField HeaderText="xxx" meta:resourcekey="TemplateFieldResource2">
                                <ItemStyle HorizontalAlign="Left" />
                                <EditItemTemplate>
                                    <uc3:UC062 ID="uc_SupportDeptEdite" runat="server"  OnSelectedIndexChanged="uc_SupportDeptEdite_OnSelectedIndexChanged" />
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="lblSupportDept" runat="server" Text='<%# Eval("SupportDeptName") %>'></asp:Label>
                                </ItemTemplate>
                                <FooterTemplate>
                                    <uc3:UC062 ID="uc_SupportDeptFooter" runat="server" OnSelectedIndexChanged="uc_SupportDeptFooter_OnSelectedIndexChanged" />
                                </FooterTemplate>
                            </asp:TemplateField>
                        </Columns>
                    </asp:GridView>


when the page loaded

we got a java script error in vs2008: Microsoft JScript 執rumtime error: 'RadComboBox2_OnClientFocus' undefined

but we found other server side combobox event is ok. only the client side event (in this example, OnClientFocus event).

Can you help us with this issue?

thanks 

regards
  

Missing User
 answered on 19 Sep 2008
1 answer
158 views
Hello,

I am using RadWindow in modal mode on a website with a RadMenu.
My problem is that when my Modal Windows is open, the RadMenu is still available and the user can click on it.

How can I prevent such a behavior?

Thanks for your help.
Svetlina Anati
Telerik team
 answered on 19 Sep 2008
1 answer
58 views
Hello,

I experience different behavior between IE and Firefox:

http://www.bis.nl/cr/firefox.jpg

http://www.bis.nl/cr/ie.jpg

What do you need from me to assist me with this issue? The code is quite large to past it here...
Dimo
Telerik team
 answered on 19 Sep 2008
1 answer
173 views
Telerik Support,

I have grid with 1 GridTemplateColumn. In that column I define a HeaderTemplate and an ItemTemplate. In ItemTemplate I have 2 tables. 1st table has 2 columns and 2nd table has few columns. I don't want to use the Groupexpression nor Hierarchy grid for the kind of display I want. Now the problem I have is when I do drag and select, I cannot start from anywhere in between, I have to start from the left most edge of the grid and leave the mouse at the right most edge of the grid. I am pasting the code snippet below. Is there a way to overcome this problem ?

<telerik:RadGrid ID="gdDatelist" runat="server" AllowPaging="false" AllowSorting="True"
                            AllowMultiRowSelection="true" PageSize="7" AutoGenerateColumns="False" GridLines="None"
                            Width="100%" Height="450" Skin="My" EnableEmbeddedSkins="false" OnItemDataBound="gdDatelist_ItemDataBound"
                            CellPadding="0" CellSpacing="0" BorderStyle="None" ShowStatusBar="true" StatusBarSettings-LoadingText="Loading..."
                            StatusBarSettings-ReadyText="Done" OnCancelCommand="gdDatelist_CancelCommand">
                            <AlternatingItemStyle Width="100%" BorderStyle="None" />
                            <ItemStyle Width="100%" VerticalAlign="Top" BorderStyle="None" />
                            <ClientSettings>
                                
                                <Selecting EnableDragToSelectRows="true" AllowRowSelect="true" />
                                <Scrolling AllowScroll="true" UseStaticHeaders="true" />
                            </ClientSettings>
                            <PagerStyle Mode="NextPrevNumericAndAdvanced" />
                            <MasterTableView ShowHeader="true" CellPadding="0" CellSpacing="0" BorderWidth="0px">
                               
                                <Columns>
                                    <telerik:GridEditCommandColumn UniqueName="EditCommandColumn" Visible="false">
                                    </telerik:GridEditCommandColumn>
                                    <telerik:GridTemplateColumn HeaderText="Description" UniqueName="TaskNbr" HeaderStyle-HorizontalAlign="Center"  ItemStyle-HorizontalAlign="Center"   ItemStyle-VerticalAlign="Top" >
                                    <HeaderTemplate>
                                        <table width="98%" cellpadding="0" cellspacing="0" style="border:0px">
                                                <tr>
                                                    <th width="10%">&nbsp;</th>
                                                    <th width="5%">Unit</th>
                                                    <th width="10%">Interval</th>
                                                    <th width="10%">CW Value</th>
                                                    <th width="10%">Tolerance</th>
                                                    <th width="10%">NextDate</th>
                                                    <th width="10%">Max Limit</th>
                                                    <th width="10%">Est. Date</th>
                                                    <th width="10%">Remaining</th>
                                                </tr>
                                        </table>
                                    </HeaderTemplate>
                                    <ItemTemplate>
                                        <table width="100%" cellpadding="0" cellspacing="0"  style="border:0px" >
                                            <tr style="background-color:#eeeeee">
                                                <td align="left">
                                                    <asp:Label ID="lblTaskNbr"  Font-Bold="true" runat="server" Text=""></asp:Label>
                                                  
                                                    - <asp:Label ID="lblDescription"  Font-Bold="false" runat="server" Text=""></asp:Label>
                                                    <div style="display:none">
                                                    <asp:TextBox ID="txtEnrtaskId" CssClass="HideLabel" runat="server" Width="0px" Height="0px"></asp:TextBox>
                                                    </div>
                                                </td>
                                            </tr>
                                        </table>
                                        <table width="98%" cellpadding="0" cellspacing="0" style="border:0px">
                                            <tr style="border:0px">
                                                    <td width="10%" valign="top" align="left">
                                                        <asp:Label ID="lblMisc"  Font-Size="7pt" Font-Italic="true" runat="server" Text=""></asp:Label>
                                                        <asp:Label ID="lblOperatorActionFlag" runat="server" Font-Bold="true" Font-Underline="true"
                                                            ForeColor="Blue" CssClass="LabelHover"></asp:Label>
                                                        <telerik:RadToolTip ID="rToolTipOperatorActFlag" runat="server" TargetControlID="lblOperatorActionFlag"
                                                            AutoCloseDelay="9000" Animation="None" RelativeTo="Element" Position="MiddleRight"
                                                            Width="400px" Skin="Web20" Sticky="True">
                                                        </telerik:RadToolTip>
                                                    </td>
                                                    <td width="5%"><asp:Label ID="lblUnit"  Font-Bold="false" runat="server" Text=""></asp:Label></td>
                                                    <td width="10%"><asp:Label ID="lblInterval"  Font-Bold="True" ForeColor="Green"   runat="server" Text=""></asp:Label></td>
                                                    <td width="10%"><asp:Label ID="lblComplianceValue"  Font-Bold="false" runat="server" Text=""></asp:Label></td>
                                                    <td width="10%"><asp:Label ID="lblTolerance"  Font-Bold="false" runat="server" Text=""></asp:Label></td>
                                                    <td width="10%"><asp:Label ID="lblNextDate"  Font-Bold="false" runat="server" Text=""></asp:Label></td>
                                                    <td width="10%"><asp:Label ID="lblMaxLimit"  Font-Bold="false" runat="server" Text=""></asp:Label></td>
                                                    <td width="10%"><asp:Label ID="lblMinEstDate"  Font-Bold="false" runat="server" Text=""></asp:Label></td>
                                                    <td width="10%"><asp:Label ID="lblTimeRemaining"  Font-Bold="false" runat="server" Text=""></asp:Label></td>
                                                </tr>
                                        </table>
                                    </ItemTemplate>
                                </telerik:GridTemplateColumn>
                                </Columns>
                                <EditFormSettings EditFormType="WebUserControl"  FormMainTableStyle-Height="100%" UserControlName="../Controls/StatusTaskDetails.ascx">
                                    <EditColumn UniqueName="TaskEdit">
                                    </EditColumn>
                                </EditFormSettings>
                            </MasterTableView>
                            <SelectedItemStyle BorderStyle="None" />
                        </telerik:RadGrid>



I am binding the grid at runtime in code behind and also using the _ItemDataBound.

Thanks in advance for your help.
Het

Kiara
Top achievements
Rank 1
 answered on 19 Sep 2008
1 answer
125 views

Hi,

I am using RadGrid with a MasterTableView (Orders table) with a DetailTables (OrderDetails Table). In my OrderDetails  i have 19 fields, just a few of them are visibles in the grid but they are all editables in the EditForm.

I have the customer field and the product field that are GridDropDownColumn. But ia have a problem because i have about 10000 customers and 20000 products.  It take a long time to load the page when I want to modify an item in the OrderDetail. Finaly after the page is load,  i have a warning "Stop the execution of this script? A script on this page slows Internet Explorer.
If it continues, your computer may stop responding.  Yes or No."

Is it possible to load on demand those two GridDropDownColumns or maybe is it possible to enter the 1st, 2 first or 3 first characters of the customer number or the product number before loading the corresponding table?

Or is is possible to use a RadComboBox in a FormTemplate.

Thanks

Missing User
 answered on 19 Sep 2008
3 answers
122 views
I'm working on a project containing a rad menu. We need to add dynamic numbers and images above the menu possibly in div's since they will need to overlay the items. Is this possible?
Yana
Telerik team
 answered on 19 Sep 2008
1 answer
246 views
All buttons align except the RadNumericTextBox .  It is higher than the other buttons.  How can I vertically align it with the others?

<rad:RadToolbar runat="server" ID="RadtoolbarSearch" Skin="Outlook" UseFadeEffect="True"

AutoPostBack="True" OnButtonClick="RadtoolbarSearch_OnClick">

<Items>

<

rad:RadToolbarButton Width="120px" >

<ItemTemplate>

<asp:Label ID="la" runat="server" Text="Change All Qty (%):" Font-Size="X-Small"></asp:Label>

</ItemTemplate>

</rad:RadToolbarButton>

<

rad:RadToolbarButton>

<

ItemTemplate>

<

div style="vertical-align: bottom;">

<

rad:RadNumericTextBox ID="txtPct" runat="server" Width="40px" MaxLength="3" MinValue="0" MaxValue="500" NumberFormat-DecimalDigits="0"></rad:RadNumericTextBox>

</

div>

</

ItemTemplate>

</

rad:RadToolbarButton>

<rad:RadToolBarButton Width="75px" ImageUrl="~\Images\SingleMinus.gif" AccessKey="i"

CommandName="down" Text="Decrease" />

<rad:RadToolBarButton Width="75px" ImageUrl="~\Images\SinglePlus.gif" AccessKey="i"

CommandName="up" Text="Increase" />

</Items>

</

rad:RadToolbar>

Missing User
 answered on 19 Sep 2008
1 answer
80 views
Hi,

I have a link in my webform, which when clicked opens a radwindow. There are 2 fields in my radwindow which should be saved in a databse when clicked 'OK'

Any ideas regarding this issues?

Thanks & Regards,
Maran & Murali
Svetlina Anati
Telerik team
 answered on 19 Sep 2008
1 answer
52 views
Why doesn't your RadDock "Edit Title" work?  I've tried with ie6, ie7, Firefox 3, Chrome.  In ie, the textbox never shows up.  In the other browsers, the edit box appears, but the cursor goes away and you cannot enter any text.

The reason I ask is that we rolled out an app with RadDock for ASP.NET, utilizing the TitleBarTemplate of RadDock.  Since upgrading to the latest release, they no longer work.  We are not pleased.

Please advise.
Sophy
Telerik team
 answered on 19 Sep 2008
1 answer
52 views
How do I make some appointments editable but other non-editable? I am building an application where registered users can schedule and edit their own appointments but cannot change others appointments which will just be shown as "Not Available".
Missing User
 answered on 19 Sep 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?