Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
90 views
Hi
At client side in javascript how to get the dockzone's clientid.
while debugging I'm able to see the ClientID of dockzone and I tried to get it but I was not able to get it.
Under the dock method of dockZone() you can find the _clientID .
how to get it in javascript.
I tried like below.
var id=dock.get_dockZone().get_ClientID();
var id=dock.dockZone_ClientID();
...............

But I was not able to get that.
please can any one help me out asap.
Please find my attatchment.
Ram
Top achievements
Rank 1
 answered on 19 Sep 2011
3 answers
155 views
Hello,

I am using a RadComboBox as a selector for the number of items in a grid. What I have been using this far is the following JavaScript at the page level:

<

 

script type="text/javascript">

 

 

function ddlPageSize_SelectedIndexChanged(sender, args) {

 

 

var obj = $find("<%= LineItemsGrid.ClientID %>")

 

tableView = obj.get_masterTableView();

tableView.set_pageSize(sender.get_value());

}

</

 

script>

 

This has been working great, however, now we have a page requiring multiple grids. We have been trying for a while to get a reference of the grid's MasterTableView by inspecting both sender and args and navegating the hierarchy. Can you provide some insight as to how this can be achieved?

Thanks,

David


David
Top achievements
Rank 1
 answered on 19 Sep 2011
4 answers
124 views
Since upgrading our Telerik controls in July (from version to 2010.3.1317.40 to 2011.1.519.40) we have intermittently received the following error in our logs:

Sys.InvalidOperationException: Could not find UpdatePanel with ID 'myMasterPage_ctl18_myMasterPage_cph_myUserControl_5_anotherUserControl_pnlMyPanelPanel'. If it is being updated dynamically then it must be inside another UpdatePanel.

I have not been able to replicate the problem - these errors are coming from my users and I am seeing them in my logs. They started occurring the day that I upgraded the Telerik dll.

I understand that usually errors of this type occur if the ajaxified control is invisible.
However, I am certain that the control is not invisible. There is no reason it should be invisible. To try and debug the issue, I have setup additional logging during the OnPreRender phase like this:

protected override void OnPreRender(EventArgs e)
{
    _log.Debug("Is pnlMyPanel visible: " + pnlMyPanel.Visible);

    base.OnPreRender(e);
}

The ajaxified panel is always visible according to these logs, yet the error is still occurring.

Any tips how I can go about solving this issue?

UPDATE: Sorry, the title of this post is wrong. The ClientID of the ajaxified panel is correct, but for some reason RadAjax is unable to find the panel.
Maria Ilieva
Telerik team
 answered on 19 Sep 2011
3 answers
169 views
Hi,

I activated ajax for my rad grids and since then I can see in the console output of Chrome the following error when I do some filtering:

Uncaught TypeError: Cannot read property '_currentFilterTimeoutID' of null

That are the settings that caused this:
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadGrid1">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadGrid1
" LoadingPanelID="RadAjaxLoadingPanel1"/>
                    </UpdatedControls>
                </telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" InitialDelayTime="200" />

Everything else seems to work fine. There are no more postbacks when filtering and the loading panel displays correctly. But the error is annoying. This is the complete callstack from chrome:

Uncaught TypeError: Cannot read property '_currentFilterTimeoutID' of null
(anonymous function)                                                schedule.aspx:1
onchange                                                            schedule.aspx:2
Sys.WebForms.PageRequestManager._updatePanel                        Telerik.Web.UI.WebResource.axd:15
Sys.WebForms.PageRequestManager._scriptIncludesLoadComplete         Telerik.Web.UI.WebResource.axd:15
(anonymous function)                                                Telerik.Web.UI.WebResource.axd:6
(anonymous function)                                                Telerik.Web.UI.WebResource.axd:6
Sys._ScriptLoader._loadScriptsInternal                              Telerik.Web.UI.WebResource.axd:15
Sys._ScriptLoader._nextSession                                      Telerik.Web.UI.WebResource.axd:15
Sys._ScriptLoader.loadScripts                                       Telerik.Web.UI.WebResource.axd:15
Sys.WebForms.PageRequestManager._onFormSubmitCompleted              Telerik.Web.UI.WebResource.axd:15
(anonymous function)                                                Telerik.Web.UI.WebResource.axd:6
(anonymous function)                                                Telerik.Web.UI.WebResource.axd:6
Sys.Net.WebRequest.completed                                        Telerik.Web.UI.WebResource.axd:6
_onReadyStateChange                                                 Telerik.Web.UI.WebResource.axd:6



Thanks for your help!

Edit: I just removed the RadGrid from AjaxUpdatedControls and since then there is no more error. But instead - as expected - the postbacks are back.
As further information, all visible columns have "AutoPostBackOnFilter" enabled and no FilterDelay set. Setting the FilterDelay to null or e.g. 4000 doesn't remove the error.


Iana Tsolova
Telerik team
 answered on 19 Sep 2011
2 answers
147 views
Dear sir/mam,

MY application radtabstrip inside the sample model popup . when i user loading panel we can't work model popup control.
i need loading panel set this tabstrip control.

but without loading panel working fine(radtabstrip).

pls help me.
Regards
Padmanaban.



<telerik:RadAjaxLoadingPanel ID="LoadingPanel"runat="server">
   <img src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading6.gif") %>' alt="Loading..." style="border: 0" />
</telerik:RadAjaxLoadingPanel>
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
   <AjaxSettings>
       <telerik:AjaxSetting AjaxControlID="RadTabStrip1">
          <UpdatedControls>
             <telerik:AjaxUpdatedControl ControlID="RadTabStrip1"/>
             <telerik:AjaxUpdatedControl ControlID="RadMultiPage1" LoadingPanelID="LoadingPanel"/>
          </UpdatedControls>
       </telerik:AjaxSetting>
   </AjaxSettings>
</telerik:RadAjaxManager>
            <telerik:RadTabStrip ID="RadTabStrip1" runat="server" Skin="Vista" BackColor="#E3E3E3"
                MultiPageID="RadMultiPage1" Style="border-bottom: 1px solid #000;  border:1px" SelectedIndex="0" ValidationGroup="WP"
                ReorderTabsOnSelect="True">
                <Tabs>
                    <telerik:RadTab Text="Compose" Width="120px" ImageUrl="../../Images/newpost.png"
                        Font-Names="Times New Roman" Font-Size="13px" PageViewID="RadPageCompose" TabIndex="0">
                    </telerik:RadTab>
                    <telerik:RadTab Text="Options" Width="120px" ImageUrl="../../Images/options.png"
                        Font-Names="Times New Roman" Font-Size="13px" TabIndex="1" PageViewID="RadPageOptions">
                    </telerik:RadTab>
             
                </Tabs>
            </telerik:RadTabStrip>
            <telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0" BackColor="White"
                Width="100%">
                <telerik:RadPageView ID="RadPageCompose" runat="server">
                    <table class="MainTable2">
                        <tr>
                            <td class="pad" style="background-color:White " >
                                <div class="pad">
                                    <asp:Label ID="Label3" runat="server" SkinID="Label1" Font-Bold="true" Text="Subject "></asp:Label>
                                </div>
                                <div class="pad">
                                    <asp:TextBox ID="TxtSubject" SkinID="Txtbox"   runat="server" Width="600px"
                                     ValidationGroup="WP"></asp:TextBox></div>
                                <div class="pad">
                                    <div class="pad">
                                       
                                    </div>
                                    <asp:Label ID="Label4" runat="server" SkinID="Label" Font-Bold="true"  Text="Description"></asp:Label>
                                </div>
                                <div class="pad">
                                    <telerik:RadEditor ID="RadDescription" runat="server" Style="font-family: Arial;
                                        font-size: 11px; color: #000; background-color:White" EmptyMessage="Enter Description" Required="True"
                                        RequiredMessage="Description is mandatory" ShowRedStar="True" Width="606px"  >
                                        <Tools>
                                            <telerik:EditorToolGroup>
                                                <telerik:EditorTool Name="FindAndReplace" />
                                                <telerik:EditorSeparator />
                                                <telerik:EditorTool Name="Undo" />
                                                <telerik:EditorTool Name="Redo" />
                                                <telerik:EditorSeparator />
                                                <telerik:EditorTool Name="Cut" />
                                                <telerik:EditorTool Name="Copy" />
                                                <telerik:EditorTool Name="Paste" ShortCut="CTRL+!" />
                                                <telerik:EditorSeparator />
                                                <telerik:EditorTool Name="Bold" />
                                                <telerik:EditorTool Name="Italic" />
                                                <telerik:EditorTool Name="Underline" />
                                                <telerik:EditorSeparator />
                                                <telerik:EditorTool Name="JustifyLeft" />
                                                <telerik:EditorTool Name="JustifyCenter" />
                                                <telerik:EditorTool Name="JustifyFull" />
                                                <telerik:EditorTool Name="JustifyRight" />
                                                <telerik:EditorTool Name="JustifyNone" />
                                                <telerik:EditorSeparator />
                                                <telerik:EditorTool Name="ForeColor" />
                                                <telerik:EditorTool Name="BackColor" />
                                                <telerik:EditorTool Name="FontName" />
                                                <telerik:EditorTool Name="RealFontSize" />
                                            </telerik:EditorToolGroup>
                                        </Tools>
                                    </telerik:RadEditor>
                                 
                                </div>
                                <div class="pad">
                                    <asp:Label ID="Label2" runat="server" SkinID="LabelErr"></asp:Label>
                                </div>
                                <div class="pad">
                                    <asp:Label ID="Label5" runat="server" Font-Bold="true"  SkinID="Label" Text="Tags"></asp:Label>
                                </div>
                             
                            </td>
                        </tr>
                    </table>
                </telerik:RadPageView>
                <telerik:RadPageView ID="RadPageOptions" Width="100%" runat="server">
                    <table class="MainTable2">
                        <tr>
                            <td class="pad" width="535">
                                <div class="pad" style="float: left; width: 535">
                                    <asp:Label ID="Label10" runat="server" SkinID="Label1" Text="File attachment "></asp:Label>
                                </div>
                                <div class="pad" style="float: left;">
                                    <asp:ImageButton ID="BtnPopUp" runat="server"  OnClick="BtnPopUp_Click" ImageUrl="~/Images/SPECIFY.png" />          
                                    
                                                               <asp:Label ID="Lerror" runat="server" SkinID="LabelErr" Visible="true"></asp:Label>
                                </div>
                            </td>
                        </tr>
                    </table>
                </telerik:RadPageView>
          
            </telerik:RadMultiPage>



<div>
    <asp:UpdatePanel ID="UP2" runat="server">
        <ContentTemplate>
            <asp:Button ID="BtnUploadPopup" runat="server" Style="display: none" />
            <cc1:ModalPopupExtender ID="ModalPopupExtender1" runat="server" TargetControlID="BtnUploadPopup"
                PopupControlID="PanelUpload" CancelControlID="IBClose" BackgroundCssClass="modalBackground" />
            <asp:Panel ID="PanelUpload" runat="server" Width="650" Style="height: 400; display: none">
                <div id="PopupDiv">
                    <div class="PopuInner">
                        <table width="95%" align="left" >
                            <tr>
                                <td>
                                    <asp:Label ID="Label11" SkinID="LabelHead" runat="server" style="font-size:Large;font-weight:bold;"   Text="Select Document"></asp:Label>
                                </td>
                                
                                <td align="right">
                                    <asp:ImageButton runat="server" ID="IBClose" ImageUrl="~/Images/close.gif" OnClick="IBClose_Click" />
                                </td>
                            </tr>
                        </table>
                    </div>
                    <div style=" height:15px"></div>
                    <div style="border-width: thin; margin: 15px 15px 5px 5px; width: 100%;">
                        <table width="100%" align="left" >
                            <caption>
                                <hr style="font-size: 2px; color: Black;" width="100%" />
                                <tr>
                                    <td colspan="4" style="font-size:medium; font-family: Times New Roman;">
                                        <asp:Label ID="Label16" runat="server" Text="Choose whether you want to upload a file from your computer or link to an existing
                                        file." SkinID="LabelS"></asp:Label>
                                    </td>
                                </tr
                                  <tr>
                                    <td>
                                        <asp:RadioButton ID="RBUPloadFile" runat="server" AutoPostBack="true" OnCheckedChanged="RBUPloadFile_CheckedChanged" />
                                    </td>
                                    <td>
                                        <div>
                                            <asp:Label ID="Label12" runat="server" Text="Upload File" SkinID="Label1"></asp:Label>
                                        </div>
                                        <div>
                                            <asp:Label ID="Label15" runat="server" Text="Select a file to upload." SkinID="LabelS"></asp:Label>
                                        </div>
                                    </td>
                                    <td>
                                        
                                        <asp:UpdatePanel ID="update" runat="server">
                                            <ContentTemplate>
                                                <asp:FileUpload ID="FileUpload1" runat="server" />
                                            </ContentTemplate>
                                            <Triggers>
                                                <asp:PostBackTrigger ControlID="BtSaveUpload" />
                                            </Triggers>
                                        </asp:UpdatePanel>
                                    </td>
                                    <td style="margin-right: 40px;">
                                      
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:RadioButton ID="RBUploadLink" runat="server" AutoPostBack="true" OnCheckedChanged="RBUploadLink_CheckedChanged" />                                  </td>
                                    <td>
                                        <div>
                                            <asp:Label ID="Label13" runat="server" Text="Link to URL" SkinID="Label1"></asp:Label>
                                        </div>
                                        <div>
                                            <asp:Label ID="Label14" runat="server" Text=" Enter the URL where an existing file resides."
                                                SkinID="LabelS"></asp:Label>
                                        </div>
                                    </td>
                                    <td colspan="2">
                                        <asp:TextBox ID="TxtFileLink" Width="216px" runat="server" SkinID="TxtPopUp" ValidationGroup="URL"></asp:TextBox>
                                        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="TxtFileLink"
                                            ErrorMessage="Enter Valid URL" ValidationGroup="URL" ValidationExpression="http(s)?://([\w-]+\.)+[\w-]+(/[\w- ./?%&amp;=]*)?">*</asp:RegularExpressionValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="left" colspan="4">
                                        <div style="padding-top: 3px; padding-bottom: 3px;">
                                          <asp:ImageButton ID="BtSaveUpload" ValidationGroup="URL"   ImageUrl="~/Images/Save.png" runat="server" OnClick="BtSaveUpload_Click"/>
                                            <asp:Label ID="LblUploadMag" runat="server" SkinID="LabelErr"></asp:Label>
                                            <asp:ValidationSummary ID="ValidationSummary1" runat="server" ValidationGroup="URL" />
                                        </div>
                                    </td>
                                </tr>
                            </caption>
                        </table>
                    </div>
                </div>
            </asp:Panel>
        </ContentTemplate>
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="RBUPloadFile" EventName="CheckedChanged" />
            <asp:AsyncPostBackTrigger ControlID="RBUploadLink" EventName="CheckedChanged" />
        </Triggers>
    </asp:UpdatePanel>
</div>
Maria Ilieva
Telerik team
 answered on 19 Sep 2011
7 answers
833 views
Hi All,

I have one RadGird control on my SharePoint WebPart. On the row double click I want to load one user control which have to display employee details. For this i want to pass parameter "EmployeeID" to that User control.

Thanks in advance
Iana Tsolova
Telerik team
 answered on 19 Sep 2011
2 answers
124 views
Hi,

If AllowMultiRowSelection  is set to true for radgrid then i will be able to select multiple rows by holding controls or shift and click.

Is there anyway I can select the multiple rows only with control and click and not shift?

Thanks
sho
Top achievements
Rank 1
 answered on 19 Sep 2011
1 answer
94 views
Hi,

I have a page with three repetitions of the same address usercontrol (main, delivery, invoice) within a tabcontrol.

The usercontrol uses a multiline radtextbox (which results in a textarea). On IE 8, if I type in the second or third instance, the browser hangs, while the first works just fine. On Firefox and Chrome everything works without a glitch.

If I turn off the multiline property (resulting in an input field) everything works fine.

Do you have an idea on how to get this to work properly (with the multiline on)?

Thanks.
Johny
Top achievements
Rank 1
 answered on 19 Sep 2011
8 answers
339 views
Hi,

We are using RadContextMenu and wants to set RadMenuItem height dynamically and also reduce the width of left Grey bar on context menu. Please help us.

Please find the attached screen shot for more clarification. 

Thanks,
Rahul
Kate
Telerik team
 answered on 19 Sep 2011
4 answers
189 views

HI

 

i got a  website in VS 2005  using telerik controls


but when we open this project it gives me compilation error .'OpenAccessDataSource' is not defined.

do we need to install the telerik demo if yes which one we have to download .

Sebastian
Telerik team
 answered on 19 Sep 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?