Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
389 views
I want to reftesh the child windos from parent how refresh the child windows from parent.

the child windows contain the Radgrid . want to refresh the grid value
how to do this
my code is
for open child windows
function OpenResults() {
                GetRadWindow().BrowserWindow.OpenPopUp(null);
                GetRadWindow().close();

}

  function GetRadWindow() {
                var oWindow = null;
                if (window.radWindow) oWindow = window.radWindow; //Will work in Moz in all cases, including clasic dialog
                else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow; //IE (and Moz az well)

                return oWindow;
            } 

and the child windows contains the

<telerik:RadGrid ID="dgResult" runat="server" AllowPaging="True" GridLines="None"
                    HeaderStyle-Font-Bold="true" PageSize="15" Height="190px" Skin="Black" ShowFooter="false"
                    ShowGroupPanel="false">
                    <ClientSettings>
                        <Scrolling AllowScroll="True" UseStaticHeaders="True" ScrollHeight="300px" />
                        <Resizing AllowColumnResize="false" AllowRowResize="false" ResizeGridOnColumnResize="false"
                            ClipCellContentOnResize="true" />
                    </ClientSettings>
                    <AlternatingItemStyle Font-Bold="True" />
                    <MasterTableView AutoGenerateColumns="False" ItemStyle-Font-Bold="true" AllowAutomaticDeletes="true"
                         DataKeyNames="ProjectID">
                        <%--<ItemStyle Font-Bold="True" ForeColor="White" HorizontalAlign="Center" VerticalAlign ="Middle"  />--%>
                        <Columns>
                            <telerik:GridTemplateColumn HeaderText="Created Projects" UniqueName="TemplateCol">
                                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle " Font-Bold="True" ForeColor="White" />
                                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                <ItemTemplate>
                                    <asp:LinkButton ID="projectID" runat="server" Text='<%#Eval("ProjectID") %>' OnClientClick="Redirectwin(this.innerHTML);"
                                     Visible='<%#Eval("Visible") %>'></asp:LinkButton>
                                      <%--<asp:Label ID="lblError" runat="server" Text="'<%#Eval("ProjectID") %>'" Visible='<%#Eval("Error") %>' ForeColor="red"> </asp:Label>--%>
                                       <asp:Label  ID="lblError" runat="server" Text='<%#Eval("ProjectID") %>' Visible='<%#Eval("Error") %>' ForeColor="red"> </asp:Label>
                                </ItemTemplate>
                            </telerik:GridTemplateColumn>
                           
                            <telerik:GridTemplateColumn HeaderText="Proposals Used" UniqueName="TemplateCol">
                                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle " Font-Bold="True" ForeColor="White" />
                                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                <ItemTemplate>
                                    <asp:Label  ID="ProposalID" runat="server" Text='<%#Eval("ProposalID") %>' Visible='<%#Eval("Visible") %>'> </asp:Label>
                                    <asp:Label  ID="lblError1" runat="server" Text='<%#Eval("ProposalID") %>' Visible='<%#Eval("Error") %>' ForeColor="red"> </asp:Label>
                                   
                                </ItemTemplate>
                            </telerik:GridTemplateColumn>
                        </Columns>
                    </MasterTableView>
                </telerik:RadGrid>


want to fresh the child when i added the value from parent

how do this
Its urgent



Shinu
Top achievements
Rank 2
 answered on 24 Sep 2009
2 answers
141 views
Hi,

This is probably really quick and simple but I couldn't see an answer.

My rotator displays two entries at a time.  I need to say that if the count is less than 3 don't rotate.  at teh moment the rotation still occurs and as such the two items switch place which looks a bit stupid.

Is there some way of setting the rotator to not rotate.  Obviously I could set the frame duration to some silly value to get around this. 

I need to do this from the code behind.

Regards,

Jon
Jon
Top achievements
Rank 1
 answered on 24 Sep 2009
3 answers
132 views
I just upgraded RadControls for ASP.NET AJAX (2009.2.826.35)

I have a gridview which has Edit form with combobox. It always working fine until this latest update.

<telerik:RadComboBox ID="ddlSubCategoryEdit" runat="server"
    DataTextField="SubCatDesc"
    DataValueField="SubCatId" Width="250px" AutoPostBack="True"
    onselectedindexchanged="ddlSubCategoryEdit_SelectedIndexChanged">
    <CollapseAnimation Duration="200" Type="OutQuint" />
</telerik:RadComboBox>

Here is the problem. When I click the the drop down button and select the same item. By right the selectedIndexChanged fire. However after the latest telerik version update. It will fire and the selectedvalue is blank.
I found this problem in IE7 and IE8 but working fine in firefox.

Simon
Telerik team
 answered on 24 Sep 2009
2 answers
109 views
Hi,

When I group my appointments by a certain resource I want to visually distinguish each group with a vertical bold line.
How do I accomplish that?

Screenshot -> http://screencast.com/t/zpNcUbnXJ

Thank you in advance!

Regards,
Andrew
Roman Janki
Top achievements
Rank 1
 answered on 24 Sep 2009
4 answers
315 views

Hi,

I am Feroz. I am using telerik radgrid for my application. I need to add fileupload control dynamicaly to columns in radgrid.

Please give any suggestions.

Thanks in advance.

Regards
Feroz
feroz minnadad
Top achievements
Rank 1
 answered on 24 Sep 2009
1 answer
104 views

Hi,

I'm using a grid with auto-generated columns.  Datasource is assigned to the grid at run time (assigned a datatable).

I'm using scroll wth frozen columns:

 

<

 

Scrolling AllowScroll="True" UseStaticHeaders="true" FrozenColumnsCount="7" />

 


There is a large number of columns, i.e. 100+ (a lot of data).   I also assigned column width in code at ColumnCreated time.

The grid displays perfectly.  It displays about 26 columns at any given time with first 7 frozen. So, when the grid first displays, one can see columns 1 through 7 (frozen) and 8 through 25  When I click to the right of the scrollbar, I expect to see columns 1 through 7 (frozen) and 26 through 43.  Instead, the grid would display 1 through 7 and 35 through 52, essentially skipping some columns.  Not good from a user's standpoint.

What would account for this odd behavior?  Would hidden columns cause this?  I appreciate any advise.

Thanks.

Barry



Pavlina
Telerik team
 answered on 24 Sep 2009
1 answer
152 views
Hi,
  I have a radgrid on my aspx page. I am navigating thru my custom page. I ahve to get the correct page index to pass it to my database based on which the data i get to be bind.

I am currently using RadGrid1.CurrentPageIndex for knowing the Index where I am.

But actually during my testing i found it is wrong.

What is variable or field name do i need to check to get the correct Page Index to bind my custom page to.

Appreciate your early response.

Thanks
Pavlina
Telerik team
 answered on 24 Sep 2009
3 answers
102 views
Hello,


       I am using Telerik 2009.2.826.35  ajax controls .
       Unfortunately, whenever I try to set the controls to be updated by the ajaxmanagerproxy everything
       is messed on the screen, as you can see below. I am use a Page Control.
       Does anyone know why this should be happening?
       I tried many variations of the controls configuration without success. I also looked at samples, but
       none of them has something compared to my configuration .

       Thanks.
       See more details below.....

330|updatePanel|ctl00_ctl00_Body_CustomerList_ItemListGridPanel|
|

4862|updatePanel|ctl00_ctl00_Body_CustomerList_TransactionsGridPanel|
Transaction # Description Date Created    
4 1 09/16/2009 12:00  
5 2 09/16/2009 03:49  
6 15 09/16/2009 03:50  
|




       I have a master page with the following

        <form id="Main" runat="server" width="100%">
           <asp:ScriptManager ID="ScriptManager1" runat=server />
           <telerik:RadAjaxManager ID="RadAjaxManager1" EnableAjax="true" runat="server">
           </telerik:RadAjaxManager>       
           .......
        </form>

         A Default page ......
                <%@ Register Src="List.ascx" TagName="List" TagPrefix="Customer" %>
                 <%@ Register Src="Item.ascx" TagName="Item" TagPrefix="Customer" %>
                <asp:Content ID="BodyContent" ContentPlaceHolderID="Body" runat="server">

                 <asp:UpdatePanel ID="CustomerUpdatePanel" runat="server">
                  <ContentTemplate>
                 <Telerik:RadMultiPage ID="CustomerMultiPage" runat="server">
                            <Telerik:RadPageView ID="ListView" runat="server">
                                 <Customer:List ID="CustomerList" runat="server" />
                            </Telerik:RadPageView>
                            <Telerik:RadPageView ID="ItemView" runat="server">
                                   <Customer:Item ID="CustomerItem" runat="server" />
                            </Telerik:RadPageView>
                  </Telerik:RadMultiPage>
                  </ContentTemplate>
                 </asp:UpdatePanel>
          </asp:Content>
           A list page control
                <telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">
               <AjaxSettings>
                     <telerik:AjaxSetting AjaxControlID="ItemListGrid">
                          <UpdatedControls>
                                     <telerik:AjaxUpdatedControl ControlID="ItemListGrid" LoadingPanelID="RadAjaxLoadingPanel1" />
                                     <telerik:AjaxUpdatedControl ControlID="TransactionsGrid" LoadingPanelID="RadAjaxLoadingPanel2" />
                         </UpdatedControls>
                     </telerik:AjaxSetting>
                     <telerik:AjaxSetting AjaxControlID="TransactionsGrid">
                         <UpdatedControls>
                                      <telerik:AjaxUpdatedControl ControlID="TransactionsGrid" />
                         </UpdatedControls>
                      </telerik:AjaxSetting>
               </AjaxSettings>
              </telerik:RadAjaxManagerProxy>
             <p>
                    <telerik:RadTextBox ID="CustomerNamePart" Runat="server"  Width="370px" style="display:inline">
                    </telerik:RadTextBox>
                    <asp:Button ID="FilterButton" CssClass="Button" runat="server"
                                   CausesValidation="false" Text="Search" OnClick="Search_Click"
                                     Height="26px"/>    
                     <br />
               </p>
    
              <Telerik:RadGrid ID="ItemListGrid" runat="server" .../>
              <Telerik:RadGrid ID="TransactionsGrid" runat="server" .../>





John,
Martin
Telerik team
 answered on 24 Sep 2009
2 answers
220 views
Hi,

I have a radgrid with detail table and i would like to disable certain rows but keep the expand button enabled.
In the grid prerender event i have this code :
foreach (GridDataItem item in (sender as RadGrid).Items)  
{  
    if (DisableRow(item))  
    {  
        item.Enabled = false;  
        item["ExpandColumn"].Enabled = true;  
        (item["ExpandColumn"].Controls[0] as Button).Enabled = true;  
    }  

But this doesn't enable the expandbutton, so i think setting the item to disabled will always force the expand button to be disabled as well.
I could set the font settings so the row would look disabled but then i wouldn't be able to check if it is enabled in client-side code, i need to do that to determine if a contextmenu may be shown or not.

Is there some other way i can achieve this?
Marco
Top achievements
Rank 1
 answered on 24 Sep 2009
6 answers
200 views
Hi all,

I have a RadGrid posted with data by use of GridBoundColumns. These columns/cells is given a fixed width and itemstyle-wrap set to false. This cause that full text in some cells isn't shown fully, and therefore I want to have a tooltip at each cell, showing the full content. I don't have the tooltip possibility at the GridBoundColumn, and cannot figure out how to do it afterwards by either OnItemCreated or OnDataBound?!

Can anyone tell me how to do?! :o)
Ahrensberg
Top achievements
Rank 1
 answered on 24 Sep 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?