Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
111 views
Hi,

I have hierarchy with 2 RadGrids, however, the SQL query of the internal Grid occurs during load and not during the expand of the NestedViewTemplate.

I use:
HierarchyLoadMode="ServerOnDemand"
in the internal grid and followed exactly a demo you have, in this exact regard.

Thanks,
Elad

    <telerik:RadGrid SortingSettings-SortToolTip="הקלק למיון" OnSortCommand="RadGrid1_SortCommand" ID="RadGrid1" OnPreRender="RadGrid1_PreRender" runat="server" Width="100%" Height="820px" PageSize="10"
    AllowSorting="True" AllowMultiRowSelection="True" AllowPaging="true"
    GridLines="None" AutoGenerateColumns="False" Style="border: 0; outline:none;" Skin="Office2007">
    <MasterTableView HierarchyLoadMode="ServerOnDemand" CommandItemDisplay="Top" Dir=RTL EnableViewState="true" Width="100%" DataKeyNames="username,TopUsers1,TopUsers2,TopUsers3,TopUsers4,TopUsers5,TopUsers6,TopUsers7,TopUsers8,TopUsers9,TopUsers10,id,page,cat,RowNumber2,url,grade,lastgrade,oldgrade,lastupdate,photourl,friends,monuseract,moncommentstouser,monlikestouser,monfriendsact,moncommentstofriends,monlikestofriends" DataMember="Mails" AllowMultiColumnSorting="False">
         <PagerStyle Visible="false" />
         <CommandItemTemplate>
         <asp:LinkButton ID="LinkButton4" runat="server" CommandName="RebindGrid"><img style="border:0px;vertical-align:middle;" alt="רענן" src="images/Ref1.png" />רענן</asp:LinkButton>
            <asp:LinkButton ID="UpdateCat" Visible=false runat="server" CommandName="UpdateCat"><img style="border:0px;vertical-align:middle;" alt="עדכן קטגוריות" src="images/Update3.png" />עדכן קטגוריות</asp:LinkButton>
         </CommandItemTemplate>
        <Columns>
            <telerik:GridClientSelectColumn Visible="false" Reorderable="False" UniqueName="ClientSelectColumn">
           <HeaderStyle Width="30px"></HeaderStyle>
            </telerik:GridClientSelectColumn>
            <telerik:GridTemplateColumn UniqueName="PhotoUrl" Groupable="False">
                <HeaderStyle Width="35px"></HeaderStyle>
                <ItemStyle Height="35px"></ItemStyle>
                <ItemTemplate>
                    <a style="text-decoration:none" href="<%#converturl(DataBinder.Eval(Container.DataItem, "Url"))%>" target="_blank" >
                    <asp:Image BorderWidth="0px" Width="55" Height="55" ImageUrl='<%# DataBinder.Eval(Container.DataItem, "PhotoUrl") %>'
                        AlternateText="MediaType" Style="float: right; cursor: pointer;" runat="server">
                    </asp:Image>
                    </a>
                </ItemTemplate>
            </telerik:GridTemplateColumn>
             <telerik:GridTemplateColumn UniqueName="UserName" HeaderText="שם משתמש">
                <HeaderStyle HorizontalAlign="right" ></HeaderStyle>
                <ItemStyle HorizontalAlign="right" Wrap="true" ></ItemStyle>
                <ItemTemplate>
                        <a style="text-decoration:none" href="<%#converturl(DataBinder.Eval(Container.DataItem, "Url"))%>" target="_blank" >
                    <div dir="rtl" style="white-space:normal;">
                        <%# DataBinder.Eval(Container.DataItem, "UserName") %>
                        </div>
                        </a>
                </ItemTemplate>
            </telerik:GridTemplateColumn>
            <telerik:GridBoundColumn AllowSorting="false" DataFormatString="{0:N0}" DataField="RowNumber2" HeaderText="דירוג<br>(ישראל)" >
                                    <HeaderStyle HorizontalAlign="center" ></HeaderStyle>
                <ItemStyle HorizontalAlign="Center" ></ItemStyle>
            </telerik:GridBoundColumn>
              <telerik:GridBoundColumn AllowSorting="false" DataFormatString="{0:N0}" DataField="grade" HeaderText="ציון<br>משוקלל" >
                                    <HeaderStyle HorizontalAlign="center" ></HeaderStyle>
                <ItemStyle HorizontalAlign="Center" ></ItemStyle>
            </telerik:GridBoundColumn>
            <telerik:GridTemplateColumn UniqueName="DailyChange" HeaderText="שינוי יומי">
                <HeaderStyle HorizontalAlign="center" ></HeaderStyle>
                <ItemStyle HorizontalAlign="center" Wrap="true" ></ItemStyle>
                <ItemTemplate>
                    <div dir="rtl" style="white-space:normal;">
                        <%# GetDailyChange(DataBinder.Eval(Container.DataItem, "grade"),DataBinder.Eval(Container.DataItem, "lastgrade"),DataBinder.Eval(Container.DataItem, "lastupdate"),DataBinder.Eval(Container.DataItem, "oldgrade")) %>
                        </div>
                        </a>
                </ItemTemplate>
            </telerik:GridTemplateColumn>
            <telerik:GridBoundColumn SortExpression="Friends desc" DataFormatString="{0:#,###,###}" AllowSorting=true ShowSortIcon=true DataField=Friends HeaderText="מס' מעריצים" >
                                    <HeaderStyle HorizontalAlign="center" ></HeaderStyle>
                <ItemStyle HorizontalAlign="Center" ></ItemStyle>
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn SortExpression="monuseract desc" DataFormatString="{0:N0}" AllowSorting=true ShowSortIcon=true DataField=monuseract HeaderText="מס' פעולות<br>משתמש" >
                                    <HeaderStyle HorizontalAlign="center" ></HeaderStyle>
                <ItemStyle HorizontalAlign="Center" ></ItemStyle>
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn SortExpression="moncommentstouser desc" DataFormatString="{0:N0}" AllowSorting=true ShowSortIcon=true DataField=moncommentstouser HeaderText="תגובות<br>לפעולות" >
                                    <HeaderStyle HorizontalAlign="center" ></HeaderStyle>
                <ItemStyle HorizontalAlign="Center" ></ItemStyle>
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn SortExpression="monlikestouser desc" DataFormatString="{0:N0}" AllowSorting=true ShowSortIcon=true DataField=monlikestouser HeaderText="לייקים<br>לפעולות" >
                                    <HeaderStyle HorizontalAlign="center" ></HeaderStyle>
                <ItemStyle HorizontalAlign="Center" ></ItemStyle>
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn SortExpression="monfriendsact desc" DataFormatString="{0:N0}" AllowSorting=true ShowSortIcon=true DataField=monfriendsact HeaderText="מס' פעולות<br>חברים" >
                                    <HeaderStyle HorizontalAlign="center" ></HeaderStyle>
                <ItemStyle HorizontalAlign="Center" ></ItemStyle>
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn SortExpression="moncommentstofriends desc" DataFormatString="{0:N0}" AllowSorting=true ShowSortIcon=true DataField=moncommentstofriends HeaderText="תגובות<br>לפעולות" >
                                    <HeaderStyle HorizontalAlign="center" ></HeaderStyle>
                <ItemStyle HorizontalAlign="Center" ></ItemStyle>
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn SortExpression="monlikestofriends desc" DataFormatString="{0:N0}" AllowSorting=true ShowSortIcon=true DataField=monlikestofriends HeaderText="לייקים<br>לפעולות" >
                                    <HeaderStyle HorizontalAlign="center" ></HeaderStyle>
                <ItemStyle HorizontalAlign="Center" ></ItemStyle>
            </telerik:GridBoundColumn>
                                <telerik:GridTemplateColumn ItemStyle-HorizontalAlign="center" UniqueName="opencategory" HeaderText="קטגוריה">
                <HeaderStyle HorizontalAlign="center" Width="50"></HeaderStyle>
                <ItemStyle Wrap="true" Width="20"></ItemStyle>
                <ItemTemplate>
                       <div dir="rtl" style="white-space:normal;">
                        <%# GetCategoryName(DataBinder.Eval(Container.DataItem, "Cat")) %>
                        </div>
                </ItemTemplate>
            </telerik:GridTemplateColumn>
            <telerik:GridTemplateColumn ItemStyle-HorizontalAlign="center" UniqueName="category" Visible="false" HeaderText="עדכן קטגוריה">
                <HeaderStyle Width="50"></HeaderStyle>
                <ItemStyle Wrap="true" Width="20"></ItemStyle>
                <ItemTemplate>
                    <asp:ImageButton ID="ImageButton2" ImageUrl="~/Images/update3.png" runat="server" CommandName="Neg" >                          
                    </asp:ImageButton>
                    <asp:ImageButton ID="ImageButton1" ImageUrl="~/Images/Del.png" runat="server" CommandName="Pos" >                          
                    </asp:ImageButton>
                    <asp:ImageButton ID="ImageButton3" ImageUrl="~/Images/Ref1.png" runat="server" CommandName="ChangeType" >                          
                    </asp:ImageButton>
                    <asp:dropdownlist ID="DDL" runat="server">
                    <asp:ListItem Value="0" Text="לא מקוטלגים" />
                    <asp:ListItem Value="1" Text="חדשות" />
                    <asp:ListItem Value="2" Text="אופנה" />
                    <asp:ListItem Value="3" Text="טלוויזיה ורדיו" />                   
                    <asp:ListItem Value="4" Text="מוזיקה" />
                    <asp:ListItem Value="5" Text="ספורט" />
                    <asp:ListItem Value="6" Text="מחאה" />
                    <asp:ListItem Value="7" Text="דת" />               
                     <asp:ListItem Value="8" Text="בנקאות וביטוח" />                           
                    <asp:ListItem Value="9" Text="מזון" />
                    <asp:ListItem Value="10" Text="תקשורת ואלקטרוניקה" />
                    <asp:ListItem Value="11" Text="טואלטיקה" />
                    <asp:ListItem Value="12" Text="צעירים" />                   
                    <asp:ListItem Value="13" Text="רכב" />
                    <asp:ListItem Value="14" Text="חברות" />
                    <asp:ListItem Value="15" Text="מוסדות" />
                    <asp:ListItem Value="16" Text="ידוענים" />               
                    <asp:ListItem Value="17" Text="בידור" />
                    <asp:ListItem Value="18" Text="לא רלוונטיים" /> 
                    <asp:ListItem Value="19" Text="הורות" />
                    <asp:ListItem Value="20" Text="שונות" />                                           
                    </asp:dropdownlist>
                </ItemTemplate>
            </telerik:GridTemplateColumn>
        </Columns>
       <NestedViewTemplate>
        <asp:Panel runat="server" ID="InnerContainer" Wrap="true">
        <table><tr><td style="white-space:normal;">
                    <telerik:RadTabStrip runat="server" ID="TabStip1" MultiPageID="Multipage1"
                    SelectedIndex="0">
                    <Tabs>
                        <telerik:RadTab runat="server" Text="תוכן הקיר לאחרונה" PageViewID="PageView1">
                        </telerik:RadTab>
                        <telerik:RadTab runat="server" Text="מעריצים/חברים פעילים" PageViewID="PageView2">
                        </telerik:RadTab>
                        <telerik:RadTab runat="server" Text="היסטוריה (גרפים)" PageViewID="PageView3">
                        <Tabs>
                        <telerik:RadTab runat="server" Selected=true Text="ציון משוקלל" PageViewID="PageView3">
                        </telerik:RadTab>
                        <telerik:RadTab runat="server" Text="מעריצים/חברים" PageViewID="PageView4">
                        </telerik:RadTab>
                        <telerik:RadTab runat="server" Text="פעולות משתמש" PageViewID="PageView5">
                        </telerik:RadTab>
                        <telerik:RadTab runat="server" Text="תגובות לפעולות משתמש" PageViewID="PageView6">
                        </telerik:RadTab>
                        <telerik:RadTab runat="server" Text="לייקים לפעולות משתמש" PageViewID="PageView7">
                        </telerik:RadTab>
                        </Tabs>
                        </telerik:RadTab>
                    </Tabs>
                </telerik:RadTabStrip>
                <telerik:RadMultiPage runat="server" ID="Multipage1" SelectedIndex="0" RenderSelectedPageOnly="false">
                    <telerik:RadPageView runat="server" ID="PageView1">
                        <br />
                            <%#CleanWall(DataBinder.Eval(Container.DataItem, "WallCont"), DataBinder.Eval(Container.DataItem, "TopUsers1"), DataBinder.Eval(Container.DataItem, "TopUsers2"), DataBinder.Eval(Container.DataItem, "TopUsers3"), DataBinder.Eval(Container.DataItem, "TopUsers4"), DataBinder.Eval(Container.DataItem, "TopUsers5"), DataBinder.Eval(Container.DataItem, "TopUsers6"), DataBinder.Eval(Container.DataItem, "TopUsers7"), DataBinder.Eval(Container.DataItem, "TopUsers8"), DataBinder.Eval(Container.DataItem, "TopUsers9") , DataBinder.Eval(Container.DataItem, "TopUsers10"))%>
                        <br />             
                    </telerik:RadPageView>
                    <telerik:RadPageView runat="server" ID="PageView2">
                            <telerik:RadGrid ID="RadGrid2" DataSourceID="SqlDataSource2" runat="server" Width="100%" PageSize="10"
     AllowMultiRowSelection="True" AllowPaging="true"
    GridLines="None" AutoGenerateColumns="False" Style="border: 0; outline:none;" Skin="Web20">
    <MasterTableView HierarchyLoadMode="ServerOnDemand" CommandItemDisplay=None Dir=RTL Width="100%" DataKeyNames="TopUsers1" AllowMultiColumnSorting="False">
         <PagerStyle Visible="false" />
        <Columns>
            <telerik:GridClientSelectColumn Visible="false" Reorderable="False" UniqueName="ClientSelectColumn">
           <HeaderStyle Width="30px"></HeaderStyle>
            </telerik:GridClientSelectColumn>
            <telerik:GridTemplateColumn UniqueName="PhotoUrl" Groupable="False">
                <HeaderStyle Width="35px"></HeaderStyle>
                <ItemStyle Height="35px"></ItemStyle>
                <ItemTemplate>
                    <a style="text-decoration:none" href="<%#converturl(DataBinder.Eval(Container.DataItem, "Url"))%>" target="_blank" >
                    <asp:Image ID="Image1" BorderWidth="0px" Width="55" Height="55" ImageUrl='<%# DataBinder.Eval(Container.DataItem, "PhotoUrl") %>'
                        AlternateText="MediaType" Style="float: right; cursor: pointer;" runat="server">
                    </asp:Image>
                    </a>
                </ItemTemplate>
            </telerik:GridTemplateColumn>
             <telerik:GridTemplateColumn UniqueName="UserName" HeaderText="שם משתמש">
                <HeaderStyle HorizontalAlign="right" ></HeaderStyle>
                <ItemStyle HorizontalAlign="right" Wrap="true" ></ItemStyle>
                <ItemTemplate>
                        <a style="text-decoration:none" href="<%#converturl(DataBinder.Eval(Container.DataItem, "Url"))%>" target="_blank" >
                    <div dir="rtl" style="white-space:normal;">
                        <%# DataBinder.Eval(Container.DataItem, "UserName") %>
                        </div>
                        </a>
                </ItemTemplate>
            </telerik:GridTemplateColumn>
            <telerik:GridBoundColumn SortExpression="Friends desc" DataFormatString="{0:#,###,###}" AllowSorting=true ShowSortIcon=true DataField=Friends HeaderText="מס' חברים" >
                                    <HeaderStyle HorizontalAlign="center" ></HeaderStyle>
                <ItemStyle HorizontalAlign="Center" ></ItemStyle>
            </telerik:GridBoundColumn>
              <telerik:GridBoundColumn AllowSorting="false" DataFormatString="{0:#,###,###}" DataField="grade" HeaderText="ציון<br>משוקלל" >
                                    <HeaderStyle HorizontalAlign="center" ></HeaderStyle>
                <ItemStyle HorizontalAlign="Center" ></ItemStyle>
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn SortExpression="monuseract desc" DataFormatString="{0:N0}" AllowSorting=true ShowSortIcon=true DataField=monuseract HeaderText="מס' פעולות<br>משתמש" >
                                    <HeaderStyle HorizontalAlign="center" Width="70" ></HeaderStyle>
                <ItemStyle HorizontalAlign="Center" ></ItemStyle>
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn SortExpression="moncommentstouser desc" DataFormatString="{0:N0}" AllowSorting=true ShowSortIcon=true DataField=moncommentstouser HeaderText="תגובות<br>לפעולות" >
                                    <HeaderStyle HorizontalAlign="center" ></HeaderStyle>
                <ItemStyle HorizontalAlign="Center" ></ItemStyle>
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn SortExpression="monlikestouser desc" DataFormatString="{0:N0}" AllowSorting=true ShowSortIcon=true DataField=monlikestouser HeaderText="לייקים<br>לפעולות" >
                                    <HeaderStyle HorizontalAlign="center" ></HeaderStyle>
                <ItemStyle HorizontalAlign="Center" ></ItemStyle>
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn SortExpression="monfriendsact desc" DataFormatString="{0:N0}" AllowSorting=true ShowSortIcon=true DataField=monfriendsact HeaderText="מס' פעולות<br>חברים" >
                                    <HeaderStyle HorizontalAlign="center" Width="70" ></HeaderStyle>
                <ItemStyle HorizontalAlign="Center" ></ItemStyle>
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn SortExpression="moncommentstofriends desc" DataFormatString="{0:N0}" AllowSorting=true ShowSortIcon=true DataField=moncommentstofriends HeaderText="תגובות<br>לפעולות" >
                                    <HeaderStyle HorizontalAlign="center" ></HeaderStyle>
                <ItemStyle HorizontalAlign="Center" ></ItemStyle>
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn SortExpression="monlikestofriends desc" DataFormatString="{0:N0}" AllowSorting=true ShowSortIcon=true DataField=monlikestofriends HeaderText="לייקים<br>לפעולות" >
                                    <HeaderStyle HorizontalAlign="center" ></HeaderStyle>
                <ItemStyle HorizontalAlign="Center" ></ItemStyle>
            </telerik:GridBoundColumn>
        </Columns>
    </MasterTableView>
    <ClientSettings AllowDragToGroup="False">
        <Selecting AllowRowSelect="True"></Selecting>
        <Scrolling AllowScroll="false"  UseStaticHeaders="True"></Scrolling>
        <ClientMessages />
    </ClientSettings>
</telerik:RadGrid>
        <asp:SqlDataSource EnableViewState="true" ID="SqlDataSource2" ConnectionString="Server=WIN-W15VZFMYJY7;Integrated Security=True;Database=DB11370;"
        ProviderName="System.Data.SqlClient" SelectCommand = "SELECT * from rfacebook where id=@TopUsers1 UNION ALL SELECT * from rfacebook_unrated where id=@TopUsers1 Order By Grade desc"
        runat="server">
            <SelectParameters>
                <asp:SessionParameter Name="TopUsers1" SessionField="TopUsers1" Type="String" />
            </SelectParameters>
                        </asp:SqlDataSource>
                    </telerik:RadPageView>
                            <telerik:RadPageView runat="server" ID="PageView3">
                            <%# DrawInfGraph(DataBinder.Eval(Container.DataItem, "id"),"grade")%>
                    </telerik:RadPageView>
                    <telerik:RadPageView runat="server" ID="PageView4">
                            <%# DrawInfGraph(DataBinder.Eval(Container.DataItem, "id"),"friends")%>
                    </telerik:RadPageView>
                    <telerik:RadPageView runat="server" ID="PageView5">
                            <%# DrawInfGraph(DataBinder.Eval(Container.DataItem, "id"),"monuseract")%>
                    </telerik:RadPageView>
                    <telerik:RadPageView runat="server" ID="PageView6">
                            <%# DrawInfGraph(DataBinder.Eval(Container.DataItem, "id"),"moncommentstouser")%>
                    </telerik:RadPageView>  
                       <telerik:RadPageView runat="server" ID="PageView7">
                            <%# DrawInfGraph(DataBinder.Eval(Container.DataItem, "id"),"monlikestouser")%>
                    </telerik:RadPageView>                       
                    </telerik:RadMultiPage>   
        </td></tr></table>           
        </asp:Panel>
       </NestedViewTemplate>
    </MasterTableView>
    <ClientSettings AllowDragToGroup="False">
        <Selecting AllowRowSelect="True"></Selecting>
        <Scrolling AllowScroll="true"  UseStaticHeaders="false" ScrollHeight="275px"></Scrolling>
        <ClientMessages />
    </ClientSettings>
</telerik:RadGrid>
Iana Tsolova
Telerik team
 answered on 11 Apr 2011
3 answers
222 views
Hi @

I am using Telerik:RadAjaxLoadingPanel to display the loading image on the screen when ever there is an ajaxify postback.

Following is the code:

<

 

telerik:RadAjaxLoadingPanel ID="radLoadingPnl" runat="server" AnimationDuration="300"

 

 

Style="vertical-align: middle;" HorizontalAlign="Center" EnableSkinTransparency="true"

 

 

BackgroundPosition="Center">

 

 

<img alt="Loading..." src="Images/loading.gif" style="border: 0px; vertical-align: middle;"

 

 

align="middle" />

 

 

</telerik:RadAjaxLoadingPanel>

 



//For displaying loading screen.

 

var loadingPanel = "";

 

 

 

var pageRequestManager = Sys.WebForms.PageRequestManager.getInstance();

 

 

 

var postBackElement = "";

 

 

pageRequestManager.add_initializeRequest(initializeRequest);

 

pageRequestManager.add_endRequest(endRequest);

 

 

function initializeRequest(sender, eventArgs) {

 

 

loadingPanel = $find(

'<% = radLoadingPnl.ClientID %>');

 

 

postBackElement = eventArgs.get_postBackElement().id;

 

loadingPanel.show(postBackElement);

 

}

 

 

function endRequest(sender, eventArgs) {

 

 

loadingPanel = $find(

'<% = radLoadingPnl.ClientID %>');

 

 

loadingPanel.hide(postBackElement);

 

}



But My Loading Image always appear next to the control because of which Ajax postback occured instead of Center of the screen.

Is there any property by which I can display the Loading image in the center of the screen for all the resolutions and for all the Ajax postbacks.

Please suggest.
Pavlina
Telerik team
 answered on 11 Apr 2011
2 answers
117 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
105 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
88 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
311 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
113 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
298 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
404 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
78 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?