Telerik Forums
UI for ASP.NET AJAX Forum
9 answers
116 views
Editor-Document Manager: right to left support in IE 8,9, 10

Open the document manager and select on of the files.
Then you can notice in the file description, that there is a big space between the labels and the text-boxes.

*See the attached screenshot.

Thanks
Ianko
Telerik team
 answered on 24 Jul 2013
3 answers
138 views
I have been tasked with a portion of a product in which I think I have a solution but need a little assistance with the code design. I will describe the architecture and if you could provide some sample code in your reply that would be great. We do have the 2013 RAD AJAX Controls.

What I want to do is have a RadGrid work as a repeater control and have each row contain a RadEditor. Now, the grid will start with one empty row displayed which will allow for text to be entered. So far so good. Now, as soon as the user pastes an image, below the text, into the editor control I want a small radwindow popup to display (or hidden panel with the radio buttons on it as part of the row display) with a radio button list so the user can select the kind of image (i.e. House, Car, Boat) that was pasted in the that row's editor. After the user selects the kind of image and closes the radwindow then a new row should be inserted into the radgrid below the previously inputted row. After this new row with a fresh radeditor is displayed the user just repeats the process typing in text until the next image is pasted below the text and at that point it just repeats, a radwindow opens (or hidden panel part of the row), they select the kind of image (i.e. House, Car, Boat), then close the radwindow and have a new grid row display again. Like I stated, it may be better to have a hidden panel with radio buttons display and not have a pop up radwindow display. This is the part I am unsure of and maybe you can help me decide here as well. 

Also, at some point I will have to allow for rows to be deleted or inserted.

Can you guy's give me a simple code sample that will allow me to do this. This customer represents a big contract.

Thanks,

Steve Holdorf
lovehans@nc.rr.com
holdorfs.ctr@jdi.socom.mil
Antonio Stoilkov
Telerik team
 answered on 24 Jul 2013
1 answer
88 views
Hi,


We are using Rad control Version Q2,2013.We have noticed that there are no option available in filtering option for Numeric columns to find out TOP10/TOPn columns and BOTTOM10/BOTTOMn columns.

This will be very helpful. We hope that this will be implemented in next version of Telerik controls.


Thanks

Rajib
Maria Ilieva
Telerik team
 answered on 24 Jul 2013
7 answers
373 views
Hi,

I am looking for a way to cancel the ItemCreated and ItemDatabound event in case of exception.

The situation is as follows; I use these events to create a dynamic edit form from code behind when the user issues a grid EditCommand and to fill e. g. Comboboxes from data sources. In case of an exception I want to be able to intercept/undo the process of the edit form creation and revert the grid back to normal display mode.

As ItemCreated and ItemDatabound do not use e.Canceled I look for a different way of doing this.

Thank you

Nic
Soeren
Top achievements
Rank 1
 answered on 24 Jul 2013
3 answers
231 views
I have a page that contains a RadGrid.  One of the columns contains a hyperlink in an edit template as so:

    <telerik:GridTemplateColumn HeaderText="Asset Name" FilterControlAltText="FilterAssetName">
        <ItemTemplate>
            <asp:HyperLink ID="hplEditAsset" runat="server" ForeColor="Blue" AutoPostBackOnFilter="true"></asp:HyperLink>
        </ItemTemplate>
    </telerik:GridTemplateColumn>

I'm loading the data through a webservice, so I'd like to bind data to the grid on the client side. I'm trying to access the hyperlink in a javascript function as follows:

    function gridRowBound(sender, args) {
       var row = args.get_item()
       var link = $telerik.findElement(row , 'hplEditAsset');
       var d = args.get_dataItem();

       link.innerHtml = d.Url;
       link.outerHtml = d.UrlDescription; 
    } 

The data being bound to the grid is in the form of List<MyDataRow>, and MyDataRow has properties named Url and UrlDescription.

When I run the code, row is set to "tr#ctl00_MainContent_QuickScanGrid_ctl00__0.rgRow" according to Firebug. However, the script fails on the next line and link is never set.

How do I access that element so that I can bind the hyperlink to the data on the client side?
Steven
Top achievements
Rank 1
 answered on 24 Jul 2013
3 answers
255 views
Hi,
I am trying to find my RadTabStrip client side and then work with it in javascript. But when I use the $find() method, it just returns null. 

Here's something like what I'm doing:
function tabStripManipulation{
    var tabStrip = $find('<%= this.myTabStrip.ClientID%>');
    if (!tabStrip) {
        return;
    }
    var tab = tabStrip.findTabByText("Document");
    // do more stuff here....
    ...
}

Whenever the method checks to make sure that tabStrip is not null, it fails and returns.

What am I missing here?
Shinu
Top achievements
Rank 2
 answered on 24 Jul 2013
1 answer
113 views
Good Day 

i have exactly the same problem specified here  http://www.sitefinity.com/developer-network/forums/general-discussions-/ajaxcontroltoolkit-javascript-resource-not-including-after-4-1-upgrade 

I have attached my example code 

Example Project

how can i resolve this ? 
Maria Ilieva
Telerik team
 answered on 24 Jul 2013
1 answer
78 views
We are using a custom skin in our application. I want to show indicators on dragging of tab to new position to reorder.

If i use telerik skin "Silk" by default indicators are visible. How to implement this in  custom skin scenerio. 
Please see the attached image.

 <telerik:RadTabStrip runat="server" ID="tbTabs"   Align="Left"   EnableDragToReorder= "true" Skin="customSkin"  EnableEmbeddedSkins="false" />
Magdalena
Telerik team
 answered on 24 Jul 2013
1 answer
91 views
i need the button insert external vídeo with the other default buttons also,
so i put the toolname in the toolsfile.xml then when the rad editor loads i got a js error saying access denied, if i make it by code directly it resets the toolbar buttons
Rumen
Telerik team
 answered on 24 Jul 2013
1 answer
109 views
This is the code anyone please help us in resolving this issue ASAP

<div class="buttonsSection">
            <asp:Button ID="btnExpand" runat="server" CssClass="buttons expandImg" Text="Expand All"
                CausesValidation="false"  OnClientClick="RemoveItem();"/>
            <asp:Button ID="btnCollpase" runat="server" CssClass="buttons collapseImg" Text="Collapse All"
                CausesValidation="false" OnClick="btnCollpase_Click" />
        </div>
        <telerik:RadPanelBar runat="server" ID="RadPanelBar1" CssClass="accordionStyle">
            <Items>
                <telerik:RadPanelItem Text="CR SOW - Basic Details:-" >
                    <Items>
                        <telerik:RadPanelItem>
                            <ItemTemplate>
                                <div class="dvLeftSowR">
                                    <asp:Label ID="lblSowTCRSoW" runat="server" Text="CR SoW #:" CssClass="bold sowCRspans"></asp:Label>
                                    <asp:DropDownList ID="ddlSowTCRSoW" runat="server" CssClass="ddlSowR">
                                        <asp:ListItem Value="" Text="Select CR SOW" />
                                        <asp:ListItem>CT-BT-154</asp:ListItem>
                                        <asp:ListItem>CT-BT-154</asp:ListItem>
                                        <asp:ListItem>CT-BT-154</asp:ListItem>
                                    </asp:DropDownList>
                                    <div>
                                        <asp:RequiredFieldValidator ID="rfvSowTCRSoW" runat="server" Display="Dynamic" ControlToValidate="ddlSowTCRSoW"
                                            ValidationGroup="valgroup" ErrorMessage="Select CR SOW" CssClass="errorMsg"></asp:RequiredFieldValidator>
                                    </div>
                                    <asp:Label ID="lblSowTCRSubDate" runat="server" Text="CR Submission Date:" CssClass="bold sowCRspans"></asp:Label>
                                    <telerik:RadDatePicker ID="raddpSowTCRSoW" runat="server" CssClass="crSubDate" Culture="English (United States)">
                                        <DateInput DateFormat="dd-MMM-yyyy" DisplayDateFormat="dd-MMM-yyyy" runat="server">
                                        </DateInput>
                                    </telerik:RadDatePicker>
                                    <div>
                                        <asp:RequiredFieldValidator ID="rfvdpSowTCRSoW" runat="server" Display="Dynamic"
                                            ValidationGroup="valgroup" ControlToValidate="raddpSowTCRSoW" CssClass="errorMsg"
                                            ErrorMessage="Select CR Submission Date"></asp:RequiredFieldValidator>
                                    </div>
                                </div>
                                <div class="dvSowRRight">
                                    <asp:Label ID="lblSowTCRContract" runat="server" Text="CR eSourcing Contract #:"
                                        CssClass="bold sowCRspans"></asp:Label>
                                    <asp:DropDownList ID="ddlSowTCRContract" runat="server" CssClass="ddlSowR">
                                        <asp:ListItem Value="" Text="Select CR eSourcing Contract" />
                                        <asp:ListItem>CT-BT-154</asp:ListItem>
                                        <asp:ListItem>CT-BT-154</asp:ListItem>
                                        <asp:ListItem>CT-BT-154</asp:ListItem>
                                    </asp:DropDownList>
                                    <div>
                                        <asp:RequiredFieldValidator ID="rfvSowTCRContract" runat="server" Display="Dynamic"
                                            ValidationGroup="valgroup" ControlToValidate="ddlSowTCRContract" CssClass="errorMsg"
                                            ErrorMessage="Select CR eSourcing Contract"></asp:RequiredFieldValidator>
                                    </div>
                                    <asp:Label ID="lblSowTReasonsforChange" runat="server" Text="Reasons for Change:"
                                        CssClass="bold sowCRspans"></asp:Label>
                                    <asp:TextBox ID="txtSowTReasonsforChange" runat="server" TextMode="MultiLine" CssClass="crSowTextArea"></asp:TextBox><br />
                                    <div>
                                        <asp:RequiredFieldValidator ID="rfvSowTReasonsforChange" runat="server" ErrorMessage="Enter Reasons for Change"
                                            ValidationGroup="valgroup" CssClass="errorMsg" ControlToValidate="txtSowTReasonsforChange"></asp:RequiredFieldValidator>
                                        <asp:RegularExpressionValidator ID="revSowTReasonsforChange" runat="server" ControlToValidate="txtSowTReasonsforChange"
                                            ValidationGroup="valgroup" Display="Dynamic" CssClass="errorMsg" ErrorMessage="Enter 500 characters only"
                                            ValidationExpression=".{1,500}"></asp:RegularExpressionValidator>
                                    </div>
                                </div>
                                <br />
                            </ItemTemplate>
                        </telerik:RadPanelItem>
                    </Items>
                </telerik:RadPanelItem>
                <telerik:RadPanelItem Text="Schedule &amp; Pricing:-">
                    <Items>
                        <telerik:RadPanelItem>
                            <ItemTemplate>
                                <div class="dvLeftSowR">
                                    <asp:Label ID="lblSowRateType" runat="server" Text="CR SoW Rata Type:" CssClass="bold sowCRspans"></asp:Label>
                                    <telerik:RadComboBox runat="server" ID="radcbCRSoWRateType" MarkFirstMatch="true"
                                        Filter="Contains">
                                    </telerik:RadComboBox>
                                    <div>
                                        <asp:RequiredFieldValidator ID="rfvSowTRateType" runat="server" Display="Dynamic"
                                            ValidationGroup="valgroup" ControlToValidate="radcbCRSoWRateType" CssClass="errorMsg"
                                            ErrorMessage="Enter CR SoW RateType"></asp:RequiredFieldValidator>
                                        <asp:RegularExpressionValidator ID="revSowTRateType" runat="server" ControlToValidate="radcbCRSoWRateType"
                                            Display="Dynamic" CssClass="errorMsg" ErrorMessage="Enter 15 characters only"
                                            ValidationGroup="valgroup" ValidationExpression=".{1,15}"></asp:RegularExpressionValidator>
                                    </div>
                                    <asp:Label ID="lblSowTChageReqStartDate" runat="server" Text="SoW Change Request Start Date:"
                                        CssClass="bold sowCRspans"></asp:Label>
                                    <telerik:RadDatePicker ID="raddpSowTChangeReqStartDate" runat="server" Culture="English (United States)">
                                        <DateInput ID="DateInput1" DateFormat="dd-MMM-yyyy" DisplayDateFormat="dd-MMM-yyyy"
                                            runat="server">
                                        </DateInput>
                                    </telerik:RadDatePicker>
                                    <div>
                                        <asp:RequiredFieldValidator ID="rfvdpSowTChangeReqStartDate" runat="server" Display="Dynamic"
                                            ValidationGroup="valgroup" ControlToValidate="raddpSowTChangeReqStartDate" CssClass="errorMsg"
                                            ErrorMessage="Select Start Date"></asp:RequiredFieldValidator>
                                    </div>
                                    <asp:Label ID="lblSowTCROnshore" runat="server" Text="# of Resources after CR-onshore:"
                                        CssClass="bold sowCRspans"></asp:Label>
                                    <asp:TextBox ID="txtSowTCROnshore" runat="server"></asp:TextBox>
                                    <div>
                                        <asp:RequiredFieldValidator ID="rfvSowTCROnshore" runat="server" Display="Dynamic"
                                            ValidationGroup="valgroup" ControlToValidate="txtSowTCROnshore" CssClass="errorMsg"
                                            ErrorMessage="Enter # of Resources after CR-onshore"></asp:RequiredFieldValidator>
                                        <asp:RegularExpressionValidator ID="revSowTCROnshore" runat="server" ControlToValidate="txtSowTCROnshore"
                                            ValidationGroup="valgroup" Display="Dynamic" CssClass="errorMsg" ErrorMessage="Enter 5 digits only"
                                            ValidationExpression="[0-9]{1,5}"></asp:RegularExpressionValidator>
                                    </div>
                                    <asp:Label ID="lblSowTAdjustedPerCR" runat="server" Text="Total Adjusted per CR:"
                                        CssClass="bold sowCRspans"></asp:Label>
                                    <asp:TextBox ID="txtSowTAdjustedPerCR" runat="server"></asp:TextBox>
                                    <div>
                                        <asp:RequiredFieldValidator ID="rfvSowTAdjustedPerCR" runat="server" Display="Dynamic"
                                            ValidationGroup="valgroup" ControlToValidate="txtSowTAdjustedPerCR" CssClass="errorMsg"
                                            ErrorMessage="Enter Total Adjusted per CR"></asp:RequiredFieldValidator>
                                        <asp:RegularExpressionValidator ID="revSowTAdjustedPerCR" runat="server" ControlToValidate="txtSowTAdjustedPerCR"
                                            ValidationGroup="valgroup" Display="Dynamic" CssClass="errorMsg" ErrorMessage="Enter 20 numeric upto 2 decimal"
                                            ValidationExpression="[0-9]{1,20}\.{1}[0-9]{1,2}|[0-9]{1,20}"></asp:RegularExpressionValidator>
                                    </div>
                                    <asp:Label ID="lblSowTAmountChangeReq" runat="server" Text="T&E Amount per Change Request:"
                                        CssClass="bold sowCRspans"></asp:Label>
                                    <asp:TextBox ID="txtSowTAmountChangeReq" runat="server"></asp:TextBox>
                                    <div>
                                        <asp:RequiredFieldValidator ID="rfvSowTAmountChangeReq" runat="server" Display="Dynamic"
                                            ValidationGroup="valgroup" ControlToValidate="txtSowTAmountChangeReq" CssClass="errorMsg"
                                            ErrorMessage="Enter T&E Amount per Change Request"></asp:RequiredFieldValidator>
                                        <asp:RegularExpressionValidator ID="revSowTAmountChangeReq" runat="server" ControlToValidate="txtSowTAmountChangeReq"
                                            ValidationGroup="valgroup" Display="Dynamic" CssClass="errorMsg" ErrorMessage="Enter 20 numeric upto 2 decimal"
                                            ValidationExpression="[0-9]{1,20}\.{1}[0-9]{1,2}|[0-9]{1,20}"></asp:RegularExpressionValidator>
                                    </div>
                                    <asp:Label ID="lblSowTAmountCorrectedAfterCR" runat="server" Text="Total Corrected Amount after CR:"
                                        CssClass="bold sowCRspans"></asp:Label>
                                    <asp:TextBox ID="txtAmountCorrectedAfterCR" runat="server"></asp:TextBox>
                                    <div>
                                        <asp:RequiredFieldValidator ID="rfvAmountCorrectedAfterCR" runat="server" Display="Dynamic"
                                            ValidationGroup="valgroup" ControlToValidate="txtAmountCorrectedAfterCR" CssClass="errorMsg"
                                            ErrorMessage="Enter Total Corrected Amount after CR"></asp:RequiredFieldValidator>
                                        <asp:RegularExpressionValidator ID="revAmountCorrectedAfterCR" runat="server" ControlToValidate="txtAmountCorrectedAfterCR"
                                            ValidationGroup="valgroup" Display="Dynamic" CssClass="errorMsg" ErrorMessage="Enter 20 numeric upto 2 decimal"
                                            ValidationExpression="[0-9]{1,20}\.{1}[0-9]{1,2}|[0-9]{1,20}"></asp:RegularExpressionValidator>
                                    </div>
                                </div>
                                <div class="dvSowRRight">
                                    <br />
                                    <asp:Label ID="lblSowTChageReqEndDate" runat="server" Text="SoW Change Request End Date:"
                                        CssClass="bold sowCRspans"></asp:Label>
                                    <telerik:RadDatePicker ID="raddpSowTChangeReqEndDate" runat="server" Culture="English (United States)">
                                        <DateInput ID="DateInput2" DateFormat="dd-MMM-yyyy" DisplayDateFormat="dd-MMM-yyyy"
                                            runat="server">
                                        </DateInput>
                                    </telerik:RadDatePicker>
                                    <div>
                                        <asp:RequiredFieldValidator ID="rfvdpSowTChangeReqEndDate" runat="server" Display="Dynamic"
                                            ValidationGroup="valgroup" ControlToValidate="raddpSowTChangeReqEndDate" CssClass="errorMsg"
                                            ErrorMessage="Select End Date"></asp:RequiredFieldValidator>
                                    </div>
                                    <asp:Label ID="lblSowTCROffshore" runat="server" Text="# of Resources after CR-offshore:"
                                        CssClass="bold sowCRspans"></asp:Label>
                                    <asp:TextBox ID="txtSowTCROffshore" runat="server"></asp:TextBox><br />
                                    <div>
                                        <asp:RequiredFieldValidator ID="rfvSowTCROffshore" runat="server" Display="Dynamic"
                                            ValidationGroup="valgroup" ControlToValidate="txtSowTCROffshore" CssClass="errorMsg"
                                            ErrorMessage="Enter # of Resources after CR-offshore"></asp:RequiredFieldValidator>
                                        <asp:RegularExpressionValidator ID="revSowTCROffshore" runat="server" ControlToValidate="txtSowTCROffshore"
                                            ValidationGroup="valgroup" Display="Dynamic" CssClass="errorMsg" ErrorMessage="Enter 5 digits only"
                                            ValidationExpression="[0-9]{1,5}"></asp:RegularExpressionValidator>
                                    </div>
                                    <asp:Label ID="lblSowTAdjustedPerCRinUSD" runat="server" Text="Total Adjusted per CR in USD:"
                                        CssClass="bold sowCRspans"></asp:Label>
                                    <asp:TextBox ID="txtSowTAdjustedPerCRinUSD" runat="server"></asp:TextBox>
                                    <div>
                                        <asp:RequiredFieldValidator ID="rfvSowTAdjustedPerCRinUSD" runat="server" Display="Dynamic"
                                            ValidationGroup="valgroup" ControlToValidate="txtSowTAdjustedPerCRinUSD" CssClass="errorMsg"
                                            ErrorMessage="Enter Total Adjusted per CR in USD"></asp:RequiredFieldValidator>
                                        <asp:RegularExpressionValidator ID="revSowTAdjustedPerCRinUSD" runat="server" ControlToValidate="txtSowTAdjustedPerCRinUSD"
                                            ValidationGroup="valgroup" Display="Dynamic" CssClass="errorMsg" ErrorMessage="Enter 20 numeric upto 2 decimal"
                                            ValidationExpression="[0-9]{1,20}\.{1}[0-9]{1,2}|[0-9]{1,20}"></asp:RegularExpressionValidator>
                                    </div>
                                    <asp:Label ID="lblSowTAmountChangeReqinUSD" runat="server" Text="T&E Amount per Change Request in USD:"
                                        CssClass="bold sowCRspans"></asp:Label>
                                    <asp:TextBox ID="txtSowTAmountChangeReqinUSD" runat="server"></asp:TextBox>
                                    <div>
                                        <asp:RequiredFieldValidator ID="rfvSowTAmountChangeReqinUSD" runat="server" Display="Dynamic"
                                            ValidationGroup="valgroup" ControlToValidate="txtSowTAmountChangeReqinUSD" CssClass="errorMsg"
                                            ErrorMessage="Enter T&E Amount per Change Request in USD"></asp:RequiredFieldValidator>
                                        <asp:RegularExpressionValidator ID="revSowTAmountChangeReqinUSD" runat="server" ControlToValidate="txtSowTAmountChangeReqinUSD"
                                            ValidationGroup="valgroup" Display="Dynamic" ErrorMessage="Enter 20 numeric upto 2 decimal"
                                            CssClass="errorMsg" ValidationExpression="[0-9]{1,20}\.{1}[0-9]{1,2}|[0-9]{1,20}"></asp:RegularExpressionValidator>
                                    </div>
                                    <asp:Label ID="lblSowTAmountCorrectedAfterCRinUSD" runat="server" Text="Total Corrected Amount after CR in USD:"
                                        CssClass="bold sowCRspans"></asp:Label>
                                    <asp:TextBox ID="txtAmountCorrectedAfterCRinUSD" runat="server"></asp:TextBox>
                                    <div>
                                        <asp:RequiredFieldValidator ID="rfvAmountCorrectedAfterCRinUSD" runat="server" Display="Dynamic"
                                            ValidationGroup="valgroup" ControlToValidate="txtAmountCorrectedAfterCRinUSD"
                                            CssClass="errorMsg" ErrorMessage="Enter Total Corrected Amount after CR in USD"></asp:RequiredFieldValidator>
                                        <asp:RegularExpressionValidator ID="revAmountCorrectedAfterCRinUSD" CssClass="errorMsg"
                                            runat="server" ControlToValidate="txtAmountCorrectedAfterCRinUSD" Display="Dynamic"
                                            ValidationGroup="valgroup" ErrorMessage="Enter 20 numeric upto 2 decimal" ValidationExpression="[0-9]{1,20}\.{1}[0-9]{1,2}|[0-9]{1,20}"></asp:RegularExpressionValidator>
                                    </div>
                                </div>
                                <br />
                            </ItemTemplate>
                        </telerik:RadPanelItem>
                    </Items>
                </telerik:RadPanelItem>
            </Items>
        </telerik:RadPanelBar>




    protected void btnExpand_Click(object sender, EventArgs e)
    {
        foreach (Telerik.Web.UI.RadPanelItem item in RadPanelBar1.GetAllItems())
        {
            if (item.Items.Count > 0)
            {
                item.Expanded = true;
            }
        } 
    }

    protected void btnCollpase_Click(object sender, EventArgs e)
    {
        foreach (Telerik.Web.UI.RadPanelItem item in RadPanelBar1.GetAllItems())
        {
            if (item.Items.Count > 0)
            {
                item.Expanded = false;
            }
        } 
    }




Princy
Top achievements
Rank 2
 answered on 24 Jul 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?