Telerik Forums
UI for ASP.NET AJAX Forum
13 answers
364 views
Hi telerik community,

I've been working on an interesting issue regarding the RadComboBox and the autocomplete feature. My problem is, when a user copy paste a value in the input field instead of typing it, the OnItemsRequested won't get fired and will cause my page to fail because, in my scenario, I need to get the value associate with the text entry.

Just to make it clear, it works like a charm when the user type his search.

Here's my implementation of the RadComboBox
<telerik:RadComboBox ID="contractNumber" runat="server" Width="165px" Height="150px"
     CssClass="form"
    AllowCustomText="true"
    MarkFirstMatch="true"
    EmptyMessage="Search (5 characters min)*"
    EnableLoadOnDemand="true"
    EnableItemCaching="true"
    IsCaseSensitive="false"
    MinFilterLength="5"
    EnableOverlay="true"
    OnItemsRequested="ContractNumber_ItemRequested"
    DataTextField="Key"
    OnClientBlur=""
    DataValueField="Value">
</telerik:RadComboBox>

Now, this ComboBox is located in a pop-up. When I click my OK button there's some javascript going on
function returnToParent()
{
    //create the argument that will be returned to the parent page
    var oArg = new Object();
 
    if ($find("<%= contractNumber.ClientID %>").get_value())
        oArg.contractNumber = $find("<%= contractNumber.ClientID %>").get_value();
 
    //Close the RadWindow and send the argument to the parent page
    if (oArg.contractNumber)
    {
        var oWnd = GetRadWindow();
        oWnd.close(oArg);
    }
    else
        alert("Please provide a contract number or a system ID");
}

As you can see, if my RadComboBox doesn't fire the ItemRequested event when a user paste some text in it (which is the source of the problem here), the get_value() will always return null, and that's the bad thing.

So how can I get this feature working without having to ask the user to focus-out/focus-in or delete a character and retype it to fire the event.

As always, thanks in advance for your Advises

ND
Hristo Valyavicharski
Telerik team
 answered on 24 May 2013
1 answer
105 views
Hi,

I have a combobox that when it has an item selected I want to go back and select the down arrow and bring up the list of the items in the combobox but keep the selected item until I select a new one. I managed to do it, but I am not sure why it when I first select the combobox dow arrow it brings up only that one item selected and when I click on the down arrow again it does bring up the full list. Please see the attached image to what is goign on. Here is my javascript and aspx:

<telerik:radcombobox ID="cboDocs" runat="server"  MarkFirstMatch="False" EnableAutomaticLoadOnDemand="True" ShowMoreResultsBox="true" EnableVirtualScrolling="true"
                    DataSourceID="ObjDataSourc" Width="200px"  EmptyMessage="Select Document" DataTextField="DocName" 
                    OnClientDropDownOpening="dropDownOpening" ToolTip="Select an existing document type to review."
                    DataValueField="DocID"  ItemsPerRequest="12"  Skin="Office2010Blue" AutoPostBack="true"> 

<
function dropDownOpening(sender, args) {
               if (sender.get_text() != "") {
                   sender.set_text(sender.get_text());
                   sender._filterText = "NotIsEmpty";
                   sender.requestItems("");
                   sender.get_items("");
               }
           }
>
Plamen
Telerik team
 answered on 24 May 2013
3 answers
109 views
Hi. i have a telerik grid like below.

 <telerik:RadGrid Skin="Windows7" ID="grdRubrikOgrencileri" EnableEmbeddedScripts="true" 
                runat="server" Width="84%"  ShowStatusBar="true"  Visible="true" 
                AutoGenerateColumns="False" style = "float:right;" 
                PageSize="1000" AllowSorting="True"
                OnDataBound="grdRubrikOgrencileri_DataBound"
                OnNeedDataSource="grdRubrikOgrencileri_NeedDataSource"
                GridLines="None">
                <PagerStyle Mode="NumericPages"></PagerStyle>
                <MasterTableView Width="100%" DataKeyNames="DegTipIliskiID" ForeColor="Maroon" AllowMultiColumnSorting="True" HierarchyDefaultExpanded="true" CommandItemStyle-HorizontalAlign="Justify" FilterItemStyle-HorizontalAlign="Center">
                <Columns>
                <telerik:GridBoundColumn SortExpression="DegTipIliskiID" HeaderText="DegTipIliskiID"
                            Visible="false" DataField="DegTipIliskiID">
                 </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn SortExpression="DegerlendirmeTipiID" HeaderText="DegerlendirmeTipiID"
                            Visible="false" DataField="DegerlendirmeTipiID">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn SortExpression="DegerlendirmeTipi" HeaderText="DegerlendirmeTipi"
                            DataField="DegerlendirmeTipi">
                        </telerik:GridBoundColumn>
                </Columns>
            </MasterTableView>
       </telerik:RadGrid>

Now, I want to add two detailstables inside to this grid as dynamically.  How can I achieve this? Can someone give me an idea?

I added a photo about what i want to do. If you look at photo, there is a red bordered part. This part must load dynamically. This is what i try to do. 

Thanks in avance.
Eyup
Telerik team
 answered on 24 May 2013
6 answers
883 views
Hi,
I need to set Background Color to RadNumeric Text Box.




Thanks
Princy
Top achievements
Rank 2
 answered on 24 May 2013
3 answers
91 views
I need to inherit from RadGrid and add some markup when it renders - specifically I want to add a header bar (not headers as in columns, headers as in a chunk of markup that renders across the top of the control that contains some hyperlinks for some commands related to the displayed grid contents as a whole). I want to do it through inheritance so that I can have the developers on my team easily add my derived control to dozens of pages that all need the same things hooked up so I can encapsulate it in the derived control class.

How would I go about adding some markup to the rendered markup from the derived control class? For my specific use case I want to add the markup to the stream just before RadGrid starts rendering its content. 

Conceptually, I want to turn something like this:
<div><asp:Hyperlink OnClicked="SomeHandlerInPageCodeBehindWithSameCodeOnEveryPage"/></div>
<telerik:RadGrid>...</telerik:RadGrid>

into:
<my:RadGridEx>...</my:RadGridEx>
Eyup
Telerik team
 answered on 24 May 2013
1 answer
125 views
Dear Sir,

I have a custom control that inherits from asp.net datagrid. Is there any way that I can convert/inherit from radgrid with out breaking the impletmentation as much as possible? I am fine with a 10% additional work on each page. We have numerous (100s) of pages that implements this grid so if we need to touch all the pages it will be a big overhead.

Thanking you for your earliest attention

Suraj
Eyup
Telerik team
 answered on 24 May 2013
1 answer
97 views
We've included the RadScheduler in an iFrame within and MVC application.  Most everything is working fine except that the IE 10 browser, when in IE 10 compatibility mode (not exactly why it's in the mode), the calendar collapses or doesn't display correctly.   Any suggestion would be appreciated.
Genady Sergeev
Telerik team
 answered on 24 May 2013
1 answer
82 views
hi friends, 
i need a solution to bind emails to telerik grid from mail server.
is there any solution for my need...
if anyone have solution, share me..
thanks in advance...
Kostadin
Telerik team
 answered on 24 May 2013
3 answers
337 views
Hello, how can I tie the update button for the radeditor's content to a validation function?  I basically want to ensure that the user doesn't put javascript and/or links to external sites so I want to check the html of the content and throw an error message if any of these things are found.  I couldn't find a validation event and validation group for the radeditor....
Rumen
Telerik team
 answered on 24 May 2013
3 answers
396 views

<telerik:RadGrid>
<telerik:GridTemplateColumn Visible="true" DataField="Signature" HeaderText="Signature"
                    HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" UniqueName="Signature">
                    <ItemTemplate>
                        <telerik:RadBinaryImage ID="RadBinaryImage1" runat="server" DataValue='<%#Eval("Signature") is DBNull ? null : Eval("Signature")%>'
                            AutoAdjustImageControlSize="false" ResizeMode="Fit" Height="50px" Width="120px" />
                    </ItemTemplate>
                    <InsertItemTemplate>
                        <telerik:RadAsyncUpload runat="server" ID="ImgImages2" AllowedFileExtensions=".jpg,.jpeg,.png,.gif"
                            MaxFileInputsCount="1" Skin="Outlook" Width="110px" PostbackTriggers="RbtnReset1"  />
                        <asp:Label ID="lblupload2" runat="server" Visible="true" CssClass="error"></asp:Label>
                    </InsertItemTemplate>
</telerik:GridTemplateColumn>

 <telerik:GridTemplateColumn Visible="true" DataField="chkNumber" HeaderText="Check Number"
                    HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" UniqueName="chkNumber">
                   
                    <ItemTemplate>
                        <%# Eval("chkNumber")%><%--.ToString().PadLeft(4, '0')%>--%>
                    </ItemTemplate>
                    <InsertItemTemplate>
                        <telerik:RadTextBox ID="rdtxtchkNumber1" runat="server" Width="160px" MaxLength="4"
                            onclick="shouldConfirm = true;" Text='<%# Eval("chkNumber") %>'>
                        </telerik:RadTextBox>
                        <telerik:RadButton ID="RbtnReset1" runat="server" Width="40px" CausesValidation="true"
                            Text="Reset" OnClick="RbtnResetCheckNoinInsert_Click" />
                  </InsertItemTemplate>
   </telerik:GridTemplateColumn>


I am upload a Image ,using rad async  upload ..after that I am click on the reset button ,I don't want to loss the  image .how persist the image upload by user up to the user click on insert or update in rad grid.  using post back trigger   at server side code. plz help me.
Kostadin
Telerik team
 answered on 24 May 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?