Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
152 views

We are currently using version 2015.2.826 of Telerik controls.  We are getting intermittent exceptions from one of our pages where we have codebehind for handling the grid events.  The error we are getting is:

Unable to cast object of type 'System.EventArgs' to type 'Telerik.Web.UI.GridPageChangedEventArgs'

We have searched for any other customers with this problem, but are not able to find anything.  We definitely need your help on this production problem.

Thank you,

Ed Sudit

Edward Sudit
Top achievements
Rank 1
 answered on 24 Nov 2015
2 answers
127 views
I have a RadMaskedTextBox to accept a Social Security Number.  What I would like to do is display the field content when the field is in focus, but then change to textmode=password when not in focus.  Is this possible using javascript or another method?  Thanks.
Adam
Top achievements
Rank 1
 answered on 24 Nov 2015
5 answers
100 views

Hi Telerik Team,

We are trying to create stand-along document, image, flash and media managers without Editor. We use RadDialogOpener to open different dialogs. It works great except we try to get select item value. We using "ClientCallbackFunction", in that function, the "args.get_value()" return an object. Can we have a method to return a html string so we can easily to display?

 script below:

function CallbackFunction( sender, args )

{

    

}

 Thanks,

Lan

lan luo
Top achievements
Rank 1
Iron
 answered on 24 Nov 2015
1 answer
188 views

Hello,

we have a problem with using different Assembly Versions of the Telerik.Web.Ui.dll that are deployed in the Global Assembly Cache.

We are getting the following reproducable error: 

Telerik.Web.UI.RadFormDecorator with ID='RadFormDecorator1' was unable to find an embedded skin with the name 'Metro'. Please, make sure that the skin name is spelled correctly and that you have added a reference to the Telerik.Web.UI.Skins.dll assembly in your project. If you want to use a custom skin, set EnableEmbeddedSkins=false.

The used versions are i.e: 2013.2.611.45 and 2015.1.225.45.

  • Scenario1: The first page that will be opened finds the Theme correctly. If we navigate to the second page, where the other Version of the Telerik dll is used, then the error with the Theme is thrown.
  • Scenario 2: If we navigate at first to the second Page (of course after a webapplication recycle), then this page works correctly and the first page throws the error.
  • Scenario 3: If the two pages are using the same Version of the Telerik.Web.Ui.DLL then no error will be thrown

Do you know this behaviour and know how i can get this work?

Thanks,

Bastian John

Marin Bratanov
Telerik team
 answered on 24 Nov 2015
4 answers
56 views

I am trying to have a custom dropdown on the editor but for some reason it is working but its also making my nonjustify tool active upppon using it here is my code

 

01.                   <telerik:RadEditor ID="txtMessage"  ToolsFile="~/BackDoor/ToolsFile.xml" runat="server" Skin="Bootstrap"  OnClientCommandExecuting="OnClientCommandExecuting" RenderMode="Auto">
02.                    <Tools>
03.    <telerik:EditorToolGroup>   
04.        <telerik:EditorSplitButton Name="TagList"  Text="Sets Dynamic Tags In Emails"   ImageUrl="~/assets/img/tags.png"  ImageUrlLarge="~/assets/img/tags.png" ItemsPerRow="5" PopupWidth="170px" PopupHeight="117px" RenderMode="Auto">
05.          <telerik:EditorDropDownItem  Name ="{Player_ID}" value="{player_Id}"/>
06.        <telerik:EditorDropDownItem  Name ="{Player_name}" value="{player_name}"/>   
07.        <telerik:EditorDropDownItem  Name ="{Player_IpAddress}" value="{player_IpAddress}"/>   
08.             <telerik:EditorDropDownItem  Name ="{Player_Points}" value="{player_points}"/>   
09.            <telerik:EditorDropDownItem  Name ="{Player_Points}" value="{player_prize}"/>   
10.        </telerik:EditorSplitButton>
11.    </telerik:EditorToolGroup>
12.</Tools> 
13.                     
14. 
15.                    </telerik:RadEditor>

And here is what i use in the client side event

 

01.   <script type="text/javascript">
02.        function OnClientCommandExecuting(editor, args) {
03.            var name = args.get_name(); //The command name
04.            var val = args.get_value(); //The tool that initiated the command
05.            if (name == "TagList") {
06.                editor.pasteHtml("" + val + "");
07.                //Cancel the further execution of the command as such a command does not exist in the editor command list
08.                args.set_cancel(true);
09.            }
10.        }
11.</script>
12.      
13. 
14.     
15.<style type="text/css">
16.    span .reTagList
17.    {
18.        background-image:url(/assets/img/label49.png);
19.       background-repeat: no-repeat;                                                         
20.    }   
21.         
22.</style>

 

Also I cannot get my icon to appear any ideas guys as what going on im using 30 day demo just

Vessy
Telerik team
 answered on 24 Nov 2015
1 answer
247 views

I have a RadWindow that contains a User Control. This user control is doing a lot of processing on load. The initial state of the RadWindow is minimized.

 

I want the RadWindow to NOT load the UserControl inside it when the page is initially opened. I want the user control to be loaded only when I open the RadWindow.

Marin Bratanov
Telerik team
 answered on 24 Nov 2015
1 answer
41 views
Hi

my function is:

function pageLoad() {
                var newTitle = $telerik.$(".rsHeader h2").text($telerik.$(".rsHeader h2").text() + " - custom title");
                newTitle.css("font-size", "small");
            }

 

Where we can call function Page_load(); ??

 

 

shubhangi
Top achievements
Rank 1
 answered on 24 Nov 2015
3 answers
269 views
Hi,

I am working with Telerik version 2011.1.519.35. I am using hierarchical radgrid. Markup is something like this,

<telerik:RadGrid ID="gridOrder" runat="server" AllowPaging="True" AllowSorting="True"
                AllowCustomPaging="True" GridLines="None" Skin="radGridSkin" EnableEmbeddedSkins="false"
                ShowGroupPanel="True" EnableHeaderContextMenu="True" Width="100%" Height="100%"
                AllowMultiRowSelection="True" AutoGenerateColumns="false" OnNeedDataSource="gridOrder_NeedDataSource"
                OnItemDataBound="gridOrder_ItemDataBound" DisplayDataKey="ORDER_NUMBER" OnPreRender="gridOrder_PreRender"
                OnPageSizeChanged="gridOrder_PageSizeChanged" OnItemCommand="gridOrder_ItemCommand"
                OnItemCreated="gridOrder_ItemCreated" OnGroupsChanging="gridOrder_GroupsChanging"
                OnPageIndexChanged="gridOrder_PageIndexChanged" PageSize="20">
                <ExportSettings IgnorePaging="true" OpenInNewWindow="true" ExportOnlyData="true">
                    <Excel Format="ExcelML" />
                </ExportSettings>
                <MasterTableView GroupLoadMode="Client" DataKeyNames="ORDER_NUMBER" Name="ORDER"
                    ClientDataKeyNames="ORDER_NUMBER,CAN_SUPPLIER_ORDER_PRODUCT,SUPPLIER_ID,STATE,O_ORGANIZATION_ID"
                    UseAllDataFields="true">
                    <RowIndicatorColumn Visible="true">
                    </RowIndicatorColumn>
                    <NestedViewTemplate>
                        <div class="order-line-wrapper">
                            <telerik:RadTabStrip MultiPageID="radMultiPageOrderDetail" SelectedIndex="0" ID="RadOrderDetailTabStrip"
                                runat="server" Skin="radTabStripSkin" EnableEmbeddedSkins="false" ScrollChildren="true">
                                <Tabs>
                                    <telerik:RadTab Text="Order Detail" Selected="True" Value="tabOrderDetail" PageViewID="pageOrderDetail">
                                    </telerik:RadTab>
                                    <telerik:RadTab Text="Order Workflow State History" Value="tabOrderWorkflowHistory"
                                        PageViewID="pageOrderWorkflowHistory">
                                    </telerik:RadTab>
                                </Tabs>
                            </telerik:RadTabStrip>
                            <telerik:RadMultiPage SelectedIndex="0" ID="radMultiPageOrderDetail" runat="server">
                                <telerik:RadPageView runat="server" ID="pageOrderDetail" Selected="True">
                                    <div class="order-line-border order-line-control">
                                        <calvi:OrderLineControl Visible="false" ID="OrderLineCtrl" runat="server" PageCookieEntityName="ORDER_MAIN_FORM">
                                        </calvi:OrderLineControl>
                                    </div>
                                </telerik:RadPageView>
                                <telerik:RadPageView runat="server" ID="pageOrderWorkflowHistory">
                                    <div class="order-line-border order-line-control">
                                        <calvi:OrderWorkflowHistoryControl ID="OrderWorkflowHistoryControl" runat="server"
                                            ShowLoadingPanel="false" PageCookieEntityName="OrderMain_WorkflowHistory" />
                                    </div>
                                </telerik:RadPageView>
                            </telerik:RadMultiPage>
                        </div>
                    </NestedViewTemplate>
                    <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column" Visible="True"
                        UniqueName="ExpandColumn">
                    </ExpandCollapseColumn>
                    <Columns>
                        <telerik:GridBoundColumn DataField="DEBTOR_REFERENCE" FilterControlAltText="Filter DEBTOR_REFERENCE column"
                            HtmlEncode="true" DataFormatString="<nobr>{0}&nbsp;</nobr>" HeaderText="DEBTOR_REFERENCE"
                            SortExpression="DEBTOR_REFERENCE" UniqueName="DEBTOR_REFERENCE">
                        </telerik:GridBoundColumn>...
OrderLineControl and OrderWorkflowHistoryControl usercontrols contain radgrid. What I need is to utilize the available 
space on expansion. For example if the parent grid has 12 visible columns then the child grid on expansion should also occupy
12 colspan. However since we have provided the column choosing option on clientside and set Display property of each hidden
column to false, if the column is not selected to be visible, the grid is not able to set the colspan in accordance with the
visible column.

Hence to workaround the problem I am executing following peace of code on grid ItemCreated event,
(e.Item as GridNestedViewItem).NestedViewCell.Attributes["colSpan"] = {string value of number of visible columns}

The above code works fine in IE7 & IE9, however it fails in IE8 (please refer the attached images). 

Could you please help me with this.

Regards,

Sachin
 
 
Ufuk
Top achievements
Rank 1
 answered on 24 Nov 2015
7 answers
131 views

Hi,

I currently use a splitter, within one of the panels I want to embed a youtube video and importantly allow the option for full screen:

 <iframe width="560" height="315" src="https://www.youtube.com/embed/sNIMCdVOHOM" frameborder="0" allowfullscreen></iframe>

However because the way the 'RadPane' is constructed in the background it uses an iframe without the "allowfullscreen" flag here is the code telerik generates:

 <telerik:RadPane ID="ContentPane" runat="server" ContentUrl="​MainPage.aspx">

Generates

<iframe name="ContentPane" id="RAD_SPLITTER_PANE_EXT_CONTENT_ContentPane" src="MainPage.aspx" frameborder="0" scrolling="auto" style="border: 0px; height: 191px; width: 824px;"></iframe>

 If there any way I can append "allowfullscreen" onto this iframe?

 

Thanks

Vessy
Telerik team
 answered on 24 Nov 2015
4 answers
106 views

I'd like my Grid footer--where I have my grand totals to display--to move when rows within the grid are collapsed.

See screenshot for desired results.

 

Thanks!

Pavlina
Telerik team
 answered on 24 Nov 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?