Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
166 views
I have a radGrid control that is bound to a strongly-typed dataset. In addition to the columns defined in the strongly typed dataset, I also need to add an additional, unbound column. This column needs to conditionally display an image or be left blank. The condition is based upon an external webservice call.

In the ItemDataBound event for the grid, I'm calling my external webservice to determine if the image (unbound) column should display a gif or be left blank. I can't seem to figure this one out??

I've added an ImageButton to the grid at design time and set the ImageUrl property to my gif and all columns now display the gif. Now, in the ItemDataBound event, I want to conditionally remove the gif for some records, but the ImageUrl property does not seem to be available at runtime for me to set it to "" and not display the image? Any help is greatly appreciated!

Thanks,
smithy
Michael
Top achievements
Rank 1
 answered on 14 Aug 2008
1 answer
219 views
Hi Telerik Team,

I have an issue with Rad Window. When I click on a link on my default page which opens a Rad Window (Has a break point on Page_Load event), everything works fine. If I Click the Top Right X to close the Rad Window and click the link on the default page to re open the Rad Window, the Page_Load event of the RadWindow does not fire at that time.
How do I solve this

Regards
Ashvin
Georgi Tunev
Telerik team
 answered on 14 Aug 2008
5 answers
167 views
I followed the lab in your TelerikRadControlsASPNET_tutorial.pdf.  But the problem is once I open the window and click the upper x in the popup window the window will not come up again. I have to do a full page reload to get the link to work again.  Any Ideas.  2008 Q2 release.
Georgi Tunev
Telerik team
 answered on 14 Aug 2008
1 answer
77 views
Hi - we have a RadGrid that has an edit form associated with each row, and the edit form loads a custom control. 

When the edit form control loads, I am able to get a reference back to the RadGrid data item using this._dataItem;

The edit form control loads some basic data and then another grid for some detail data, and we use the id from the parent RadGrid dataitem to load this detail grid in the edit form.  We have enabled paging on the grid in the edit form.

The problem is that when one of the paging controls is hit on the grid in the edit form, and the grid tries to "re-get" the data in the "Grid_NeedDataSource" method in order to display the next subset, this._dataItem is now null, so we don't have access to the parent data item id in order to re-get the detail data for the edit form.

So, the question is, is there something I need to do to make sure that I still have a reference to the data that opened the edit form, when the request for the next page of data is made on the edit form?

thanks,
Sheryl


Nikolay Rusev
Telerik team
 answered on 14 Aug 2008
2 answers
99 views
Hi,

RadPanelBar is doing something rather odd inside my content page.

RadPanelBar rendering error inside content page.

As can be seen in the image, the RadTextBox isn't having any issues. I also tried placing a RadPanelBar in another content page that holds multiple RadGrids and there too it produces the issue as seen in the image.

Any idea what is going on? The error message makes no sense at all (cannot cast RadPanelItemCollection to RadPanelItemCollection, eh... ok..).

Here's the HTML script of the content page:

<%@ Page Language="C#" MasterPageFile="~/Intranet/Intranet.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="EnterpriseDemo.Intranet.Default" Title="Enterprise Demo (Intranet)" %> 
 
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %> 
 
<asp:Content ID="IntranetDefaultContent" ContentPlaceHolderID="IntranetWorkAreaContentPlaceHolder" runat="server"
    <asp:LinqDataSource ID="NewsLinqDataSource" runat="server"  
        ContextTypeName="EnterpriseDemo.Intranet.Database.IntranetDataContext"  
        EnableDelete="True" EnableInsert="True" EnableUpdate="True" OrderBy="Date"  
        TableName="News"
    </asp:LinqDataSource> 
    <telerik:RadPanelBar ID="IntranetNewsRadPanelBar" Runat="server" Skin="Outlook" Width="100%"
        <CollapseAnimation Type="None" Duration="100"></CollapseAnimation> 
        <Items> 
            <telerik:RadPanelItem runat="server" Text="Company News" Selected="True" Expanded="True"
                <Items> 
                    <telerik:RadPanelItem runat="server" Text="News Item 1"
                    </telerik:RadPanelItem> 
                </Items> 
            </telerik:RadPanelItem> 
            <telerik:RadPanelItem runat="server" Text="Department News"
            </telerik:RadPanelItem> 
        </Items> 
        <ExpandAnimation Type="None" Duration="100"></ExpandAnimation> 
    </telerik:RadPanelBar> 
    <br /> 
    <telerik:RadTextBox ID="RadTextBox1" Runat="server" Skin="Outlook"
    </telerik:RadTextBox> 
</asp:Content> 

As far as I can tell, there are no issues with that HTML.

Thanks,

Mike



PureCode
Top achievements
Rank 2
 answered on 14 Aug 2008
5 answers
185 views
I did a search but found nothing, so if this has been addressed before, I am sorry. It is not a big issue at all, but if I can avoid it I would like to.

I have a RadGrid with various clickable contents. Clicking a column opens a radWindow to display details, depending... no problems there.

But if I click a new link, the content loads in the window as expected, but the window 'creeps' up a tiny bit. if I continue clicking new links, eventually the window creeps high enough to where I can no longer access the close or minimize buttons.

Again, not a big issue, but I can forsee some user sending ME a support ticket because he went 'click crazy' :)

Ideas? I don't have my project handy to post the window code, but I have a RadWindow of 600 x 800, Top=20px, Left=300px, NOT Modal.

Thanks for listening!

Sean
Electronic Arts, Orlando FL
Georgi Tunev
Telerik team
 answered on 14 Aug 2008
3 answers
194 views
Hi..
I'm getting the following error when I try and view my grid in 'desgin' mode.

'Error Creating Control'
cannot create an object of type'System.String[]' from its string represenation 'ID' fo the 'datakeynames'


any ideas ?
thanks
Daniel
Telerik team
 answered on 14 Aug 2008
2 answers
115 views
Hello,

I would like to be able to programmatically and asynchronously (without a full postback) switch from a hierarchal to a flat (group-by) grid.

Basically the first level of the hierarchal grid would have only one visible column and one index column (not visible). The user will click a button I will want to asynchronously rebind the grid to a single table (non-hierarchal) with many visible columns (and vise-versa).

Of course I am able to do this with a full postback, but what I would like is to fully change (and redisplay to the user) a new/different grid scheme 100%  asynchronously.

Thank you!
Jeff
Top achievements
Rank 1
 answered on 14 Aug 2008
4 answers
228 views
Greetings.
I followed the example for Using RadUpload in an Ajaxified Grid, making only minor adjustments for my data connections and field name. 
RadGrid1_InsertCommand, and DeleteCommand both fire twice.  I've attached to the aspnet process in an attempt to troubleshoot and I'm getting no where. 

On Insert: a file gets copied to my directory and two records are created in my database.  Alternatively on Delete, the file gets purged and the first record gets deleted, then i get a stop error b/c on the second time around the file no longer exists. 

Any thoughts would be greatly appreciated.

michael
Top achievements
Rank 1
 answered on 14 Aug 2008
1 answer
607 views
I have an ASP panel that contains a button. The button acts as the ajax initiator. When clicked, the button's server click event needs to run a javascript that is outside of the panel. I had to put the javascript outside of the panel because other controls outside of the panel also need to run the script. I decided to use a Literal control and simply put the javascript into the Text property in the button's click event. I am using RadAjaxManager. I thought I could then have the button act as an initiator for the literal control but that didn't work. Even putting the control inside of a PlaceHolder didn't work.

The script never gets executed. If I turn off Ajax, it does get executed.

When I read the documentation on RadAjax, it only says the following:

"RadScriptBlock is used where you have JavaScript that evaluates after an AJAX request, for example when the content of RadAjaxPanel is updated asynchronously. RadScriptBlock also can be used like RadCodeBlock to handle server code blocks (<% ... %>)."

What is not clear here is how this RadScriptBlock applies when you are NOT using a RadAjaxPanel. In any event, even after I add a RadScriptBlock, the script never runs.

The Microsoft documentation also indicates the following:

"If you want to register a script block that does not pertain to partial-page updates, and if you want to register the script block only one time during initial page rendering, use the RegisterClientScriptBlock method of the ClientScriptManager class."

The script I am trying to update is not what I consider a partial-page update. Either it should update always whenever any Ajax call is made or only when I want it to, such as in the button's click event. The confusion seems to be understanding when to use Microsoft's built-in Ajax functions and when to rely on Telerik's. Can someone please indicate how to solve my problem as I have spent hours with no success. Preferrably someone at Telerik should comment here on this issue because Telerik is clearly implementing a mixture of Microsoft's Ajax along with their own support mechanisms.

Thank you for your help
Johann

Missing User
 answered on 14 Aug 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?