Telerik Forums
UI for ASP.NET AJAX Forum
10 answers
963 views

A new feature implemented in ASP.NET 4.0 is the possibility to control the way that controls’ ClientID is generated. At present, RadControls for ASP.NET AJAX expect the ClientID’s of their child controls to be generated by the default method (AutoID). Because of that, if ClientIDMode is set to different method of generation you can experience various problems with RadControls, for example not working dialogs for RadEditor.

Here are some of the errors that you could experience when the ClientIDMode is set to Static:

All RadControls: Invalid JSON primitive:..
RadEditor's dialogs : Error: 'null' is null or not an object
RadEditor's dialogs : Sys.ArgumentNullException: Dialog Parameters for the FindAndReplace dialog do not exist  Parameter name: dialogueName.
RadFileExplorer: might not display the files in the folder
RadGrid : calling get_masterTableView() returns null
"Microsoft JScript runtime error: 'get_postBackElement().id' is null or not an object"

This problem is already added to our TODO list and it should be fixed for RadControls for ASP.NET AJAX Q2 2010. For the time being, we recommend to use ClientIDMode="AutoID" or if you have to use different method you should set the ClientIDMode property’s value explicitly to AutoID to the specific RadControl.

Additional information regarding this new .NET4.0 feature is available in the following article:
ASP.NET 4.0 ClientID Overview

Please note that Microsoft does not recommend setting ClientIDMode="Static" on pages which do contain dynamic controls.

Best regards,
The Telerik team

Maria Ilieva
Telerik team
 answered on 25 Jun 2015
6 answers
308 views
Hi,

I'm trying to do an ajax update panel in a radtabstrip, radmultipage and user controls, but i can't seem to make it work.

I think it should be easy, but i have to miss something.

My structure :

Default.aspx
 
<telerik:RadAjaxManager ID="radManager" runat="server" />
 
<telerik:RadTabStrip ID="rtsSheet" runat="server" MultiPageID="radMultiPage" CausesValidation="false">
          <Tabs>
               <telerik:RadTab PageViewID="rpvTradeName" ToolTip="<%$ Resources: General, TradeNameTitle %>">
                    <TabTemplate>
                        <asp:Literal ID="ltrlTradeName" runat="server" Text="<%$ Resources: General, TradeName %>" />
                    </TabTemplate>
                </telerik:RadTab>
                <telerik:RadTab PageViewID="rpvViewAll" ToolTip="<%$ Resources: General, ViewAll %>">
                    <TabTemplate>
                        <asp:Literal ID="ltrlViewAll" runat="server" Text="<%$ Resources: General, ViewAll %>" />
                    </TabTemplate>
                </telerik:RadTab>
            </Tabs>
</telerik:RadTabStrip>
<telerik:RadMultiPage Width="900" ID="radMultiPage" runat="server" SelectedIndex="0">
           <telerik:RadPageView ID="rpvTradeName" runat="server">
                <MyUserControl:TradeName ID="ucTradeName" runat="server" />
            </telerik:RadPageView>
           <telerik:RadPageView  ID="rpvViewAll" runat="server">
                <MyUserControl:ViewAll ID="ucViewAll" runat="server" />
            </telerik:RadPageView>
        </telerik:RadMultiPage>

TradeName.ascx
  
<telerik:RadAjaxManagerProxy ID="radManager" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="rgTradeName">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="rgTradeName" />
                <telerik:AjaxUpdatedControl ControlID="rgvaTradeName" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManagerProxy>
 
<telerik:RadGrid runat="server" AllowSorting="true"
    ID="rgTradeName" AutoGenerateColumns="false"
        OnNeedDataSource="SheetNeedDataSource"
        OnItemCommand="SheetItemCommand"
        OnDeleteCommand="SheetDeleteCommand" AllowPaging="true" PageSize="10"
    />
  
  
ViewAll.ascx
  
<telerik:RadGrid ID="rgvaTradeName" runat="server" />


Can you tell me why my rgvaTradeName are not updated when the rgTradeName are updated ? Maybe i'm not doing it correctly ?

Thanks in advance

Maria Ilieva
Telerik team
 answered on 25 Jun 2015
4 answers
240 views
Hey there,

We are having a problem that, given a typical search, seems rather common with RadWindows. When opening a window towards the bottom of a page that scrolls, it forces the browser back up to the top.  Common causes tend to be the use of anchor tags or setting focus within the RadWindow, but these do not pertain to our situation.

We have implemented a temporary solution of capturing the scroll position and returning the page to that position, but the flicker / flash that occurs is undesirable.

After some additional testing we found that ShowContentDuringLoad seems to have something to do with it. We have this set to false to allow for our forms to load before rendering to the screen. When set to true, the browser stays put and keeps the scroll position as desired.

Has anyone else run into this problem or have any possible solutions? We'd like to keep the ShowContentDuringLoad set to false. Thanks.
Suresh
Top achievements
Rank 1
 answered on 25 Jun 2015
15 answers
727 views
I'm planning to use radscheduler for a project and wondering if anyone has done syncing of radscheduler to Outlook. Is this a possibility?

Thanks!
Hristo Valyavicharski
Telerik team
 answered on 25 Jun 2015
1 answer
628 views

I'm exporting a grid to Excel (HTML format) and i Need to have more control over the borders.

 

For example If I have columns "A","B", and "C" and I do not want to see the B's right border, which I guess you could also assume was C's left border.

How can I, upon exporting to excel from the rad grid, set this properly.

I've created the desired look in EXCL and attached a screen shot.

 

Thanks,

 

 

Konstantin Dikov
Telerik team
 answered on 25 Jun 2015
3 answers
180 views
I am searching for a solutions for 2days

Is it possible to telerik rad controls inside a AngularJS Single page application? when i add a rad combo box or an rad grid. i am getting the display of the grild/combo. but non of the basic functionality working in the page

for example when i add a rad grid: pagination, sorting, grouping fix/width/height not working. But when i enable fillter in the grid the filter is working perfectly.

Any Idea why? if you need i can attach the source file.



Radoslav
Telerik team
 answered on 25 Jun 2015
1 answer
97 views

I'm trying to write a grid and form where the form will display the data for the line selected on the grid.   

Grid and DS

<telerik:RadGrid ID="GridPeople" runat="server" AllowFilteringByColumn="True" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" DataSourceID="SQLDSPeople" GroupPanelPosition="Top">
    <ClientSettings EnablePostBackOnRowClick="true">
        <Selecting AllowRowSelect="True" />
    </ClientSettings>
    <MasterTableView DataSourceID="SQLDSPeople">
        <Columns>
            <telerik:GridBoundColumn DataField="person_ref" visible="false" UniqueName="person_ref" />
            <telerik:GridBoundColumn DataField="forename1" FilterControlAltText="Filter" HeaderText="Forename" UniqueName="forename" />
            <telerik:GridBoundColumn DataField="surname" FilterControlAltText="Filter" HeaderText="Surname" UniqueName="surname" />
        </Columns>
    </MasterTableView>
</telerik:RadGrid>
 
<asp:SqlDataSource ID="SQLDSPeople"
    runat="server"
    ProviderName="System.Data.SqlClient"
    SelectCommand="SELECT [person_ref], [forename1     ], [surname] FROM [PERSON] " />

With just this, everything works find, I can select different rows and the row highlights and the code behind event gets called.

Here's the dataform and its DS.

<telerik:RadDataForm ID="FormPerson" runat="server" DataKeyNames="person_ref" DataSourceID="SQLDSPerson">
    <LayoutTemplate>
        <div id="itemPlaceholder" runat="server"></div>
    </LayoutTemplate>
    <ItemTemplate>
        <fieldset>
            <div>
                <asp:Label runat="server" ID="FirstNameLabel2" Text="First Name:"></asp:Label>
                <telerik:RadTextBox runat="server" ID="FirstNameTextBox2" Text='<%# Bind("forename1")%>' MaxLength="20" />
            </div>
            <div>
                <asp:Label runat="server" ID="LastNameLabel2" Text="Last Name:"></asp:Label>
                <telerik:RadTextBox runat="server" ID="LastNameTextBox2" Text='<%# Bind("surname")%>' MaxLength="20" />
            </div>
            <div>
                <telerik:RadButton ID="ButtonUpdate" Text="Update" runat="server" CommandName="Update" />
            </div>
        </fieldset>
    </ItemTemplate>
</telerik:RadDataForm>
 
    <asp:SqlDataSource ID="SQLDSPerson"
        runat="server"
        ProviderName="System.Data.SqlClient"
        SelectCommand="SELECT [person_ref], [forename1], [surname] FROM [PERSON] WHERE ([person_ref] = @person_ref)"
        UpdateCommand="UPDATE [PERSON] SET [forename1] = @forename1, [surname] = @surname WHERE [person_ref] = @person_ref">
        <SelectParameters>
            <asp:ControlParameter ControlID="GridPeople" Name="person_ref" PropertyName="SelectedValue" Type="String" />
        </SelectParameters>
        <UpdateParameters>
            <asp:Parameter Name="forename1" Type="String" />
            <asp:Parameter Name="surname" Type="String" />
            <asp:Parameter Name="person_ref" Type="String" />
        </UpdateParameters>
    </asp:SqlDataSource>

As soon as I add this, the grid select row stops working and no events are fired.  Also, the grid doesn't appear at all.

Here's the code behind bits.

Private Sub Page_Init1(sender As Object, e As EventArgs) Handles Me.Init
    SQLDSPeople.ConnectionString = MyConnStr
    SQLDSPerson.ConnectionString = MyConnStr
End Sub
 
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
    If Not IsPostBack Then
        GridPeople.SelectedIndexes.Add(0)
    End If
End Sub
 
Private Sub GridPeople_SelectedIndexChanged(sender As Object, e As EventArgs) Handles GridPeople.SelectedIndexChanged
    FormPerson.Rebind()
End Sub
 
Private Sub FormPerson_ItemUpdated(sender As Object, e As Telerik.Web.UI.RadDataFormUpdatedEventArgs) Handles FormPerson.ItemUpdated
    GridPeople.Rebind()
End Sub

 Am I doing something wrong in the RadDataForm ?

 

 

 

 

Eyup
Telerik team
 answered on 25 Jun 2015
2 answers
91 views

Hi Guys i have two problems with the pivotgrid...

 

1.- Is when use the drag and drop for move a field into the everywhere  boxes (all fields, filter fields, row fields, column fields, aggregate filds)

 

2.- I was implement the export to excel from this example and works fine, but when i am group the fields programatically with this other example, the excel have no data...

 thanks a lot.. srry for my bad english

Angel Petrov
Telerik team
 answered on 25 Jun 2015
1 answer
136 views

I have a RadGrid with many columns but one column has a lot of text and I want its width to be 150px.

I do not want it to wrap to the next line, it needs to be one line but it must hide all of the wrapped text.

By hide I mean the user should be able to drag the size of the column and if they make it bigger more text can be visible.

How is that achieved?

Eyup
Telerik team
 answered on 25 Jun 2015
1 answer
72 views

Hello

 

I currently have a RadGrid with some data which is fetched with a stored procedure. After the grid is populated I append a GridHyperLinkColumn to the end of it. I am trying to store links in each cell of this column whose URL parameter depends on a value stored in the same row of the grid. Is there a simple way to iterate through each link in the column and construct a URL based on the value of a cell in that same row?

 

Thanks for the help.

Eyup
Telerik team
 answered on 25 Jun 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?