Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
115 views
Hey Telerik community!

First off, I've done a lot of research on this topic. Seems I'm not the only one having trouble getting things to work inside a NestedViewTemplate. But all the posts I read dealt with having another RadGrid inside a NestedViewTemplate. My situation is a little different...

Problem

I have my own custom user control. It's very simple. If I put it INSIDE the NestedViewTemplate the postbacks don't work. If I put it OUTSIDE it works as expected.

Attached are some screen shots.

Here is the code for the simple user control:

ascx:
<telerik:RadTextBox OnTextChanged="First_Name_TextChanged" ID="tb_first_name" Width="120px" runat="server" AutoPostBack="True" />
code behind:
protected void First_Name_TextChanged(object sender, System.EventArgs e)
{
    if (!string.IsNullOrEmpty(tb_first_name.Text))
    {
        Profile.SetPropertyValue("profile_first", tb_first_name.Text);
        Profile.Save();
        ico_first_name.Text = CHECK_ICON;
    }
}

So my question is this:

How do I get that postback to actually do something, when it's inside the NestedViewTemplate?

-Josh

Iana Tsolova
Telerik team
 answered on 11 Apr 2011
1 answer
93 views
Is it possible to have 2 images on the radpanelitem? I would like an arrow on the left side that points down when the panel is expanded, and points to the right when the panel is not expanded. And then I would like an image on the right side that I change dynamically in the code. And of course in-between the 2 images I have the Text..
Kate
Telerik team
 answered on 11 Apr 2011
0 answers
77 views
im using herbinate-mapping to develope my web application project but i got trouble to connect to my server which stores my database, when i connect to th server it occurs an error it says "Access denied for user 'my current username'@'the ip server' to database 'my database'", i set the ip address to another server but it still gets the current ip server(localhost) to connect, anyone knows this issue please help me to resolve it, i wanna access the current server(192.168.1.191) but it still accesses to(192.168.1.190)(localhost)

here is the contents of my web.config file.

 
   <configSections>
        <section name="hibernate-configuration" type="NHibernate.Cfg.ConfigurationSectionHandler, NHibernate"/>
        <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
            <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
                <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
                <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
                    <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere"/>
                    <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
                    <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
                    <section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
                </sectionGroup>
            </sectionGroup>
        </sectionGroup>
    </configSections>
    <hibernate-configuration xmlns="urn:nhibernate-configuration-2.2">
        <session-factory>
            <property name="dialect">NHibernate.Dialect.MySQLDialect</property>
            <property name="connection.provider">NHibernate.Connection.DriverConnectionProvider</property>
            <property name="connection.driver_class">NHibernate.Driver.MySqlDataDriver</property>
            <property name="connection.connection_string">Server='192.168.1.191';Database='gamelog';User ID='username';Password='password'</property>
            <property name="connection.isolation">ReadCommitted</property>
            <mapping assembly="ManagementTool.DataAccess"/>
        </session-factory>
    </hibernate-configuration>
    <appSettings/>
    <connectionStrings/>


hope everyone to help me to fix this error, view the attach file for more details.
thanks in advance.
Le Duc Hieu
Top achievements
Rank 2
 asked on 11 Apr 2011
1 answer
296 views
I thought I'd post this to possibly help those with the same issue and not loose a day as I did.

Error: Sys.InvalidOperationException: Could not find UpdatePanel with ID

The scenario...

A page with 3 usercontrols
the user controls contain radgrids, radwindows for editing records in the grids and other controls.

The RadAjaxManager is on the aspx page with RadAjaxProxies on the ascx pages.

Even if you do not have an updating event to one of the 3 usercontrols, you must include a RadAjaxProxy without any AjaxSettings or you may experience this error.  It is my belief that once a AjaxManager is placed and Proxies on the content controls, all content controls need a proxy.

Can someone from Telerik confirm this?

Thanks
Iana Tsolova
Telerik team
 answered on 11 Apr 2011
1 answer
95 views
Hi,

I have an issue javascript not reloading in IE7, in all the other browsers this works good. My application has a Multiview controlled by some LinkButtons. Inside of each view I have a user control and I have some javascript inside of each of them. All this inside of a RadAjaxManager.

The code on the page looks like this:
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="LinkScottDecker">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="LinkScottDecker" />
                    <telerik:AjaxUpdatedControl ControlID="MultiView1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="LinkBradBlock">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="LinkBradBlock" />
                    <telerik:AjaxUpdatedControl ControlID="MultiView1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
</telerik:RadAjaxManager>
 
<asp:LinkButton ID="LinkScottDecker" runat="server" OnClick="LinkScottDecker_Click" ToolTip="Scott Decker">
     <asp:Image ID="scottdeckerImage" runat="server" ImageUrl="~/img/executive-thumb-scott-decker.jpg" CssClass="exec-thumbs-scott" />
</asp:LinkButton>
<asp:LinkButton ID="LinkBradBlock" runat="server" OnClick="LinkBradBlock_Click" ToolTip="Brad Block">
     <asp:Image ID="bradblockImage" runat="server" ImageUrl="~/img/executive-thumb-brad-block.jpg" CssClass="exec-thumbs-first-line" />
</asp:LinkButton>
 
<asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex="0">
     <asp:View ID="ViewScottDecker" runat="server">
          <ucBio1:ucScottDecker ID="ucScottDekcer1" runat="server" />
     </asp:View>
     <asp:View ID="ViewBradBlock" runat="server">
          <ucBio2:ucBradBlock ID="ucBradBlock1" runat="server" />
     </asp:View>
</asp:MultiView>

The code inside of the user controls looks like this:
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ucScottDecker.ascx.cs" Inherits="uc_bios_ScottDecker" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
 
<img src="../img/executive-photo-scott-decker.jpg" class="exec-photo" alt="Scott Decker" />
<p>Scott Decker</p>
<p>As President, Scott Decker believes the best is yet to come............</p>
 
<telerik:radscriptblock id="RadScriptBlock2" runat="server"
    <script type="text/javascript">
        var $j = jQuery.noConflict();
        $j(document).ready(function () {
            //When you click on a link with class of poplight and the href starts with a #
            $j('a.poplight[href^=#]').click(function () {
                var popID = $j(this).attr('rel'); //Get Popup Name
                var popURL = $j(this).attr('href'); //Get Popup href to define size
                //Pull Query & Variables from href URL
                var query = popURL.split('?');
                var dim = query[1].split('&');
                var popWidth = dim[0].split('=')[1]; //Gets the first query string value
                //Fade in the Popup and add close button
                $j('#' + popID).fadeIn().css({ 'width': Number(popWidth) }).prepend('<a href="#" class="close" onclick="javascript:ytplayer.stopVideo()"><img src="../img/close_pop.png" class="btn_close" title="Close Window" alt="Close" border="0" /></a>');
                //Define margin for center alignment (vertical   horizontal) - we add 80px to the height/width to accomodate for the padding  and border width defined in the css
                var popMargTop = ($j('#' + popID).height() + 80) / 2;
                var popMargLeft = ($j('#' + popID).width() + 80) / 2;
                //Apply Margin to Popup
                $j('#' + popID).css({
                    'margin-top': -popMargTop,
                    'margin-left': -popMargLeft
                });
                //Fade in Background
                $j('body').append('<div id="fade"></div>'); //Add the fade layer to bottom of the body tag.
                $j('#fade').css({ 'filter': 'alpha(opacity=80)' }).fadeIn(); //Fade in the fade layer - .css({'filter' : 'alpha(opacity=80)'}) is used to fix the IE Bug on fading transparencies
                return false;
            });
            //Close Popups and Fade Layer
            $j('a.close, #fade').live('click', function () { //When clicking on the close or fade layer...
                $j('#fade , .popup_block').fadeOut(function () {
                    $j('#fade, a.close').remove();  //fade them both out
                });
                return false;
            });
        });
    </script>
    <script type="text/javascript">
        var params = { allowScriptAccess: "always" };
        var atts = { id: "myytplayer" };
        "ytapiplayer", "560", "349", "8", null, null, params, atts);
 
        function onYouTubePlayerReady(playerId) {
            ytplayer = document.getElementById("myytplayer");
        }
    </script>
</telerik:radscriptblock>
 
<div>
        <p>Transforming Healthcare:br />
            <a href="#?w=560" class="poplight" rel="popup_name">How NextGen continues to be an industry
                leader.</a>
        </p>
</div>
<div id="popup_name" class="popup_block">
    <!--<center><iframe title="YouTube video player" width="560" height="349" src="http://www.youtube.com/embed/I5QezMuqpJA" frameborder="0" allowfullscreen></iframe></center>-->
    <div id="ytapiplayer">
        You need Flash player 8+ and JavaScript enabled to view this video.
    </div>
</div>

I just need that javascript to load every time the multiview is updated.
Iana Tsolova
Telerik team
 answered on 11 Apr 2011
8 answers
286 views
Hi,
I want to translate commands in RadGrid of Telerik 2009 SP1. Image below shows my grid:
http://img515.imageshack.us/img515/1822/translate.jpg
Elements that I want to display with polish description are in red circle.
How can I do that in c# code?
Tiago
Top achievements
Rank 1
 answered on 11 Apr 2011
3 answers
372 views
Hello,

Is there anything in-built that allows a user to resize a RadTextBox to the size of their liking?  Or is there a way to make that work?  Something that gives the user the ability to select the border of the textbox, and click and drag to resize?

Thanks.
Galin
Telerik team
 answered on 11 Apr 2011
1 answer
71 views
SharePoint strips certain HTML tags including <iframe> <video> etc.  Is there any easy customization in the radeditor control to stop sharepoint form stripping certain html tags.  With HTML5 video and the use of iframes to embed you tube video this is going to become more and more of an issue especially for WCM and blog use
Stanimir
Telerik team
 answered on 11 Apr 2011
1 answer
79 views
Hello,
    I create my page with dynamic usercontrol using tabstrip . In my parent page I have Save Button and Muliple tab.
When I Click the Save Button from Parent Page i want all  tab data are save to database. My problem is I can't
find input data from Parent Page.If I input some data from tabstrip textbox and save ,only got null value . Can anyone help me?
Dimitar Terziev
Telerik team
 answered on 11 Apr 2011
5 answers
323 views
I have a RadGrid that uses Inline edit mode.  My grid only supports editing one row at a time and all works fine so long as the user clickes the update button after editing the row to commit the changes to the database.

If the users has row 1 in edit mode and does not click update, but selects a different row to place into edit mode, I would like to pop up a message box asking the user if they want to save their changes before moving to edit the new row.

How can I accomplish this?  When a new row is placed into edit mode the previous row does not get a cancel event for me to trap.

Tim
Giovanni
Top achievements
Rank 1
 answered on 11 Apr 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?