Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
52 views
Hi all,

I am using comma for the thousands separator (like 5,000) into the numeric columns.
When I filter this value by writing the value with comma (like 5,000) into the filter box, I got an error message. Filtering without a comma (like 5000) works.

The users will filter the values writing commas so I need to solve this issue.  Can you please help me?

Thanks,
Ervin
Mira
Telerik team
 answered on 19 Sep 2011
2 answers
196 views
Hi,

I'm new to developing world as well as telerik.I have a web app where I'm using telerik controls.
I wanting to be able to size a rad window on open to the parent's size from code behind as to accmodate different resolutions.
Im using vb.net.

Im currently using the below but thats at a fixed pixel which is not what I'm looking for.

          

Private

Sub button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles button1.Click

Dim rw As New RadWindow

rw.ShowContentDuringLoad =

True

rw.Width = Unit.Pixel(1200)

 

rw.Height = Unit.Pixel(600)

rw.KeepInScreenBounds =

True

rw.Modal =

 

True

rw.NavigateUrl =

 

"test.aspx"

rw.VisibleOnPageLoad =

 

True

RadWindowManager1.Windows.Add(rw)
End Sub

 



Any help would be appreciated. Thanks
Derek
Top achievements
Rank 1
 answered on 19 Sep 2011
1 answer
73 views
I have a radgrid, bind to a collection list ( a list of data entitis).

One the grid_update command, GridTextBoxColumnEditor editor = (GridTextBoxColumnEditor)editMan.GetColumnEditor("Notes") returns "specificied argument was out of the range of valid value" error. But Notes is one of the item in my Collection class. Why?

radgrid update won't work for collection?


protected void rgDesigLevel_UpdateCommand(object sender, GridCommandEventArgs e)
       {
           
             
           switch (e.Item.OwnerTableView.Name)
           {
               case "Master":
                 
                   string Level1Notes="";
                   CustomerFileHistoryManager cfhm = new CustomerFileHistoryManager();
                   foreach (GridDataItem item in rgDesigLevel.EditItems)
                   {
                       Int32 AuditCustomerId = Convert.ToInt32(item.GetDataKeyValue("ID"));
                       GridEditManager editMan = item.EditManager;
                       GridTextBoxColumnEditor editor = (GridTextBoxColumnEditor)editMan.GetColumnEditor("Notes");
                       Level1Notes = editor.TextBoxControl.Text;
                       cfhm.UpdatePreProcNotes(AuditCustomerId, Level1Notes);
                   }
                   break;                       
           }
       }
   }
Thanks
Mira
Telerik team
 answered on 19 Sep 2011
1 answer
77 views
Hi, I want to get values from grid from two columns.
I have a function for getting values from one column:

string tmp = String.Empty;
            if (rg.SelectedItems.Count > 0)
            {
                int i = 0;
                foreach (GridDataItem DataItem in RadGrid.SelectedItems)
                {
                    TableCell cell = DataItem[columnName];
                    if (cell.Text.Length > 0 && cell.Text != " ")
                    {
                        tmp = String.Format("{0}{1}{2}", tmp, i > 0 ? ";" : "", cell.Text);
                    }
                    i++;
                }
            }
            return tmp;
For example my grid contains data:
Column1  Column2 Column3
1    2 3
4    5 6
7    8 9
If I execute code 2 times (for Column1 and Column3, could I be sure thay values will be:
"1;7" and "3;9" (right order, from top to bottom in those 2 cases)?
 Or the order could be random for example: "1;7" and "9, 3"?
Andrey
Telerik team
 answered on 19 Sep 2011
1 answer
68 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
125 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
90 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
150 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
129 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
765 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?