Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
155 views
We have a Problem with a RadWindow on RadAjaxPanel

On our Masterpage we have:

<div id="paneInhalt" style="float: left; width: 2000px; border-left: solid 2px silver;
    overflow: auto; visibility: hidden">
    <telerik:RadAjaxLoadingPanel runat="server" ID="RadAjaxLoadingPanel1">
    </telerik:RadAjaxLoadingPanel>
    <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="RadAjaxLoadingPanel1">
        <asp:ContentPlaceHolder ID="cphHauptInhalt" runat="server">
        </asp:ContentPlaceHolder>
    </telerik:RadAjaxPanel>
</div>

And on a usercontrol in content:

<telerik:RadWindow runat="server" ID="pnlBearbeiten" Overlay="true" VisibleStatusbar="false"
    Modal="true" Height="600" Width="950" KeepInScreenBounds="True" VisibleTitlebar="False">
    <ContentTemplate>
        <uc3:EBetriebeAuswahl ID="etlFilialen" runat="server" />
        <br />
        <div style="float: right">
            <telerik:RadButton runat="server" ID="btnAbbrechen" Text="Abbrechen" AutoPostBack="False"
                OnClientClicked="HideAbnehmerauswahl">
                <Icon PrimaryIconCssClass="rbCancel" />
            </telerik:RadButton>
            <telerik:RadButton runat="server" ID="btnSave" OnClientClicking="disableCheckSave"
                Text="Speichern" OnClick="btnSpeichern_Clicked">
                <Icon PrimaryIconCssClass="rbSave" />
            </telerik:RadButton>
        </div>
        <p style="clear: both" />
    </ContentTemplate>
</telerik:RadWindow>

When the usercontrol is loaded, I get an error: "Error: '_events' is Null or not an Object".

If the page is loaded without this control, the error didn't occure, the same if i remove the window.

In some posts I have read about the problem is beeing fixed in Version 2010.1.??? But we are using 2011.1.315.35 and the problem exists.

How can I fix this?
Rory
Top achievements
Rank 1
 answered on 06 Mar 2012
3 answers
129 views
Hi,

I am using Telerik ASP.NET Ajax controls since 2006 release, My current release is Q1 2012, for the context menu on RadGrid item is working but the menu is displayed on the top of the page as attached here in the image menu2.png. This case was working fine with the same code in the 2011 release before upgrading as attached in the image menu1.png . So, This case is not working fine after replacing the release 2011  with 2012.

Please advise ASAP.

Thanks
Ahmad
Top achievements
Rank 2
 answered on 06 Mar 2012
6 answers
112 views
not in
protected
void Button1_Click(object sender, EventArgs e)
{
  foreach (GridViewRow row in GridView1.Rows)
  {
    RadRating ratg = (RadRating)row.FindControl("RadRating1");
  }
}
-------------

me auto postbak rate value to grid ?
rate value for template gird
on postbak save to database
Slav
Telerik team
 answered on 06 Mar 2012
1 answer
124 views
I followed the below tutorial link to populate a RadComboBox using WCF service.
This works fine on localhost but when I deploy it on the server I'm getting an error "The server method 'LoadClients' failed"  whenever this service is called.

http://www.telerik.com/help/aspnet-ajax/combobox-load-on-demand-wcf-service.html


WebConfig:
<system.serviceModel>
        <behaviors>
            <endpointBehaviors>
                <behavior name="WCFClientsAspNetAjaxBehavior">
                    <enableWebScript/>
                </behavior>
            </endpointBehaviors>
        </behaviors>
        <serviceHostingEnvironment aspNetCompatibilityEnabled="true"/>
        <services>
            <service name="WCFClients">
                <endpoint address="" behaviorConfiguration="WCFClientsAspNetAjaxBehavior" binding="webHttpBinding" contract="WCFClients"/>
            </service>
        </services>
        <bindings>
 <webHttpBinding>  
  <binding name="webBinding">
      <security mode="Transport">
       </security
   </binding>
   </webHttpBinding>

WCFClients.svc:
<OperationContract()> _
Public Function LoadClients(ByVal context As RadComboBoxContext) As RadComboBoxData
 
    'The RadComboBoxData object contains all required information for load on demand:
    ' - the items
    ' - are there more items in case of paging
    ' - status message to be displayed (which is optional)
    Dim result As New RadComboBoxData()
    ' Dim connectionStr As String = Current.Session("ConnectionString").ToString
    Dim connectionStr As String = "MyConnectionString"
    Dim TransMgr As New TransmgrClientsDataContext(connectionStr)
 
    'Get all items from the Customers table. This query will not be executed untill the ToArray method is called.
    Dim allCustomers = From c In TransMgr.Clients _
        Order By c.LastNm _
        Select customer = New RadComboBoxItemData With _
        {.Text = c.LastNm & " " & c.FirstNm, .Value = Convert.ToString(c.Clnt_No)}
 
    'In case the user typed something - filter the result set
    If Not [String].IsNullOrEmpty(context.Text) Then
        allCustomers = allCustomers.Where(Function(item) item.Text.StartsWith(context.Text))
    End If
    'Perform the paging
    ' - first skip the amount of items already populated
    ' - take the next 10 items
    Dim customers = allCustomers.Skip(context.NumberOfItems).Take(10)
 
    'This will execute the database query and return the data as an array of RadComboBoxItemData objects
    result.Items = customers.ToArray()
 
 
    Dim endOffset As Integer = context.NumberOfItems + customers.Count()
    Dim totalCount As Integer = allCustomers.Count()
 
    'Check if all items are populated (this is the last page)
    If endOffset = totalCount Then
        result.EndOfItems = True
    End If
 
    'Initialize the status message
    result.Message = [String].Format("Items <b>1</b>-<b>{0}</b> out of <b>{1}</b>", endOffset, totalCount)
 
    Return result
 
End Function

  

aspx:

<script type ="text/javascript" >
    function validateCombo(source, args) {
        args.IsValid = false;
        var combo = $find(source.controltovalidate);
        var selectedItem = combo.get_selectedItem();
        if (selectedItem) {
            var value = selectedItem.get_value();
            if (value > 0) {
                args.IsValid = true;
            }
        }
    }
</script>
<telerik:RadComboBox runat="server" ID="rcbClients" Height="100px" EnableLoadOnDemand="true"
    ShowMoreResultsBox="true" EnableVirtualScrolling="true" AllowCustomText="false"
    EmptyMessage="Type lastname ...">
    <WebServiceSettings Path="WCFClients.svc" Method="LoadClients" />
</telerik:RadComboBox>
<asp:CustomValidator ID="cvClients" runat="server" ClientValidationFunction="validateCombo"
    SetFocusOnError="true" ErrorMessage="Please select a client from Dropdown" ControlToValidate="rcbClients">*
</asp:CustomValidator>


Thank you for your help!!
Dimitar Terziev
Telerik team
 answered on 06 Mar 2012
2 answers
57 views

Hi,

 

 Initially, My Application referenced with Telerik 2008 version and It accessed custom themes from the

App_themes folder. It was working fine. Now, I have updated the telerik version 2011. I am surprised to see that all my css

are not working properly. Application Design failed in all radcontrols like RadGrid,RadTreeview etc.,

 

I have read documentation in the below url,

http://www.telerik.com/help/aspnet-ajax/grid-appearance-creating-new-skins.html

 

For RadGrid Design, I did the following,

 

I have changed some class names in the custom.css file.

 

.RadGrid  to .RadGrid_Office2007 and .MasterTable_2007 to .rgMasterTable.

 

After changing this, I have got some decent alignment of this grid. But, I am not able

to retain the original design. I have both the versions (Telerik) of this application, 

not able to fix up the design problem exists in the latest version (2011).

 

Please see the screenshot attached herewith.

 

Please do the needful.

 

 

Thanks,

 

V. Raguraman.

 

Galin
Telerik team
 answered on 06 Mar 2012
2 answers
144 views

I am working with version 2011.3.1305.35 of the RadGrid. I have a wide grid with 19 columns. There is an additional field I need to add that contains comments, which by its self can be 1000 characters long. If I add that column to the end of the grid most of the data is cut off. What I want to do now is put that comments column in a details table so the user can click the expand icon and view the comments. I think I have it set up correctly however, there is code in the ItemCreated event that tries to run when the expand icon is clicked. What is the best way to determine if the item being created is part of the details table?

Here is how I have the set grid setup:

<telerik:RadGrid ID="tGrid" runat="server" AllowPaging="True" AllowCustomPaging="true"
                PageSize="500" AllowSorting="True" AutoGenerateColumns="False" CellSpacing="0"
                OnNeedDataSource="tGrid_NeedDataSource" AllowMultiRowSelection="true" OnItemCreated="tGrid_ItemCreated"
                OnDataBound="tGrid_DataBound">
                <PagerStyle AlwaysVisible="True" Position="Top" />
                <MasterTableView Width="100%" DataKeyNames="schedID" ClientDataKeyNames="schedID">
                 <Columns> .... </Columns>
                    <DetailTables>
                        <telerik:GridTableView AdditionalDataFieldNames="schedComments" DataKeyNames="SchedID">
                            <Columns>
                                <telerik:GridBoundColumn DataField="schedComments" Display="true" UniqueName="schedComments"
                                    SortExpression="schedComments">
                                    <HeaderStyle Width="100%"></HeaderStyle>
                                    <ItemStyle Wrap="true" />
                                </telerik:GridBoundColumn>
                            </Columns>
                        </telerik:GridTableView>
                    </DetailTables>
                </MasterTableView>
</telerik:RadGrid>

dave
Top achievements
Rank 1
 answered on 06 Mar 2012
2 answers
71 views
Greetings,

I'm trying to open an a
<script type="text/javascript">
 
 
    function openRadWin() {
        radopen("Creation_Incident_Details.aspx","RadWindow1");
    }
    </script>
<asp:ImageButton ID="ImageButton8" runat="server" ImageUrl="~/img/dupliquer.jpg"
     CommandArgument='<%# Eval("idFamille") %>' ToolTip='<%# Eval("nomFamille") %>' OnClientClick="openRadWin(); return false;" />
  
       <telerik:RadWindowManager ID="RadWindowManager1" runat="server" EnableShadow="true">
<Windows>
    <telerik:RadWindow
        id="RadWindow1"
        runat="server"
        width="400px"
        height="400px"
        title="Telerik RadWindow">
    </telerik:RadWindow>
</Windows>
</telerik:RadWindowManager>

The problem is my window appears with a huge bug: ( see attached file )



Please note i get this bug with all the browsers i'm using.
Do you know where this might come from ?

thank you in advance
Ronan BARRANGER
Top achievements
Rank 1
 answered on 06 Mar 2012
1 answer
71 views
The docs seem to be missing the classes EditorToolBaseCollection and EditorToolBase.

--
Stuart
Rumen
Telerik team
 answered on 06 Mar 2012
3 answers
90 views
There seems to be a lot of talk about widgets these days.
Any specific Telerik solutions ?
I was looking at using a rad dock project as the main window.
Also develop some server controls in separate projects and use them the the main project.
Add them as toolkit items perhaps.
The server control should be stand alone.
Is this possible
Is this the best solution
Any advise please.
Regards
Jim
Zdravko
Telerik team
 answered on 06 Mar 2012
4 answers
115 views
I'm implementing a mail for using RadEditor.

I need to be able to switch between Html and Plain Text.

I have a control on the page to do the switch, but I'm struggling with the code to actually update what the user sees in the editor.

Specifically, I'm trying to implement Outlook-like functionality so that, if they select Plain Text, all the formating is removed from any existing content and the font is switched to a non-proportional one.

I'm calling this when the format selection changes ...
setTimeout(function ()
{
    sender.fire('FontName', { value: 'Courier New' });
}, 300);
and whilst this changes the selected font, it doesn't change any existing text.

Is there a way for me to select all of the content before calling the .fire method?

--
Stuart

Rumen
Telerik team
 answered on 06 Mar 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?