Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
48 views
Hi,

we have a very dynamic grid where columns are customizable by the user. You know that when you give the user this power, he eventually ends up configuring a grid with 50-ish columns and then complains that the (auto-generated) edit form is way to long and unorganized ;-)

Now we want to integrate a RadTabStrip into the edit form and distribute the single columns into several tabs, determined by the column configuration that the user defines.

So the question is: what is the best / most efficient / least complex way to achieve this.
First of all I though about replacing the logic that creates the xx_mainTable part and throws the editor table rows in that for each column, put a RadStrip in it and put a table into each tab and just distribute the columns that way - but all that is marked internal and not exchangeable.

So what way do you suggest to hook in there?
Iana Tsolova
Telerik team
 answered on 28 Dec 2010
1 answer
77 views
i am having RadCalendar control inside the Modal Pop up when i click on the Calender control it will display the Calender but that calender appearing Back side of the Modal pop up.. How to get it front.>>>????
Shinu
Top achievements
Rank 2
 answered on 28 Dec 2010
1 answer
107 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
69 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
83 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
77 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
80 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
72 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
485 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
116 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?