Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
131 views
Hi,

I noticed that there is a unusual behavior in the Empty message of the RadAutoCompleteBox. This is how you can reproduce this.

1. Click On the Autocompletebox then the empty message will disappear which is fine. 
2. Now press Alt + Shift to change the screens of Windows.
3. Once you reopened the AutoCompleteBox window and click somewhere else just press Tab, Empty Message text will be selected as AutoCompleBox value.

This seems to be an issue. Please advice.

Thanks.
Chirantha
Top achievements
Rank 1
 asked on 04 Jan 2013
1 answer
192 views
HI,
In my application i m using setfocus method to have focus on a control.
its working fine in IE8 but in IE9 its giving error 404: webform_autofocus is undefined.


have added following keys in web config:
 <system.web>
 <httpHandlers>
           <add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" validate="false" />

 </httpHandlers>
</system.web>


 <system.webServer>
<handlers>
 <add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" />
 </handlers>
 </system.webServer>
Vasil
Telerik team
 answered on 04 Jan 2013
1 answer
77 views
hii,
how to show  mask only on focus of the radmaskedtextbox?
Shinu
Top achievements
Rank 2
 answered on 04 Jan 2013
1 answer
425 views
Hi,
How can i set text to a radtextbox from javascript?
Princy
Top achievements
Rank 2
 answered on 04 Jan 2013
1 answer
77 views
Hi ,Am getting this error,
SCRIPT5007: Unable to get value of the property 'get_element': object is null or undefined
Events.aspx, line 196 character 17 and am getting error in dock.get_width() error is undefined
this is my script.

            function openForm() {
                var dock = $find("ctl00_ContentPlaceHolder1_RadDock1");
                // Center the RadDock on the screen
                var viewPort = $telerik.getViewPortSize();
                 var viewPort = $telerik.getViewPortSize();
                var xPos = Math.round((viewPort.width - parseInt(dock.get_width())) / 2);
                var yPos = Math.round((viewPort.height - parseInt(dock.get_height())) / 2);
                $telerik.setLocation(dock.get_element(), { x: xPos, y: yPos });


                dock.set_closed(false);

                var descriptionTextBox = $get('ctl00_ContentPlaceHolder1_RadDock1_C_DescriptionText');
                descriptionTextBox.focus();

                Sys.Application.remove_load(openForm);
            }

Dobromir
Telerik team
 answered on 04 Jan 2013
2 answers
100 views
I have a rotator that scrolls horizontal and is set up to display a schedule for a certain week.  How can I set it up to not scroll if the current week greater than a week i determain?  I'm using vb.net
Princy
Top achievements
Rank 2
 answered on 04 Jan 2013
2 answers
233 views
Hi All,

I have an existing web user control which uses the ordinary drop-down boxes and they are created at client side. Now I want to replace the ordinary dropdown controls with the Radcombobox. But I can't get it done since RadComboBox control need the runat=server attribute.
So what I need is to create the RadComboBox controls dynamically from javascripts. I saw samples that create RadComboBoxItem at client side, but none for control itself creation. Is this possible?

Thanks,
Chinthana
Royal
Top achievements
Rank 1
 answered on 04 Jan 2013
2 answers
104 views
Hi,
I'm new to teleriks.Anyway i want to validate textboxes in edit form.I want to use some regular expression also.How can i do this?
Is there any place to add egular expressions?.Please help me to solve this isssues.
Trs
Top achievements
Rank 1
 answered on 04 Jan 2013
8 answers
1.5K+ views
Radcombobox change java script not fired,
how i achieve this one



RadComboBox DedSer1 = (RadComboBox)e.Item.FindControl("DedSer1");
 
DedSer1.Attributes.Add("onChange", string.Format("CalculationAmount('{0}','{1}','{2}','{3}','{4}','{5}','{6}');", InvFinalamount.ClientID, DedValue.ClientID, DedInvoiceMinus.ClientID, GetValueSev.ClientID, GstInvoice.ClientID, InvoiceType.ClientID, DedSer1.ClientID));


Thanks Advance,
Mohamed.
mohamed
Top achievements
Rank 1
 answered on 04 Jan 2013
2 answers
71 views
Good afternoon,

I have a grid with the following layout:

<telerik:RadGrid ID="o_Results" runat="server" Width="938px" AllowMultiRowSelection="True" EnableViewState="True">
    <ClientSettings>
        <ClientEvents OnRowDeselected="SelectionChanged" OnRowSelected="SelectionChanged" />
        <Scrolling AllowScroll="True" UseStaticHeaders="True" ScrollHeight="144px" />
        <Selecting AllowRowSelect="True" />
    </ClientSettings>
    <MasterTableView DataKeyNames="cod_GUID,mov_GUID" AutoGenerateColumns="false">
        <Columns>
            <telerik:GridBoundColumn DataField="cod_GUID" Visible="False" HeaderText="CashOnDeliveryID" UniqueName="CashOnDeliveryID"></telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="mov_GUID" Visible="False" HeaderText="MovementID" UniqueName="MovementID"></telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="str_CodCompany" Visible="True" HeaderText="Azienda">
                <HeaderStyle Width="80px" />
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="car_Code" Visible="True" HeaderText="Corriere">
                <HeaderStyle Width="80px" />
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="mov_RunningNumber" Visible="True" HeaderText="TV2">
                <HeaderStyle Width="50px" />
                <ItemStyle HorizontalAlign="Right" />
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="str_MoveNumber" Visible="True" HeaderText="DDT">
                <HeaderStyle Width="50px" />
                <ItemStyle HorizontalAlign="Right" />
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="dte_InsertDate" Visible="True" HeaderText="Data DDT" DataFormatString="{0:dd/MM/yyy HH:mm}" DataType="System.DateTime">
                <HeaderStyle Width="100px" />
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="cod_Amount" Visible="True" HeaderText="Valore" DataFormatString="{0:C2}" DataType="System.Double" UniqueName="CashOnDeliveryAmount">
                <HeaderStyle Width="60px" />
                <ItemStyle HorizontalAlign="Right" />
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="mov_SimpleAddress" Visible="True" HeaderText="Indirizzo"></telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="ch8_CallCode" Visible="True" HeaderText="DDT">
                <HeaderStyle Width="60px" />
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="cos_Code" Visible="True" HeaderText="CoD">
                <HeaderStyle Width="60px" />
            </telerik:GridBoundColumn>
        </Columns>
        <EditFormSettings>
            <EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>
        </EditFormSettings>
    </MasterTableView>
    <FilterMenu EnableImageSprites="False"></FilterMenu>
</telerik:RadGrid>

and then the following JavaScript

<script type="text/javascript" id="telerikClientEvents1">
    //<![CDATA[
 
    function SelectionChanged(sender, args) {
        var grid = $telerik.findGrid("<%= o_Results.ClientID %>");
        grid = $telerik.toGrid(grid);
        var masterTable = grid.get_masterTableView();
        var selectedRows = masterTable.get_selectedItems();
        for (var i = 0; i < selectedRows.length; i++) {
            var row = selectedRows[i];
            // var rowIndex = row.get_itemIndexHierarchical();
            // console.log("get_itemIndexHierarchical() = " + index);
            var amount = row.get_dataItem("CashOnDeliveryAmount");
            console.log(amount);
        }
    }
    //]]>
</script>

Everything works fine !
However, when I try to obtain the value of "CashOnDeliveryAmount" ( UniqueName ) or "cod_Amount" ( DataField ) I always get "null".

What I am trying to do is to create a total based on the selectedRows that is displayed somewhere else on the page.
I seem not to be able to find anything similar in the examples or in the forums ( which obviously does not mean that there isn't ).

Any help would be appreciated.

SR
Shinu
Top achievements
Rank 2
 answered on 04 Jan 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?