Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
70 views
hello
i develop a project in c#
in my webform i want add tabstrip and multipages.pageview dynamicly in server side code
when my button click tabs in tabstrip increase but pageviews in multipage control not added
may you help me?
Shinu
Top achievements
Rank 2
 answered on 03 Aug 2010
1 answer
148 views

Hello,

I would like to try using the CompositeScript functionality provided by the RadScriptManager. However, I'm having difficulty trying to pass in the parameters that I would need in the javascript in order to do to.   For example, for the RadNumericTextBox OnValueChaging event, we defined the javascript function to call:

txtAmount.ClientEvents.OnValueChanging = "price_changing";

In the RadScriptBlock, I have the following function:

function price_changing(sender, args) {
var strOldValue = args.get_oldValue().toString().replace("$",""); // 0.00
var strNewValue = args.get_newValue().toString().replace("$", ""); // 0.00
var totalfee = parseFloat(document.getElementById("<%= lblTotalFee.ClientID %>").innerText.replace("$", ""));
if (run_update && (strOldValue != strNewValue)) {
var grid = $find('<%= grdFee.ClientID %>');
.....


In order to move the script block into a seperate .JS file, I need to replace "<%= lblTotalFee.ClientID %>" with a variable I can pass into the javascript function. (Or the "<%= grdFee.ClientID %>").

 

There seems to be no way of doing that, I cannot specify parameters in the ClientEvents.OnValueChanging event.


One way might solve it is to upgrade to .NET 4 (We use .NET 3.5 now), then use the ClientIDMode property, so we can always expect a static ID.  But I'm looking for another option. 
 

Any ideas?

 

Thanks,

Annie

Veli
Telerik team
 answered on 03 Aug 2010
4 answers
132 views
I have created 2 docks which load the same .ascx file.

In the .ascx, there is a button to set the object "tblInput" visible (a table object). But when I click the button on the second dock, the table in the first dock make visible. How to prevent this?
Andy Ho
Top achievements
Rank 1
 answered on 03 Aug 2010
1 answer
134 views
hey.. I am having a really weird issue that I can't pin down. First off.. I don't think it is permission based as the explorer does actually move the file, does upload, does delete . However what does happen is that it seems to hang at the ajax when trying to read the folder contents. I would accept that it may be permission based only if my file manager on my radeditor was behaving the same way.. which it is not.

FileExployer1 markup
<telerik:RadScriptManager ID="RSM" runat="server"></telerik:RadScriptManager>
   
  
 <table>
 <tr>
 <td valign="top">
   <telerik:RadFileExplorer ID="RadFileExplorer1" Runat="server" Width="400px">
         <Configuration  ViewPaths="~/Images/CMS" DeletePaths="~/Images/CMS" UploadPaths="~/Images/CMS" />
    </telerik:RadFileExplorer>
 </td>
 <td valign="top">

and this is my radeditor markup...(within a formview)
      <telerik:RadEditor Height="700px" Width="100%" ID="RadEditor1" Content='<%# Bind("PageContent") %>' Runat="server">
              <ImageManager DeletePaths="~/Images/CMS" UploadPaths="~/Images/CMS"   ViewPaths="~/Images/CMS"    />
</telerik:RadEditor>

every time I hit the delete button or try to drag an image around... it performs and posts back.. except the ajax seems completely jammed on the right side of the explorer where it lists the contents.
The hang does not clear and i need to repost the page.. once reposted I see all my files etc.

assembly version: 2009.02.0701.35

mac
Top achievements
Rank 1
 answered on 03 Aug 2010
7 answers
148 views
Has anyone successfully used RadAjaxManager to trigger a series of cascading combo boxes?

I have 3 RadCombo boxes setup, each with their own matching SQLDataSource.

Changing cboContentAreas triggers a refresh of cboAreasOfConcern.
Changing cboAreasOfConcern triggers a refresh of cboInterventionTools.

However, changing cboContentAreas does NOT cause a refresh of cboInterventionTools as well.

I thought maybe this would work (but it does not):
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="cboContentAreas">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="cboAreasOfConcern" />
                <telerik:AjaxUpdatedControl ControlID="cboInterventionTools" />
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="cboAreasOfConcern">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="cboInterventionTools" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>

Is there a way to trigger a cascading refresh through the RadAjaxManager?

I will also need to do a fourth level of refresh... when they select a tool, it will need to trigger a refresh of 3 other combo boxes.. and all of that needs to happen when the first combo is changed.

Seth
Top achievements
Rank 1
 answered on 02 Aug 2010
2 answers
146 views
Hi,

I am using two Calendar controls in conjunction with the Scheduler (as seen in the Demo) and I have noticed that recurring appointments do not get highlighted in the Calendar (either one) until one of the "child" appointments is clicked on in the Calendar, and then, only for the Calendar you are in. Also, no recurring appointments appear highlighted if you "page" forward in the Calendars.

So, my question is: Is there a "collection" of recurring appointments generated at some point, or is there a way to generate a collection without the tedium of parsing the RecurrenceRule and generating my own collection each time there is a "refresh" of the appointment data? And, if there is a collection already generated, how does one access it?

Also, is there documentation regarding the "items" in the RecurrenceRule, i.e. tokens and their possible values?

Thanks in advance.
Chris
Top achievements
Rank 2
 answered on 02 Aug 2010
2 answers
125 views
I need to be able to roll over a Grid Row and have the row color change without changing the grid lines. I found a solution that changes the color fine but it removes the grid lines, horizontal and vertical, and changes the row height to 20 PX.

 .RowMouseOver td
 {
   background-color: Aqua;
   height: 30px;
 }
function RowMouseOver(sender, eventArgs) {
    $get(eventArgs.get_id()).className = "RowMouseOver";
}

Thanks for any ideas as  I am new here
Brad
Top achievements
Rank 1
 answered on 02 Aug 2010
3 answers
153 views
I have a scenario where there are two divs on a page.  One contains a RadGrid.  Both are setup in the RadAjaxManager to only update themselves, not each other.  My problem occurs when the non-Grid div is causing a post back, I select some items in the RadGrid but once the postback completes, my selected items in the grid are cleared.  How do I prevent this?

Here is a real basic example of my setup:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Grid.aspx.cs" Inherits="TelerikTest.Grid" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="scriptManager" runat="server"></telerik:RadScriptManager>
        <telerik:RadAjaxManager ID="ajaxManager" runat="server" DefaultLoadingPanelID="ajaxLoadingPanel" >
            <AjaxSettings>
               <telerik:AjaxSetting AjaxControlID="divGrid">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="divGrid" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="divNonGrid">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="divNonGrid" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>
        <telerik:RadAjaxLoadingPanel ID="ajaxLoadingPanel" runat="server" Skin="" Transparency="20" >
            <div id="Div1" style="background-color: #F0F0F0; height:100%; width:100%;" runat="server"></div>
        </telerik:RadAjaxLoadingPanel>
    <div>
        <div id="divNonGrid" runat="server">
            <asp:Button ID="btnNonGrid" runat="server" Text="non-grid" />
        </div>
        <div id="divGrid" runat="server">
            <asp:Button ID="btnGrid" runat="server" Text="grid" />
            <telerik:RadGrid ID="RadGrid1" runat="server">
                <MasterTableView>
<RowIndicatorColumn>
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>
  
<ExpandCollapseColumn>
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>
    <Columns>
        <telerik:GridClientSelectColumn UniqueName="column">
        </telerik:GridClientSelectColumn>
        <telerik:GridBoundColumn UniqueName="ID" DataField="ID" >
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn UniqueName="column1">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn UniqueName="column2">
        </telerik:GridBoundColumn>
    </Columns>
</MasterTableView>
                <ClientSettings>
                    <Selecting AllowRowSelect="True" UseClientSelectColumnOnly="True" />
                </ClientSettings>
            </telerik:RadGrid>
        </div>
    </div>
    </form>
</body>
</html>


Just load a couple items into the grid on page load and put a sleep for a couple seconds when the page is posted back.  In order to reproduce: Click the non-grid button, quickly select an item in the grid by clicking the check box, notice that the selection is removed when the ajax response returns.

If I remove the divGrid from being declared in the ajax manager, the grid retains its selected items even when selected during the ajax postback. 


James
Top achievements
Rank 1
 answered on 02 Aug 2010
5 answers
430 views
Hello everybody,

I am very novice in ASP.NET and telerik and i want to know if it's possible to have a big windows when i click on pdf files in radfileexplorer. (because now window are very small when i open files)
How can I do this ? 
I work in asp.net C# and i just use for the moment :

<telerik:Rafileexplorer ID="RadFileEplorer1" Runat="server" width="100%">  
</telerik:Rafileexplorer >

thx


Sorry for my bad english but i'm french ...
Marc
Top achievements
Rank 1
 answered on 02 Aug 2010
1 answer
137 views
Hi,

I have a web page which contains multiple telerik radcharts.I have programetically created these radcharts as shown in the attachment. But these charts are not in alignment. I want them to be properly aligned based to their y-axis line i.e. i want to vertically align them based on their plot area. Also i want to set the width for plot area through code so that all the charts are of same width.

I tried few setting in code but dint get the expected result. Already tried settings are as follows:

1. series.PlotArea.Appearance.Dimensions.Margins.Left to align the charts vertically but could not get desired result.

2. series.PlotArea.Appearance.Dimensions.Width to set the width of plot area so that all charts are displayed with same width but could not get desired result.

I have tried same above mentioned setting with radcahrt.PlotArea but no effect.

Can anyone please help me resolving these issues at the earliest.

Thanks in advance...
Krishna Samaga B.

Giuseppe
Telerik team
 answered on 02 Aug 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?