Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
113 views
<telerik:RadMultiPage ID="RadMultiPage1" runat="server">   
            <telerik:RadPageView ID="RadPageViewIntro" runat="server" Selected="true">   
                 
<li><asp:Label ID="Label1" runat="server" Text="Due at(time) hours:" AssociatedControlID="lsthh"></asp:Label>   
           <telerik:RadComboBox ID="lsthh" runat="server" AppendDataBoundItems="True"    
                AutoPostBack="True" CausesValidation="False"  
                OnSelectedIndexChanged="lsthh_SelectedIndexChanged" Width="50px"    
                   MaxLength="50">   
                <Items><telerik:RadComboBoxItem Text="Choose One..." Value="0" Selected="True" />   
                <telerik:RadComboBoxItem runat="server" Text="to be allocated" Value="1" /><telerik:RadComboBoxItem runat="server" Text="shared" Value="2" /></Items></telerik:RadComboBox>   
                <asp:RequiredFieldValidator ID="RFV_lsthh" runat="server" ValidationGroup="Visitor" InitialValue="Choose One..." ControlToValidate="lsthh" ErrorMessage="Please enter time in hours of visit">*</asp:RequiredFieldValidator>   
              <b>:</b>     
                <telerik:RadComboBox ID="lstmm" runat="server" AppendDataBoundItems="True"    
                AutoPostBack="True" CausesValidation="False"    
                OnSelectedIndexChanged="lstmm_SelectedIndexChanged" Width="50px">   
                <Items><telerik:RadComboBoxItem Text="Choose One..." Value="0" Selected="True" />   
                <telerik:RadComboBoxItem runat="server" Text="to be allocated" Value="1" /><telerik:RadComboBoxItem runat="server" Text="shared" Value="2" /></Items></telerik:RadComboBox>   
                <asp:RequiredFieldValidator ID="RFV_lstmm" runat="server" ValidationGroup="Visitor" InitialValue="Choose One..." ControlToValidate="lstmm" ErrorMessage="Please enter time in minutes of visit">*</asp:RequiredFieldValidator></li>                   
            </li>      
                 
                    <li><asp:ValidationSummary ID="validationSummary1" runat="server" ValidationGroup="Visitor" />   
                    <asp:Button ID="bnVistors" runat="server" CausesValidation="true" OnClick="bnVisitors_Click"  
            Text="Next" ValidationGroup="Vistor" /></li></ol></telerik:RadPageView>        
The RadComboBox width does not work.I do not want dropdownwidth. I want to change the width.
I have set the width to 50px but it doesnt work.
I tried Radcombobox width property outside <asp:content> and it works fine but not within <asp:content>.
checked few other posts that say width property for RADComboBox doesnt work in container.
I have telerik version Q3 2009.Is it fixed for later version?
Also I want
hh:mm
dropdownlist side to each other. But I cant get it in <li> tag.#
Any help is appreciated.
Kalina
Telerik team
 answered on 09 Jul 2010
7 answers
686 views
I am handling the resizing of columns in my master and detail tables via JavaScript and need to know how to determine if the vertical scroll bar is visible in the grid. 

Sean M. Severson
Veli
Telerik team
 answered on 09 Jul 2010
12 answers
230 views
I've tried this example (http://www.telerik.com/support/kb/article/b454K-ghg-b454T-cbb.aspx) but i have the grid inside a usercontrol, and i can't be able to do it work,  by example a problem is the code in Page_load event , in which event i must to write it?
It would be posible a example?
Thank you in advance.
Maria Ilieva
Telerik team
 answered on 09 Jul 2010
1 answer
147 views
I have a RadGrid and a button that loads the grid based on a search string. I also have paging on the RadGrid. When paging, I am using the RadLoadingPanel. That works fine and the user is given appropriate feedback that a paging activity is occurring and data is being loaded in the grid. I want to also use the loading panel when the user hits the search button, but that causes a JavaScript error as follows: "Microsoft JScript runtime error: 'undefined' is null or not an object".

So, whenever I press the button to submit the search, the loading panel displays the default image for a few seconds and then the error occurs. Is there some sort of timeout involved?

Also, I have all of the controls within an RadAjaxPanel. If that is causing the problem, how do I resolve that without redesigning the whole page?

The markup I use is as follows:

<telerik:RadAjaxManager runat="server" ID="radAjaxManager">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="imgbtnSubmit">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="rgrdInstances" LoadingPanelID="radLoadingPanel" />
            </UpdatedControls>
        </telerik:AjaxSetting>
          
        <telerik:AjaxSetting AjaxControlID="rgrdInstances">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="rgrdInstances" LoadingPanelID="radLoadingPanel" />
                <telerik:AjaxUpdatedControl ControlID="litAlert" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>
Maria Ilieva
Telerik team
 answered on 09 Jul 2010
1 answer
126 views
Hi!
I am trying to put RadEditor to cached webusercontrol and it always fails to start page with some JavaScript errors:

<%@ Control Language="C#" AutoEventWireup="true" CodeFile="EditorTest.ascx.cs" Inherits="EditorTest"    %>
<%@ OutputCache Duration="3600" VaryByParam="none"   %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>           
            <telerik:RadEditor Height="300px" ID="RadEditor1" EnableResize="false"
            style="margin-top: 50px" ToolbarMode="ShowOnFocus" EnableViewState="false"
                runat="server" EditModes="Design">
                <Modules>
                    <telerik:EditorModule Visible="false" />
                </Modules>
                <Tools>
                <telerik:EditorToolGroup>
                        <telerik:EditorTool Name="AjaxSpellCheck" />
                        <telerik:EditorTool Name="FindAndReplace" ShortCut="CTRL+F" />
                        <telerik:EditorTool Name="Cut" />
                        <telerik:EditorTool Name="Copy" ShortCut="CTRL+C" />
                        <telerik:EditorTool Name="Paste" ShortCut="CTRL+V" />
                        <telerik:EditorTool Name="PasteStrip" />
                        <telerik:EditorSeparator />
                        <telerik:EditorTool Name="Undo" ShortCut="CTRL+Z" />
                        <telerik:EditorTool Name="Redo" ShortCut="CTRL+Y" />
                    </telerik:EditorToolGroup>
                    <telerik:EditorToolGroup>
                        <telerik:EditorTool Name="SelectAll" ShortCut="CTRL+A" />
                        <telerik:EditorSeparator />
                        <telerik:EditorTool Name="Bold" ShortCut="CTRL+B" />
                        <telerik:EditorTool Name="Italic" ShortCut="CTRL+I" />
                        <telerik:EditorTool Name="Underline" ShortCut="CTRL+U" />
                        <telerik:EditorTool Name="StrikeThrough" />
                        <telerik:EditorSeparator />
                        <telerik:EditorTool Name="JustifyLeft" />
                        <telerik:EditorTool Name="JustifyCenter" />
                        <telerik:EditorTool Name="JustifyRight" />
                        <telerik:EditorTool Name="JustifyFull" />
                        <telerik:EditorTool Name="JustifyNone" />
                        <telerik:EditorSeparator />
                        <telerik:EditorTool Name="Indent" />
                        <telerik:EditorTool Name="Outdent" />
                        <telerik:EditorSeparator />
                        <telerik:EditorTool Name="InsertOrderedList" />
                        <telerik:EditorTool Name="InsertUnorderedList" />
                        <telerik:EditorTool Name="ToggleTableBorder" />
                    </telerik:EditorToolGroup>
 
                </Tools>
            </telerik:RadEditor>

here is error text in russian: Ошибка выполнения Microsoft JScript: Предполагается наличие объекта
rough translation: Error of running Microsoft JScript:Assumed the existence of the object
What I am doing wrong?
Rumen
Telerik team
 answered on 09 Jul 2010
1 answer
118 views

Hi,

We created a custom skin for RadSlider, but it is not working. We are using sitefinity v.3.7 .  We followed the istructions in the documentations. Do you have an example project or demonstation for how to implement a custom skin for RadSlider.

Thanks in advance..

 

Bozhidar
Telerik team
 answered on 09 Jul 2010
1 answer
99 views
Hi,

I have a multicalendar which shows current, next and previous month. Now I want to hide the overlapping days. How do I hide OtherMonthDay?

Regards,
Marcus
Shinu
Top achievements
Rank 2
 answered on 09 Jul 2010
1 answer
187 views
Hi all, I am having unusual behavior for my radgrid. I update in code-behind using OnUpdateCommand and when I submit the change for that row, it changes ALL rows as if it's looping through all rows and updating all with the change!!

Here is my radgrid code
<telerik:RadGrid 
        ID="VendProdGrid"
        GridLines="None"
        runat="server"
        AllowAutomaticDeletes="True"
        AllowAutomaticInserts="False" 
        AllowAutomaticUpdates="False"
        PageSize="10"
        AllowPaging="True"
        AutoGenerateColumns="False"
        DataSourceID="VendProdGridSource"       
        OnItemUpdated="VendProdGrid_ItemUpdated"
        OnItemDeleted="VendProdGrid_ItemDeleted"
        OnItemInserted="VendProdGrid1_ItemInserted"
        OnItemCommand="VendProdGrid_ItemCommand"
        OnUpdateCommand="VendProdGrid_Update"
         
        OnDataBound="VendProdGrid_DataBound"
        EnableEmbeddedScripts="false">
            <PagerStyle Mode="NextPrevAndNumeric" />
     
        <MasterTableView
            Width="100%"
            CommandItemDisplay="TopAndBottom"
            DataKeyNames="VProductID"
            DataSourceID="VendProdGridSource"
            HorizontalAlign="NotSet"
            AutoGenerateColumns="False">
             
            <Columns>
                 
                <telerik:GridEditCommandColumn ButtonType="ImageButton" />
                                    
                <telerik:GridTemplateColumn  UniqueName="TemplateColumn">
                      <HeaderTemplate>
                        <strong>Product Type</strong>
                      </HeaderTemplate>
                      <ItemTemplate>
                            <strong><%# DataBinder.Eval(Container.DataItem, "VProductType")%></strong><br />
                            <em><%# DataBinder.Eval(Container.DataItem, "VProductDescription")%></em>                               
                      </ItemTemplate>
                </telerik:GridTemplateColumn>
                 
                <telerik:GridBoundColumn DataField="SupplierName" HeaderText="Supplier" SortExpression="SupplierName"
                            UniqueName="SupplierName"></telerik:GridBoundColumn>
                 
                
                 
                <telerik:GridButtonColumn CommandName="Delete" ButtonType="ImageButton" />
                 
            </Columns>
             
            <EditFormSettings EditFormType="Template">
                 
                <EditColumn UniqueName="EditCommandColumn1">
                </EditColumn>
                 
                <FormTemplate>
                    <table cellspacing="2" cellpadding="1" width="100%" border="0">
                        <tr>
                             
                                <td>Supplier:</td>
                                
                               <td>
                               <telerik:RadComboBox
                                        ID="SupplierCB"
                                        runat="server" 
                                        DropDownWidth="300"
                                        DataSourceID="SQLSupplierSource"
                                        DataValueField="SupplierID"
                                        DataTextField="SupplierName"
                                        AppendDataBoundItems="false"
                                        EnableLoadOnDemand="false"
                                        >
                                        
                               </telerik:RadComboBox>  
                                    
                                
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Product Type:
                            </td>
                            <td>
                              <telerik:RadComboBox
                                        ID="VProductTypeCB"
                                        runat="server" 
                                        DropDownWidth="300"
                                        DataSourceID="SQLVendorProductTypeList"
                                        DataValueField="VProductTypeID"
                                        DataTextField="VProductType"
                                         
                                        AppendDataBoundItems="false"
                                        EnableLoadOnDemand="false"
                                        >
                                        
                               </telerik:RadComboBox>
                             
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Description:</td>
                            <td>
                                <asp:textbox
                                    runat="server"
                                    id="VProductDescriptionEdit"
                                    causesvalidation="False"
                                    textmode="MultiLine"
                                    width="300px"
                                    uniqueid="VProductDescriptionEdit"
                                    rows="5"
                                    text='<%# DataBinder.Eval(Container.DataItem, "VProductDescription") %>'
                                    ></asp:textbox>
                             
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Limitations:</td>
                            <td>
                            <asp:textbox
                                    runat="server"
                                    id="VProductLimitationsEdit"
                                    CausesValidation="False"
                                    TextMode="MultiLine"
                                    Width="300px"
                                    UniqueID="VProductLimitationsEdit"
                                    Rows="5"
                                    Text='<%# DataBinder.Eval(Container.DataItem, "VProductLimitations") %>'
                                    ></asp:textbox>
                             
                            </td>
                        </tr>
                        <tr>
                           <td>
                                Reference Standards:</td>
                            <td>
                            <asp:textbox
                                    runat="server"
                                    id="VRefStandardEdit"
                                    CausesValidation="False"
                                    TextMode="MultiLine"
                                    Width="300px"
                                    UniqueID="VRefStandardEdit"
                                    Rows="5"
                                    Text='<%# DataBinder.Eval(Container.DataItem, "VRefStandard") %>'
                                    ></asp:textbox>
                            
                            </td>
                        </tr>
                        
                        <tr>
                            <td colspan="2">
                                <asp:Button ID="Button1" runat="server" Text='<%# (Container is GridEditFormInsertItem) ? "Insert" : "Update" %>'
                                    CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>'></asp:Button>
                                <asp:Button ID="Button2" runat="server" Text="Cancel" CausesValidation="false" CommandName="Cancel"></asp:Button>
                            </td>
                        </tr>
                    </table>
            </FormTemplate>
        </EditFormSettings>
    </MasterTableView>
</telerik:RadGrid>

And here is the codebehind:
protected void VendProdGrid_Update(object source, GridCommandEventArgs e)
    {
 
        if (e.CommandName == RadGrid.UpdateCommandName)
        {
            if (e.Item is GridEditFormItem)
            {
                 
 
                GridEditFormItem item = (GridEditFormItem)e.Item;
                int id = Convert.ToInt32(item.GetDataKeyValue("VProductID"));
                if (id != 0)
                {
 
 
                    RadComboBox SupplierCB = item.FindControl("SupplierCB") as RadComboBox;
                    RadComboBox VProductTypeID = item.FindControl("VProductTypeCB") as RadComboBox;
                    TextBox VProductDescription = item.FindControl("VProductDescriptionEdit") as TextBox;
                    TextBox VProductLimitations = item.FindControl("VProductLimitationsEdit") as TextBox;
                    TextBox VRefStandard = item.FindControl("VRefStandardEdit") as TextBox;
 
                    try
                    {
                        VendProdGridSource.UpdateParameters.Add("SupplierID", TypeCode.Int32, SupplierCB.SelectedValue.ToString());
                        VendProdGridSource.UpdateParameters.Add("VProductTypeID", TypeCode.Int32, VProductTypeID.SelectedValue.ToString());
                        VendProdGridSource.UpdateParameters.Add("VProductDescription", TypeCode.String, VProductDescription.Text);
                        VendProdGridSource.UpdateParameters.Add("VProductLimitations", TypeCode.String, VProductLimitations.Text);
                        VendProdGridSource.UpdateParameters.Add("VRefStandard", TypeCode.String, VRefStandard.Text);
                        VendProdGridSource.Update();
                       //
                        //e.KeepInEditMode = false;
                        //e.ExceptionHandled = true;
 
                        SetMessage("New Product Type " + id + " is updated!");
                    }
                    catch (Exception ex)
                    {
 
                        // e.ExceptionHandled = true;
                        SetMessage("Product Type " + id + " cannot be updated. Reason: " + ex.Message);
                    }
 
                  //  e.Canceled = true;
                    VendProdGrid.Rebind();
                }
            }
        }
    }

Princy
Top achievements
Rank 2
 answered on 09 Jul 2010
1 answer
167 views
I am using RadEditor and I need to insert image and documents. I noticed the popup dialogs are FileBrowser(Correct me if I am wrong, thanks). The default FileBrowser contains FileExplorer and previewer. Now I want to change the behavior to :
1. For image, replace the FileExplorer with my own explorer
2. For document, replace the FileExplorer with my own explorer, and remove the previewer.

I know users can customize dialogs, is it possible to make above changes? and how to do it?

The task is quite urgent, looking forward to your reply. Thanks.
Dobromir
Telerik team
 answered on 09 Jul 2010
3 answers
190 views
Hello,

I am using one of the example grids with the EnableHeaderContextMenu set to true.  I am also saving the grid state to a database as columns are reordered.  I would like to save the grid state to the database both when the user selects or deselects columns via the header context menu and when the user resizes columns.   I can't figure out which events I can use to capture these actions.  Any help would be much appreciated.

Thanks,
Bob 
Maria Ilieva
Telerik team
 answered on 09 Jul 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?