Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
210 views

Hi All,

Iam using 2008.3.1314.35 version of RadControls for my application.
I want to make RadGrids AJAX enabled so that for every postback event it will work asynchronously.
But in this version RadGrid is not showing any property to do the same. 
Right now it is showing one property 'EnableAjaxSkinRendering'. 

I tried with setting this property to True,but still it is not giving me proper result.

I also  tried with by setting properties, 
EnableAJAX="True" EnableAJAXLoadingTemplate="True"

But RadGrid is not accepting these properties for this version.
Is there any way to do the same...?

 

 

 

Daniel
Telerik team
 answered on 25 Feb 2009
2 answers
209 views
I have a RadGrid with an Edit Form FormTemplate.  I use it in PopUp mode when editing.  In the popup I want to set the value of several label controls on the form, but I can't get a reference to those label controls.  Is there a simple way to get a reference to those controls in the edit form template?
example:
<telerik:RadGrid...> 
<EditFormSettings ColumnNumber="3" CaptionFormatString="Edit Person ({0}) Details" 
    CaptionDataField="id" EditFormType="Template">  
    <EditColumn ButtonType="ImageButton" UniqueName="EditCommandColumn1">  
    </EditColumn> 
    <FormTemplate> 
        <table style="width:100%;">  
            <tr> 
                <td class="style1">  
                    id</td> 
                <td> 
                    <telerik:RadTextBox ID="tbId" Runat="server" EmptyMessage="id"   
                        Width="125px" OnTextChanged="tbId_TextChanged" AutoPostBack="true">  
                    </telerik:RadTextBox> 
                </td> 
            </tr> 
            <tr> 
                <td class="style1">  
                    name</td> 
                <td> 
                    <asp:Label runat="server" ID="lblName"></asp:Label> 
                </td> 
            </tr> 
        </table> 
    </FormTemplate> 
    <PopUpSettings Modal="True" ScrollBars="Auto" /> 
</EditFormSettings> 
</telerik:RadGrid> 
So I want the method "tvId_TextChanged" to trigger a db lookup that returns data and inserts it into the lblName control.

Thanks for the help!
Software
Top achievements
Rank 1
 answered on 25 Feb 2009
1 answer
316 views
Hi

I've got trouble with the RadEditor within the RadTabStrip. It's working well if I do not set the EditModes. But as soon I set the EditModes to "html", which obviously only support HTML Input.

It seems that the Content Form (in this case the Iframe in the RadEditor) is disabled, because I can not insert Text and neither read the text which I've set in the Code behind...

I debugged it with the IE DEVBar and saw that there are two IFRAMES both with ID "RadEditor1_contentIframe". The first one is for the Design and Preview mode and the second for the HTML Mode. In this case the 1. Contentframe should not be displayed which is correct the style is set to DISPLAY: none;. So obviously the second Iframe should be visible, which is almost correctly it has no style attribut "Display:none" but it has a Style Attribut HEIGHT: 0px which makes the HTML Content IFRAME invisible. When I set this in the DevBar to 100% I see my Content which I set in the Code behind.

Initial position:
HTML View

 

<telerik:RadTabStrip runat="server" ID="ProcessViewTabs" Skin="Vista" SelectedIndex="0" MultiPageID="ProcessMultiView"> 

 

    <Tabs 

 

 

        <telerik:RadTab Text="Tab 1" runat="server" Enabled="true" PageViewID="Tab1View"></telerik:RadTab>

 

        <telerik:RadTab Text="Tab 2" runat="server" Enabled="true" PageViewID="Tab2View"></telerik:RadTab>

   </Tabs>

 

</telerik:RadTabStrip>

 

 

 

<telerik:RadMultiPage runat="server" ID="ProcessMultiView" SelectedIndex="0">

 

    <telerik:RadPageView ID="Tab1View" runat="server"> </telerik:RadPageView>

 

 

 

    <telerik:RadPageView ID="Tab2View" runat="server">
     <telerik:RadEditor  runat="server" id="RadEditor1" EditModes="Html"></telerik:RadEditor  

 

 

 

</telerik:RadPageView>

</

telerik:RadMultiPage>

 

 

 

 


Code behind:
RadEditor1.Content = "Test Content!";

 

 

 

 

 

 

 

Rumen
Telerik team
 answered on 25 Feb 2009
4 answers
85 views
Hi , I want to know how could I show always the "show more" link at each day of the monthly view, beyond the day has appointments or not.
I want to do that because I need that each thay at monthly view has the link to the daily view.

thanks

Fernando
fer
Top achievements
Rank 1
 answered on 25 Feb 2009
1 answer
169 views
hi,

i always get the following error, if i want to open a popup by radalert():

Details zum Fehler auf der Webseite

Benutzer-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
Zeitstempel: Wed, 25 Feb 2009 14:49:39 UTC


Meldung: 'undefined' ist Null oder kein Objekt
Zeile: 9199
Zeichen: 1
Code: 0
URI: http://localhost/Webgui21/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_ScriptManager_HiddenField&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d1.0.61025.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3ade%3a1f0f78f9-0731-4ae9-b308-56936732ccb8%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2008.3.1314.20%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3ade%3a40af2a53-a50b-4848-aa77-958f331424d9%3a16e4e7cd%3a19620875%3a1e771326%3aaa288e2d%3a874f8ea2%3a33108d14%3abd8f85e4%3bAjaxControlToolkit%2c+Version%3d1.0.20229.20821%2c+Culture%3dneutral%2c+PublicKeyToken%3d28f01b0e84b6d53e%3ade%3ac5c982cc-4942-4683-9b48-c2c58277700f%3ab14bb7d5%3a13f47f54%3a3c55b13e


Meldung: Das Objekt unterstützt diese Eigenschaft oder Methode nicht.
Zeile: 367
Zeichen: 33
Code: 0
URI: http://localhost/webgui21/


That is my code:

                        <telerik:RadWindowManager ID="WinManager" Skin="Vista" DestroyOnClose="false" Width="400" 
                            Height="320" VisibleStatusbar="false" Behaviors="Close, Move" runat="server"
                            <Windows> 
                                <telerik:RadWindow runat="server" ID="WinContact" NavigateUrl="../Pages/Contact.aspx"
                                </telerik:RadWindow> 
                                <telerik:RadWindow runat="server" ID="WinVersion" NavigateUrl="../Pages/EngineVersion.aspx"
                                </telerik:RadWindow> 
                            </Windows> 
                        </telerik:RadWindowManager> 
                                <script type="text/javascript" language="javascript"
                                radalert('test'); 
                                </script> 

Svetlina Anati
Telerik team
 answered on 25 Feb 2009
2 answers
473 views
Hi

I am trying to use the 'select' button to add a RadGrid item to a sort of 'cart' and to
confirm the addition by writing label text. This is the code:
Protected Sub RadGrid1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles RadGrid1.SelectedIndexChanged  
 
        LabelCart.Text = RadGrid1.SelectedValue("Name").Text + " was added to your request list."  
 
End Sub
If I leave out the  RadGrid1.SelectedValue("Name").Text +  part it displays the text when an item is selected.
However with the code as above, it generates an error:

System.NullReferenceException: Object variable or With block variable not set 

I have spent many unhappy hours with 'null reference exception's in the past ... can you put your
 finger on it right away?

Or how should I be doing this?

Thanks a lot!

Clive
Clive Hoggar
Top achievements
Rank 1
 answered on 25 Feb 2009
3 answers
331 views
Hi

I am new to radcontrols

my requirement is to show a tooltip control on clicking image in radgrid

Scenario : In user control I had a radgrid which has 4 coloumns and in 4th column there is a image. I want to open a tooltip on the click of that image,

my tooltip contains labels,textboxes,radio buttons and button called save and on click of button I want to close the tooltip and at the same time only the grid should be refreshed


here my question is:

1. how could I design this in single usercontrol
2. should I use tooltip control or tooltipmanager

can any one help me in deigning this and send me the sequence of steps to follow


Thanks,
Svetlina Anati
Telerik team
 answered on 25 Feb 2009
1 answer
110 views
This problem is occuring on ie7 and ASPNET AJAX Q3 2008.  I have a rad window and window manager. 

The PreserveClientState is set to true in the manager. 
VisibleOnPageLoad is set to true in the window.

The page posts back a lot.  What happens is after the postback, the window is quickly drown in its default position, removed,  and then is rendered in the last position where it existed. 

Is there a way to avoid the brief flash? 

My code is not doing anything regarding position other then specifying a height and width.

Thanks!
Fiko
Telerik team
 answered on 25 Feb 2009
0 answers
316 views
The latest Q3 SP2 release of RadControls for ASP.NET AJAX introduced appearance problem that prevents the toolbar icons to be displayed when using an external skin.

Due to optimization changes made in the Q3 SP2 release (Telerik.Web.UI.dll v.2008.3.1314), the editor's tools sprites were moved to a single location for all skins. We use automatic skin converter which parses RadControls skins and does path replacement before those are included in the build. Unfortunately, the skin converter was not written in a manner to handle the location change properly and it set wrong paths for the toolbar sprites in the Editor.<Used_Skin_Name>.css files.

We will assist anyone who experiences this appearance problem to solve it. Just send us a sample working project along with your external skin in a support ticket. We will modify it and send you back the fixed skin.

We are currently enhancing the RadControls' skins and I would like to share a small list of improvements:
  • The icons of RadEditor already use png's instead of gif's which has immensely improved the appearance of the control;
  • The icons inside the command sprite are better aligned inside the buttons;
  • We are moving towards equalization of the dimensions of all skins, so now with RadEditor you may use any skin without concerns in broking your layout.

You can find more information about the skin modifications in this blog post: http://blogs.telerik.com/blogs/09-02-23/RadControls_for_ASP_NET_AJAX_receive_a_major_face-lift.aspx. Since there are major changes in the skins we will gladly assist anyone who experience problems to update its old skins to the new ones. We will also publish detailed instructions how the skins works and how to create new ones.

Best regards,
Rumen
The Telerik team

Telerik Admin
Top achievements
Rank 1
Iron
 asked on 25 Feb 2009
1 answer
96 views

I have SearchPage which has a View button. On the click event of it I open a new WebPage (FormViewer) using the RadWindow. The other page which has alertWindow button. I have written a simple funtion on the click event. When i click the button nothing happens. Its suppose to show a alert.


This is the page which gets open as a modal pop up.

 

<%

 

@ Page Language="C#" AutoEventWireup="true" Codebehind="FormViewer.aspx.cs" Inherits="CFS.CSES.Web.UI.WebPages.Forms.FormViewer" %>

 

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

 

 <

 

html xmlns="http://www.w3.org/1999/xhtml">
<
head id="Head1" runat="server">

 

 

 

 

<title>Untitled Page</title>

 

 

 

 

 </head>

 

 

<

 

body id="formViewerBody" bgcolor="white">

 

 

 

 

<script language="javascript" type="text/javascript">

 

 

 

 

function VerifyControl()

 

 

{

alert('

hello');

 

 

}

 

</script>

 

 

 

 

<form id="form1" runat="server" >

 

 

 

<div>
<input type="button" id="alertWindow" value="Alert" onclick="VerifyControl();"/>

 

 

 

 

</div>

 

 

 

 

</form>

 

 

 </

 

body>

 

 

 </

 

html>

 

 

 

 

 

Fiko
Telerik team
 answered on 25 Feb 2009
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?