Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
150 views
Hi, everyone
First sorry for my English

I need include a slidingPanel in a contentPage. I'm tried to do anything similar to  http://demos.telerik.com/aspnet-ajax/panelbar/examples/applicationscenarios/slidingpanelbar/defaultcs.aspx  but I have this error System.Web.HttpException: La colección de controles no puede modificarse porque el control contiene bloques de código (por ej. <% ... %>).

Any suggestion is welcome.
Thanks in advance
Kalina
Telerik team
 answered on 28 Dec 2010
1 answer
77 views
This update broke several things on my web site:

I have some client side JavaScript executing when the onRowCreated event was raised for a RadChart. The code walks the DOM and breaks completely. The very first statement fails:

    <script type="text/javascript">
      function RowCreated(sender, eventArgs) {
        var dataItem = eventArgs.get_gridDataItem();
        for (var i = 0; i < dataItem.get_element().cells.length; i++) {
          if (dataItem.get_element().cells[i].innerHTML == "No") {
            dataItem.get_element().cells[i].className = "BadClass";
          }
          else
            if (!isNaN(dataItem.get_element().cells[i].innerHTML) && dataItem.get_element().cells[i].innerHTML != "0") {
            dataItem.get_element().cells[i].className = "AlertClass";
          }
        }
      }
    </script>

When it has failed most of the Telerik controls stop responding to clicks and mouseovers.

The next problem is that I have a RadGrid that I change visibility of. Changing from Visible=false to Visible=true causes most Telerik controls to stop responding to clicks and mouseovers.

I had to make the following changes to get the site working properly again:

I moved the functionality of the JavaScript client side routine to the server and tied it to the prerender event.

Finally, I had to stop changing the visibility of the RadGrid which impacts the site visibly, but at least doesn't break it.

Anker
Nikolay Rusev
Telerik team
 answered on 28 Dec 2010
1 answer
144 views
Hi

I have successfully created a custom dialog for my radEditor which uses a radFileExplorer to display a list of assets which a user can add to their page.  At the moment the user needs to double click on one of the items in the radFileExplorer in order to select and insert it into the underlying radEditor. 

I wish to make my dialog work like the out of the box dialogs (e.g. Image Manager) and implement  "Insert" and "Cancel" buttons.   "Insert" will insert the selected asset (mimicing what happens already on a double click it) and "Cancel" will close my custom dialog.  I cannot figure out the code which I should be using on my custom buttons implement this.

Can you help ?

Thanks in advance.
Rumen
Telerik team
 answered on 28 Dec 2010
1 answer
88 views
I am having issues with updating the value of a control within the edittemplate of a radgrid control. 

Here is the layout of the javascript

<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server"
        <script type="text/javascript">
            function setTotal() {
                var radCostF = 0;
                var radPercentF = 0;
                var radTotal;
                  
                var radLength = document.getElementsByTagName("INPUT");
                var strToFind = "TEMPCOST";
                for (i = 0; i < radLength.length; i++) {
                    var element = radLength[i];
                    strToFind = "TEMPCOST";
                    if (element.id.indexOf(strToFind) >= 0) {
                        if (element.id.lastIndexOf(strToFind) + strToFind.length == element.id.length) {
                            alert(element.id + "=" + element.value);
                            radCostF = element.value;
                        }
                    }
                    strToFind = "TEMPPCT";
                    if (element.id.indexOf(strToFind) >= 0) {
                        if (element.id.lastIndexOf(strToFind) + strToFind.length == element.id.length) {
                            alert(element.id + "=" + element.value);
                            radPercentF = element.value;
                        }
                    }
  
                    strToFind = "TOTAL";
                    if (element.id.indexOf(strToFind) >= 0) {
                         
                        if (element.id.lastIndexOf(strToFind) + strToFind.length == element.id.length) {
                        element.value = radCostF * radPercentF / 100;
                        }
                    }
  
  
                }
  
            }
          
        </script>
      
    </telerik:RadCodeBlock>


In the user control the code is such

 

<td>

 

Total:

<br />

 

 

<telerik:RadNumericTextBox NumberFormat-DecimalDigits="2" ID="TEMPCOST" runat="server"

 

 

Value= '<%#CheckNumericNull(DataBinder.Eval(Container, "DataItem.TEMPCOST"))%>' >

 

 

<ClientEvents OnBlur="setTotal" />

 

 

</telerik:RadNumericTextBox>

 

 

</td>

 

<

 

td>

 

 

 

 

Total:

<br />

 

 

 

 

 

<telerik:RadNumericTextBox NumberFormat-DecimalDigits="2" type="Currency" ID="TOTAL" runat="server"

 

 

 

 

 

ReadOnly="true" Value="0.00" />

 

 

 

 

 

</td>

 

 

 



The event OnBlur fires and I can read the values from the source controls and set the value of the target (TOTAL) but the value is not reflected to the user.  In other words if I set the value of TempCost to 100 and Percent to 10 then when I pass through the same code again, the value of the TOTAL field is 10 but screen still shows 0 even after the event has fired.  Any thoughts as to why the screen is not displaying the updated value?

Princy
Top achievements
Rank 2
 answered on 28 Dec 2010
1 answer
101 views
Hi Guys,

I have a problem with radComboBox control during drugging the radwindow. When i expand radcombobox  and then drug( move ) radwindow, expanded items are not moving with window, they are glued, you can see it on the attached screenshot.  I created small test application for reproducing this issue, here is my code:
<telerik:RadScriptManager runat="server" ID="radManager">
</telerik:RadScriptManager>
<telerik:RadWindow runat="server" ID="rd" VisibleOnPageLoad="true">
<ContentTemplate>
<div style="width: 200px; height: 200px;">
<telerik:RadComboBox runat="server" ID="radCombo">
<Items>
<telerik:RadComboBoxItem Text="Item 1" />
<telerik:RadComboBoxItem Text="Item 2" />
<telerik:RadComboBoxItem Text="Item 3" />
<telerik:RadComboBoxItem Text="Item 4" />
<telerik:RadComboBoxItem Text="Item 5" />
</Items>
</telerik:RadComboBox>
</div>
</ContentTemplate>
</telerik:RadWindow>


Steps to reproduce:
1) Expand the radcombobox control,
2) Move the radwindow

Can somebody help me with it?
Thanks in advance!
Simon
Telerik team
 answered on 28 Dec 2010
1 answer
96 views
The grid is displaying the pound sign as two question marks whenever a postback occurs.  The £ is displayed correctly on initial load, however changes on any grid interaction.  The £ needs to be presnt in a text field, for example the cell may have the following text, 'this is worth £6k'.  It is also displaying incorrectly on a decimal formatted cell when £ is appended.

Any help would be much appreciated.
Nikolay Rusev
Telerik team
 answered on 28 Dec 2010
8 answers
529 views
Hi all,

I'm using a radconfirm window on a webform and when the user clicks Ok, I do a __doPostBack() to perform some server operations.

Here's my javascript:
function promptConfirm(id)
{
    var callBackFn = function(arg)
    {
        if (arg == true)
            __doPostBack("yesButton", id);
    }
    radconfirm("Did you print the confirmation report(s)?", callBackFn, 330, 100);
}

In the code behind, I update a field in the database and rebind a grid on the same page.
I'm trying to write it so the grid rebinds during postback, but using ajax, so the user can't see the whole page flicker.

Any help would be appreciated.

Rod

Iana Tsolova
Telerik team
 answered on 28 Dec 2010
1 answer
146 views
Hi,
I am working on a requirement where users can copy paste image and also type some text in a control. This contenet along with the image has to be saved either to database or in any SharePoint contents, also this content should be retrieved as is from saved object and shoule be shown to user. Please let me know whether Telerik supports this type of control.

Thanks & Regards,
Pradeep

Stanimir
Telerik team
 answered on 28 Dec 2010
1 answer
41 views
Hi there,

Can any one help me, how to format data exporting from grid to Excel, PDF and CSV?
When I export the grid its alignment looks very badly.

And i am not getting the ExportToExcelML() in my code behind.

Regards,

Amarnath
Shinu
Top achievements
Rank 2
 answered on 28 Dec 2010
4 answers
73 views

Hello.

I'm using a RadSplitter control with a RadTreeView in the left pane and a detail ASP:Panel on the right pane.

All is working fine except the speed of the right panel update. Updating the controls in the as:panel container is very slow when the tree contains many nodes and it's fast when the tree contains a few nodes. The update is triggered when the user clicks on a node.

In the Ajax Manager i'm updating the asp:panel PanelTreeItems only and not the left pane that contains the tree (PanelMain). Does it mean that the tree is also updated?
Here is the ASP code

...
    <telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxyFilters" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadTreeView">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="PanelTreeItems" LoadingPanelID="RadAjaxLoadingPanel" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManagerProxy>
    <telerik:RadWindowManager ID="RadWindowManager" runat="server" Skin="Outlook">
    </telerik:RadWindowManager>
...
<asp:Content ID="ContentMain" ContentPlaceHolderID="ContentPlaceHolder" runat="Server">
    <asp:Panel ID="PanelMain" runat="server" Visible="true">
    <table>
        ...
        <telerik:RadSplitter ID="RadSplitter" runat="server" Height="100%" Width="100%" Visible="false"
            ResizeMode="EndPane" Skin="Office2007">
            <telerik:RadPane ID="Radpane1" runat="server" Width="350" Scrolling="Y" MinWidth="22">
                <table id="MainTable" style="z-index: 102;" cellspacing="0" cellpadding="0" border="0">
                    <tr>
                        <telerik:RadTreeView ID="RadTreeView" runat="server" CheckBoxes="false" Height="90%">
                        </telerik:RadTreeView>
                    </tr>
                </table>
            </telerik:RadPane>
            <telerik:RadSplitBar ID="RadSplitBar1" runat="server" CollapseMode="Forward"></telerik:RadSplitBar>
            <telerik:RadPane ID="Radpane2" runat="server" Scrolling="None" MinWidth="22">
                <asp:Panel ID="PanelTreeItems" runat="server" Visible="true">
                ...
                </asp:Panel>
            </telerik:RadPane>
        </telerik:RadSplitter>
    </table>
    </asp:Panel>
</asp:Content>

Thanks for you help.
Regards
Augusto
Iana Tsolova
Telerik team
 answered on 28 Dec 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?