Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
145 views
Hi,
Recently we have migrated our project from ASP.Net 1.1 Web Application  to .Net 2.0 Web Application.
We are trying to use a telerik Rad Combobox in our application for AJAX implementation. We currently have two kinds of development environments.
  • Windows 2000, Visual Studio 2005, IIS 5.0.
  • Windows VISTA,Visual Studio 2005, IIS 7.0.
When we set up the teleric in the IIS 5.0 environment, it works perfectly fine, but we are not able to set the application in IIS 7.0. Following error is coming while implementing the same:
 
'~/Telerik.Web.UI.WebResource.axd' is missing in web.config. RadScriptManager requires a HttpHandler registration in web.config. Please, use the control Smart Tag to add the handler automatically, or see the help for more information: Controls > RadScriptManager
 
We have refered to lots of sites and made the config file changes. Below is the setup.
 
<system.webServer>
  <validation validateIntegratedModeConfiguration="false">
  </validation>
  <handlers>
   <add name="WebResourceHandler" path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" />
  </handlers>
        <httpRedirect enabled="false" destination="" exactDestination="true" childOnly="true" />
 </system.webServer>
 
We have also tried entering the Version Number in the type field but the same error persists. We have used smart tag to add handler automatically and then change httpHandler it to Handler but not able to resolve the issue.
 
Could you please help us in this.
Appreciate if you could share us all the steps to be followed for  Windows VISTA,Visual Studio 2005, IIS 7.0 environment.
Atanas Korchev
Telerik team
 answered on 07 Nov 2008
1 answer
91 views
When I delete all the content in the editor and then add something else I get a span tag with a background color added around the new content.  

<span style="background-color: #f0f0f0">
Rumen
Telerik team
 answered on 07 Nov 2008
1 answer
87 views
Hello

I am using Q2 2008 Rad Controls may u send me the resources files for the controls Rad Grid, Rad Editor , Rad Scheduler and rad date time picker to convert them into Arabic so I have Arabic interface

Thank you
Mai
Yavor
Telerik team
 answered on 07 Nov 2008
3 answers
390 views
I have a button outside my radgrid which when clicks, calls clientside javascript to open a modal radwindow and the window executes a wizard to create users for my grid. When the radwindow closes, I want the grid to rebind to show the new users. I have the window being created in the onclientclick event of the button. I also have an onclick server event handler for the button to rebind the grid, but it never gets executed. How can I rebind the grid after the window closes? I am attaching some code - hope it's enough....

aspx and Javascript:
   <div style="height:40px;width:50px;">
   <asp:Button  runat="server" id="WizardButton" style="width:170px;"  OnClientClick="openWin('<%# TextBoxOrderDetailID.Text %>'); return false;"   OnClick="rebindUsers" Text="Create Users"> </asp:Button>
      
    </div>
   <telerik:RadWindowManager ID="wizardWindowManager"           
            Behaviors=" Move, resize, close" Modal="true" ReloadOnShow = "true" BackColor="AliceBlue" ForeColor ="AntiqueWhite" KeepInScreenBounds="true"  runat="server"  Skin="Office2007" VisibleStatusbar="false"  BorderColor="AliceBlue" >
    </telerik:RadWindowManager>

.....

 <telerik:RadGrid ID="usersGrid" runat="server"  
       DataSourceID="ContentCentralUsers" GridLines="None" Skin="Office2007" AutoGenerateColumns="False"
            ondatabound="usersGrid_DataBound" onitemdatabound="usersGrid_ItemDataBound"   OnItemCreated="usersGrid_ItemCreated"
            onitemevent="usersGrid_ItemDataBound" oniteminserted="usersGrid_ItemInserted" onitemupdated="usersGrid_ItemUpdated"
            ShowStatusBar="True" OnPreRender="usersGrid_PreRender" oninsertcommand="usersGrid_InsertCommand" OnItemCommand="usersGrid_ItemCommand"
            onupdatecommand="usersGrid_UpdateCommand"   >
     
       <MasterTableView  DataSourceID="ContentCentralUsers"  DataKeyNames="user_id,package_cd"
             AllowFilteringByColumn="True" AllowSorting="True"   
              InsertItemPageIndexAction="ShowItemOnFirstPage" CommandItemDisplay="Top"
             NoMasterRecordsText="No users to display.">
            <CommandItemSettings AddNewRecordText="Add new user"  />
            
        
     <Columns>
        <telerik:GridEditCommandColumn ButtonType="ImageButton"  UniqueName="EditCommandColumn1">
                    <HeaderStyle Width="20px" />
        </telerik:GridEditCommandColumn>
        <telerik:GridBoundColumn DataField="user_id" UniqueName="user_id" Visible="false" ReadOnly="true" ></telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="package_cd" UniqueName="package_cd" Visible="false" ReadOnly="true" ></telerik:GridBoundColumn>

        <telerik:GridTemplateColumn HeaderText="Seat(User)" SortExpression="login_name" UniqueName="login_name" >
          <ItemTemplate>
             <asp:Label ID="login_name"   runat="server"  Text='<%#Eval("login_name") %>'></asp:Label>
          </ItemTemplate>
          <EditItemTemplate>
             <asp:TextBox ID="loginname" Text='<%#Eval("login_name") %>'  runat="server"  OnTextChanged="change_loginName"></asp:TextBox>
             <asp:RequiredFieldValidator id="loginnameRequiredFieldValidator" runat="server" ErrorMessage="* User name required" Display="Dynamic"
                ControlToValidate= "loginname"></asp:RequiredFieldValidator>
           </EditItemTemplate>
         </telerik:GridTemplateColumn>
         <telerik:GridTemplateColumn HeaderText="Password" SortExpression="password" UniqueName="password"  EditFormColumnIndex="1" AllowFiltering="false">
          <ItemTemplate>
             <asp:Label ID="password"   runat="server"  Text='<%#Eval("password") %>'></asp:Label></ItemTemplate>
             <EditItemTemplate>
              <asp:TextBox ID="editPassword" Text='<%#Eval("password") %>'  runat="server"  OnTextChanged="change_Password" ></asp:TextBox><asp:RequiredFieldValidator id="passwordRequiredFieldValidator" runat="server" ErrorMessage="* Password required" Display="Dynamic"
                  ControlToValidate= "editPassword"></asp:RequiredFieldValidator>
             </EditItemTemplate>
          </telerik:GridTemplateColumn><telerik:GridTemplateColumn HeaderText="Email" SortExpression="email" UniqueName="email" >
          <ItemTemplate>
             <asp:Label ID="email"   runat="server"  Text='<%#Eval("email") %>'></asp:Label></ItemTemplate><EditItemTemplate>
             <asp:TextBox ID="editEmail" Text='<%#Eval("email") %>'  runat="server"  OnTextChanged="change_email"></asp:TextBox><asp:RequiredFieldValidator id="emailValidator1" runat="server" ErrorMessage="* Email required"    Display="Dynamic"
                 ControlToValidate= "editEmail"></asp:RequiredFieldValidator><asp:RegularExpressionValidator Runat="server" ErrorMessage="* Invalid E-mail Address" ID="emailValidator2"  Display="Dynamic"
                 ControlToValidate="editEmail" ValidationExpression=".+@.+\.[a-z]+"></asp:RegularExpressionValidator></EditItemTemplate></telerik:GridTemplateColumn><telerik:GridTemplateColumn HeaderText="Package"  UniqueName="DefaultPackage" EditFormColumnIndex="1" >
                       <HeaderStyle Width="100%" />
                        <ItemTemplate>
                            <asp:Label runat="server" ID="Label1" Text='<%#..........



Javascript:
function openWin(OrderDetailID) {

        var urlArgs = cbeGetURLArguments();

        var sbOID = parseInt(urlArgs['sbOID']);
        var queryODID = parseInt(urlArgs['sbODID']);
        var sbproductid = parseInt(urlArgs['sbproductid']);
        var SAPID = urlArgs['SAPID'];

        var txtbxODID = document.getElementById('TextBoxOrderDetailID').value;
        var txtbxProduct = document.getElementById('TextBoxProduct').value;
        var licensePrice = document.getElementById('licensePrice').value;
        if (txtbxODID == null)
            sbODID = queryODID;
        else
            sbODID = txtbxODID;


        var windowURL = "v8Wizard_1.aspx?sbODID=" + sbODID + "&sbproductid=" + sbproductid + "&SAPID=" + SAPID +
                 "&lPrice=" + licensePrice + "&email=" + "" + "&ttt=" + "" + "&p_cd=" + "NTB" + "&sbOID=" + sbOID + "&numUsers=&packagePrice=0";

        var oWnd = radopen(windowURL, "RadWindow1");
        oWnd.setSize(650, 500);
        // oWnd.setSize(650, 600);
        oWnd.center();

        //set a function to be called when RadWindow is closed
        oWnd.add_close(OnClientClose);
    }
    function OnClientClose(oWnd) {


    }

    C#: but this is never getting executed
 protected void rebindUsers(Object sender, EventArgs e)
    {
        TextBoxOrderDetailID.Text = Session["orderDetailID"].ToString();
        CompanyInfoGrid.MasterTableView.Rebind();
        usersGrid.MasterTableView.Rebind();
    }

Yavor
Telerik team
 answered on 07 Nov 2008
3 answers
181 views
I am using the modal popup extender from the ASP.NET ajax control toolkit with a radgrid nested inside that has ajax enabled. During my development I was able successfully test the ajax functionality of the radgrid inside this control. However now that I have moved it onto IIS (used integrated web server in dev) when perform any command on the grid the ajax template will show up and the grid will process however when it finishes the entire modal popup disappears. I have tested this on 2 seperate web servers and rebuilt the website several times.

Does anyone know how I might be able to debug this scenario? I am guessing that there is a problem with the javascript somewhere however I see no errors in the browser.
Vlad
Telerik team
 answered on 07 Nov 2008
1 answer
71 views
When I use the sethtml method to put my html content into the editor it changes the content.  It seems to be trying to clean up things or something.  There are some ending paragraph tags at the end of the content that have starting tags but it adds more starting tags right next to the ending tags and then the formatting is all messed up.
Rumen
Telerik team
 answered on 07 Nov 2008
5 answers
226 views
Hello,

I have a problem with the axis label and zooming functionnality.
Indeed, just consider that I have a chart with a curve ( type = Line ) and the axis bounds are :
X : 50 to 100 with a step of 5
Y: 0 to 2.8 with a step of 0.28

If I zoom, the problem is that the chart doesn't compute new steps and my axis label  are not signifiants.
My goal would be, when I zoom, to re-compute the steps using XScale and YScale. For this, I tried to do this computing inside the OnBeforeLayout event like this :

RadChart1.PlotArea.XAxis.Step = m_originalStepX / RadChart1.ClientSettings.XScale; 
RadChart1.PlotArea.YAxis.Step = m_originalStepY / RadChart1.ClientSettings.YScale; 

But, the problem is that the axis labels are no more aligned with the curve. There is a shift in X and Y.

How can I achieve this ? Is there a simpliest way to change the axis step, and this new step matches the curves ?

Thanks in advance.
Ves
Telerik team
 answered on 07 Nov 2008
1 answer
185 views

Hi,

I just downloaded RadEditorMOSS_5_2_3_Dev.zip and noticed that that Telerik.Web.UI.dll (2008.2.1001.20) is not targeted towards .NET 3.5. i.e. it still references version 1.0.61025 of System.Web.Extensions.

Does the MOSS RadEditor work with .NET 3.5? If so, is there an updated wsp file?

I am using other Telerik ASP.NET AJAX controls and the Telerik.Web.UI.dll (2008.2.1001.35) I have for these references version 3.5 of System.Web.Extensions.

Thanks.

Rumen
Telerik team
 answered on 07 Nov 2008
1 answer
132 views
how do you detect if the column header was clicked for sorting. beccause i want to capture that action so i could reload the page. i have the 

 

If Not ScriptManager1.IsInAsyncPostBack  this is why everytime i click on the column to sort it doesn't work. but then again why do i have to reload the data on every single click on the paging number. in the heirarchy grid, there was no reloading data at all. please help me thank you very much.

Shinu
Top achievements
Rank 2
 answered on 07 Nov 2008
1 answer
107 views
How to deselect a selected row by javascript?

In fact my user want to have two feature.
First they want to have a button to let them deselect all selected rows.
Second, they want to deselect a selected row by single click on it.

Is there any way to achieve this? Thanks.
Princy
Top achievements
Rank 2
 answered on 07 Nov 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?