Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
70 views
Here are the steps to reproduce the behavior:
1) Go to one of your demo page: http://demos.telerik.com/aspnet-ajax/editor/examples/xhtmlvalidatortrackchangesformatcodeblockdialogs/defaultcs.aspx
2) Go to Html mode and delete everything. Go back to the design mode.
3) In the design mode, type a word. Double click the word to select. Delete the word.
4) Type another word. Double click to select. Then click the insert link button.
5) Note that the Link Text line is disappeared in the insert link dialog.

See attached screen shot.
Rumen
Telerik team
 answered on 13 Feb 2013
2 answers
65 views
Is it possible to use an image instead of the more... link in month view?
Thanks,
Rimma
Rimma
Top achievements
Rank 1
 answered on 13 Feb 2013
4 answers
544 views
Hi!

I just wanted to know how I can remove all OnClientClicked event handler in javacsript client side.

I know there is a "remove_clicked()" but I must pass the function's name, but I don't know the name, so I want to remove all handler on the Clicked event. Is that possible?

Thanks!
Jocelyn
Top achievements
Rank 1
 answered on 13 Feb 2013
4 answers
60 views
Hi, once I have placed my content inside a splitter pane, when I open the page in IE some elements first show up in a wrong position - somewhat lower that they are supposed to be.  Particularly some image rad buttons and a scheduler.  Then once I hover over them or do an Ajax postback, they all jump back into place.  Everything displays fine in Firefox.  I am seeing this in IE9 but have not tired different IE versions.  Please help!

Thanks a lot,
Rimma
Rimma
Top achievements
Rank 1
 answered on 13 Feb 2013
14 answers
2.7K+ views
hi,

i am using Radgrid in my application. i want to freeze one column in this (like Excel column freeze).

how to do this.

i am having more number of columns in my rad grid, once i have moved ro right the employeeid column becomes invisible.

i want to show it always,what to do?

give me a suggestion.

thanks,
Jay
Top achievements
Rank 2
 answered on 13 Feb 2013
5 answers
558 views
I've configured a RadListBox such that it displays different RadListBoxItems with different background colors depending on various criteria.  That all works fine.

When a RadListBoxItem is single-clicked upon then it currently changes to a blue background color; this is accomplished with the ".rlbSelected" CSS property.  However, users are finding this confusing and would prefer that the original color be preserved.  So instead I would like to change the Border of the SelectedItem to a thicker one.  This is easy to accomplish but unfortunately the background color changes to the default grey.

Keeping in mind that I need to preserve the original background color, how would I accomplish this thickening of the border?

Robert
Kate
Telerik team
 answered on 13 Feb 2013
2 answers
37 views
Hi,

onFileSelected
  • get_row returns the row containing the file input field for the file that was just selected (<LI> element)

<LI></LI> contain selected file info.
How to obtain ID of a LI element containing a selected file info on IE9.
Code below works on FireFox but it doesn't work on IE9.

       function RadAsyncUpload1_FileSelected(sender, args) {
            var row = args.get_row();             var el = $(pRow);             var rowId = el.attr('id'); }

Thank you in advance.
Denius Valiant
Top achievements
Rank 1
 answered on 13 Feb 2013
1 answer
88 views
Hi
     I have set allow filteringbycolumn to true in my radgrid. I also have a gridcheckboxcolumn in my radgrid alongwith some boundcolumns. But I dont want to filter the checkboxcolumn. How can I avoid the specific column filter.
thanks 4 your help

Allen
Princy
Top achievements
Rank 2
 answered on 13 Feb 2013
2 answers
52 views
Hi
how do i get  the value of a column in Edit linkbutton click.


<telerik:GridTemplateColumn DataField="Edit" UniqueName="Edit" SortExpression="Edit"
                                                    HeaderText="Edit">
                                                    <HeaderTemplate>
                                                        Edit</HeaderTemplate>
                                                    <ItemTemplate>
                                                        <asp:LinkButton ID="lbEdit" runat="server" Font-Underline="True" ForeColor="Black"
                                                            Text="Edit" OnClick="OpenPopup"></asp:LinkButton></ItemTemplate>
                                                </telerik:GridTemplateColumn>


OpenPopup() - this is function i have written in code behind and here i wanted to get the  cell text of first cell(Name column)

Thanks
San
                   
San
Top achievements
Rank 1
 answered on 13 Feb 2013
3 answers
773 views
Hi telerik,

I am experiencing strange behavior from  RadComboBox located inside Radgrid's edit form template.
My dropdown is populated with the list of countries.  I defined autopostback="true" and OnSelectedIndexChanged server side event for this dropdown.  
Also, I defined client side onChange event for the same dropdown throught code behind. My client side (javascript) function looks for another dropdown
inside the same edit form template and selects its value based on some logic:  

    function ddlShipToCountry_OnChange(ddlShipToLocationsClientID) {
            setLocationToOTHER(ddlShipToLocationsClientID);
        }

    function setLocationToOTHER(ddlShipToLocationsClientID) {
            var ddlShipToLocations = $find(ddlShipToLocationsClientID);
            if (ddlShipToLocations) {
                var item = ddlShipToLocations.findItemByValue("OTAD|");
                if (item) { item.select(); }
            }
        }

The issue manifests itself, whenever user presses a letter while dropdown list of values is expanded,
the expected behavior is that focus shifts to the first value that starts with such a letter,
however my dropdown instead, does a postback (I guess because client side function has item.select() statement,
and hence resets itself, which I think is not expected behavior.  I expected postback to happen when the value is actually selected from the dropdown,
and I thought that client side function should fire when the selected value actually was changed not when user presses a letter to get to the values that
start with this letter.

Can you please help me and provide any ideas what could be changed in order to make this control work as I expect.
Bellow is the code snapshots:

<%@ Control Language="C#" AutoEventWireup="true" CodeFile="AddlSpecLIShipping.ascx.cs" 
    Inherits="AddlSpecLIShipping" %> 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
<telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy42" runat="server"
    <AjaxSettings> 
        <telerik:AjaxSetting AjaxControlID="RadGrid1"
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting> 
        <telerik:AjaxSetting AjaxControlID="chkShippFullQty"
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="chkShippFullQty"/> 
                <telerik:AjaxUpdatedControl ControlID="pnlLIShippingDetails"/> 
            </UpdatedControls> 
        </telerik:AjaxSetting>         
    </AjaxSettings> 
</telerik:RadAjaxManagerProxy> 
<telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" EnableEmbeddedSkins="false" 
    Skin="AsiSkin" DecoratedControls="CheckBoxes" /> 
     
<telerik:RadScriptBlock ID="rdScriptLIShipping" runat="server"
    <script language="javascript" type="text/javascript"
         function ddlShipToCountry_OnChange(ddlShipToLocationsClientID) { 
            setLocationToOTHER(ddlShipToLocationsClientID); 
        } 
         
         function setLocationToOTHER(ddlShipToLocationsClientID) { 
            var ddlShipToLocations = $find(ddlShipToLocationsClientID); 
            if (ddlShipToLocations) { 
                var item = ddlShipToLocations.findItemByValue("OTAD|"); 
                if (item) { item.select(); } 
            } 
        } 
     </script> 
</telerik:RadScriptBlock>    
 
 <telerik:RadGrid ID="RadGrid1" runat="server" GridLines="None" Width="100%" AllowAutomaticUpdates="false" 
    AllowAutomaticInserts="false" AllowAutomaticDeletes="false" AutoGenerateColumns="False" 
    AllowPaging="true" AllowMultiRowEdit="false" Skin="AsiSkin" CssClass="AsiGreenCommandBar" 
    EnableEmbeddedSkins="False" ShowFooter="true" OnPreRender="RadGrid1_PreRender" 
    PageSize="6" 
    OnNeedDataSource="RadGrid1_OnNeedDataSource" OnItemDataBound="RadGrid1_ItemDataBound" 
    OnInsertCommand="RadGrid1_OnInsertCommand" OnDeleteCommand="RadGrid1_OnDeleteCommand"  
    OnUpdateCommand="RadGrid1_OnUpdateCommand"
    <PagerStyle Mode="NextPrevAndNumeric" AlwaysVisible="true" /> 
     
    <MasterTableView Width="100%" ShowHeadersWhenNoRecords="true" CommandItemDisplay="bottom" 
                EditMode="EditForms" InsertItemDisplay="Top" InsertItemPageIndexAction="ShowItemOnCurrentPage" 
                DataKeyNames="DestinationID"
                 
                <Columns> 
                 ......... 
                 ........ 
                 </Columns> 
                  <EditFormSettings EditFormType="Template"
                    <FormTemplate> 
                     ......... 
                     ......... 
                    <telerik:RadComboBox ID="ddlShipToCountry" runat="server" Skin="AsiSkin" CssClass="AsiRounded" 
                                        EnableEmbeddedSkins="false" AutoPostBack="true" DataTextField="CountryDisplayName" 
                                        DataValueField="Country_CD" OnSelectedIndexChanged="ddlShipToCountry_SelectedIndexChanged" 
                                        Width="220px" Height="100px"
                    </telerik:RadComboBox>  
                    </FormTemplate> 
                </EditFormSettings> 
            <CommandItemSettings AddNewRecordText="Add Another Destination" /> 
    </MasterTableView> 
 </telerik:RadGrid> 
  

And CS code:
    private void SetGridChildControlsClientEvents(GridEditableItem item) 
    { 
         .......... 
         .......... 
         RadComboBox cntrlShipToLocations = base.GetControlFromRadGridEditFormTemplate(item, "ddlShipToLocations"as RadComboBox; 
         RadComboBox cntrlShipToCountry =  base.GetControlFromRadGridEditFormTemplate(item, "ddlShipToCountry"as RadComboBox; 
 
         cntrlShipToCountry.Attributes.Add("OnChange""return ddlShipToCountry_OnChange('" + cntrlShipToLocations.ClientID + "');"); 



Princy
Top achievements
Rank 2
 answered on 13 Feb 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?