Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
81 views
I have a parent form that has a tree view and tabstrip on one panel and a radgrid on another panel.
A child window is opened on a button click that contains a grid to search for items to add to the first grid.
When  a selection is made I run the following javascript to update the parent:
    

string

 

contactScript1 = "window.opener.document.forms(0).submit();";

 

 

ScriptManager.RegisterStartupScript(Page, Page.GetType(), "Update", contactScript1, true);

 



My problem is here with the tab strip.
The tab align vertically and the background and text dissapear.

How can I fix this?
Yana
Telerik team
 answered on 09 Aug 2010
2 answers
147 views
The following is true if both the local and online help.

Go to Controls | RadPanelBar | Templates | Templates Overview

Under the "Example" heading is a coloured block including the text "For an example of Content Templates please see the PanelBar / Templates demo." 

Clicking on the link results in a "Bad Request".

-- 
Stuart
Stuart Hemming
Top achievements
Rank 2
 answered on 09 Aug 2010
3 answers
81 views
Hi All,

I am using MOSS 2007 and I already have several applications using RadEditor for MOSS (via code and via list configuration). The RadEditor is deployed to GAC.

I need to upgrade the RadEditor for newer version (5.5.x), but I can't break the current applications using it.

I would like to know if it is possible to have two versions of RadEditor running on the same server. My idea is to install the newer version, and enable the RadEditor feature on the desired site, but keeping the old sites using the old RadEditor version.

Tks
Stanimir
Telerik team
 answered on 09 Aug 2010
1 answer
127 views
This should be simple but I can't figure it out.  How do I bind a field in a template to a custom attribute?  I thought something like
value='<%# DataBinder.Eval(Container, "Attributes[\"MyTime\"]") %>' would work but it doesn't.
Peter
Telerik team
 answered on 09 Aug 2010
1 answer
134 views

I'm using a FormTemplate for editing, and if I set the PopUpSettings-Modal="True", the browswer windows shows horizontal and veritcal scrollbars.

Your demo @ http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/popupeditform/defaultcs.aspx does the same thing, It shows the horizontal scroll when the edit form is shown. 

If PopUpSettings-Modal='False", the scrollbars don't appear.

Dimo
Telerik team
 answered on 09 Aug 2010
1 answer
156 views
Hi,

Can I make RadInputManager validation to triger also when user inputs space char as asp:RequiredFieldValidator does ?
Martin
Telerik team
 answered on 09 Aug 2010
1 answer
139 views
Hi,

I need to show two RAdListViews under NestedViewTemplate of radgrid,
both are bound with 2 different datasources.

Is it possible to show data from both the datasources under  NestedViewTemplate of radgrid, in telerik documentation they are telling that we can define only datasource.

Or any alternative for this.
Plz if i get any sample code, it will be helpfull for me.


Radoslav
Telerik team
 answered on 09 Aug 2010
1 answer
91 views
I have a sinking feeling that I'm going to feel stupid after one of you helps me with this one...

I'm positioning a RadWindow via OffsetElementID. That's working exactly as I want it to (opening the window right beside where the link in the Radgrid is), but whenever I click the Details link the page scrolls back to the top (it's not  a page refresh), which often hides the window if it was further down the list. Anyway ideas on how to stop this?

<telerik:RadWindowManager ID="RadWindowManager1" runat="server">
            <Windows>
                <telerik:RadWindow  
                    id="RadWindow1"
                    offsetelementid="detailsLink" 
                    runat="server"
                    showcontentduringload="false"
                    width="600px"
                    height="600px"
                    title="" 
                    visiblestatusbar="false"
                    reloadonshow="True" 
                    behaviors="Close, Move" 
                    skin="WebBlue">
                </telerik:RadWindow>
            </Windows>
 </telerik:RadWindowManager> 
   
 <telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="True" AllowSorting="True"
        DataSourceID="SqlDataSource1" GridLines=None Skin="WebBlue" PageSize="50" Width=100% 
        AllowFilteringByColumn=true ShowGroupPanel="True" OnItemCreated="RadGrid1_ItemCreated">
        <HeaderContextMenu EnableTheming="True" Skin="WebBlue">
            <CollapseAnimation Duration="200" Type="OutQuint" />
        </HeaderContextMenu>
        <ClientSettings AllowColumnsReorder="True" ReorderColumnsOnClient="True" AllowDragToGroup="True">
            <Selecting AllowRowSelect="True" />
        </ClientSettings>
        <MasterTableView GroupLoadMode=Client AutoGenerateColumns="False" DataKeyNames="pkRequestID" AllowMultiColumnSorting="True" DataSourceID="SqlDataSource1">
            <Columns>
                <telerik:GridBoundColumn  DataField="pkRequestID" HeaderText="ID" SortExpression="pkRequestID"
                    UniqueName="pkRequestID" FilterControlWidth="20px">
                    <HeaderStyle Width="5%" />
                       
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn  DataField="strTitle" HeaderText="Title" SortExpression="strTitle"
                    UniqueName="strTitle">
                    <HeaderStyle Width="50%" />
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="fullName" HeaderText="Submitted By" SortExpression="fullName"
                    UniqueName="fullName">
                    <HeaderStyle Width="15%" />
                </telerik:GridBoundColumn>
                <telerik:GridDateTimeColumn DataField="dteDate" HeaderText="Added" SortExpression="dteDate"
                    UniqueName="dteDate" DataFormatString="{0:MM/d/yy}">
                    <HeaderStyle Width="10%" HorizontalAlign=Center    />
                    <ItemStyle HorizontalAlign=Center />
                </telerik:GridDateTimeColumn>
                  
                <telerik:GridBoundColumn DataField="strStatus" HeaderText="Status" SortExpression="strStatus"
                    UniqueName="strStatus">
                     <HeaderStyle Width="10%" HorizontalAlign=Center  />
                     <ItemStyle HorizontalAlign=Center />
                </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="votes" HeaderText="Votes" SortExpression="votes"
                    UniqueName="votes" FilterControlWidth="20px">
                     <HeaderStyle Width="5%" HorizontalAlign=Center  />
                     <ItemStyle HorizontalAlign=Center />
                </telerik:GridBoundColumn>
                  
                <telerik:GridBoundColumn DataField="comments" HeaderText="Comments" SortExpression="comments"
                    UniqueName="comments" FilterControlWidth="20px">
                     <HeaderStyle Width="5%" HorizontalAlign=Center  />
                     <ItemStyle HorizontalAlign=Center />
                </telerik:GridBoundColumn>
                  
                <telerik:GridTemplateColumn UniqueName="pkRequestID" AllowFiltering="False">
                     <ItemTemplate>
                         <asp:HyperLink ID="detailsLink" runat="server" Text="Details"></asp:HyperLink>
                     </ItemTemplate>
                     <HeaderStyle Width="5%" HorizontalAlign=Center  />
                </telerik:GridTemplateColumn>
            </Columns>
            <ExpandCollapseColumn>
                <HeaderStyle Width="20px" />
            </ExpandCollapseColumn>
            <RowIndicatorColumn>
                <HeaderStyle Width="20px" />
            </RowIndicatorColumn>
        </MasterTableView>
          
        <PagerStyle Mode=NextPrevNumericAndAdvanced Position="TopAndBottom" />
    </telerik:RadGrid>

Here's my codebehind:
Private Sub RadGrid1_Init(ByVal sender As Object, _
ByVal e As System.EventArgs) Handles RadGrid1.Init
    Dim menu As GridFilterMenu = RadGrid1.FilterMenu
    Dim i As Integer = 0
    While i < menu.Items.Count
        If menu.Items(i).Text = "NoFilter" Or _
           menu.Items(i).Text = "Contains" Or _
           menu.Items(i).Text = "DoesNotContain" Or _
           menu.Items(i).Text = "StartsWith" Or _
           menu.Items(i).Text = "EndsWith" Or _
           menu.Items(i).Text = "EqualTo" Or _
           menu.Items(i).Text = "NotEqualTo" Or _
           menu.Items(i).Text = "GreaterThan" Or _
           menu.Items(i).Text = "LessThan" Then
            i = i + 1
        Else
            menu.Items.RemoveAt(i)
        End If
    End While
End Sub 'RadGrid1_Init
    
Protected Sub clrFilters_Click(ByVal sender As Object, ByVal e As EventArgs)
    For Each column As GridColumn In RadGrid1.MasterTableView.Columns
        column.CurrentFilterFunction = GridKnownFunction.NoFilter
        column.CurrentFilterValue = String.Empty
    Next
    RadGrid1.MasterTableView.FilterExpression = String.Empty
    RadGrid1.MasterTableView.Rebind()
End Sub
  
Protected Sub RadGrid1_ItemCreated(ByVal sender As Object, ByVal e As GridItemEventArgs)
    If TypeOf e.Item Is GridDataItem Then
        Dim detailsLink As HyperLink = DirectCast(e.Item.FindControl("detailsLink"), HyperLink)
        detailsLink.Attributes("href") = "#"
        detailsLink.Attributes("onclick") = [String].Format("return openDetailsWin('{0}');", e.Item.OwnerTableView.DataKeyValues(e.Item.ItemIndex)("pkRequestID"))
    End If
End Sub

Georgi Tunev
Telerik team
 answered on 09 Aug 2010
3 answers
120 views
Hi all,

I am using RadAjaxLoadingPanel and RadAjaxPanel with a Button which takes long time processing (Communicating with external machine), this is the code.

<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" Runat="server">
      <img alt="Loading..." src="loading.gif">
</telerik:RadAjaxLoadingPanel>

<telerik:RadAjaxPanel ID="RadAjaxPanel1" LoadingPanel="RadAjaxLoadingPanel1">
      <asp:Button ID="btn" runat="server" OnClick="btnClick" Text="Clieck here" />
</telerik:RadAjaxPanel>

protected void btnClick(object sender, EventArgs e)
{
      Foo() // function takes long time
}

After pressing this button it shows me this error message
Microsoft JScript runtime error: Sys.InvalidOperationException: A Control in already associated with the element

Is there anyway else to show loading image?????

another thing, that I tried to show loading with Gridview but it doesn't come. how to show loading with the GridView events???

Thank in advance
Maria Ilieva
Telerik team
 answered on 09 Aug 2010
1 answer
110 views

I have 3 separate grids on a page on a double click all 3 opens a same user control.

All 3 have <EditFormSettings UserControlName="~/BudgetPages/UserControls/BudgetItem.ascx" EditFormType="WebUserControl" />

All 3 call this function on double click

      function RowDblClick(sender, eventArgs) {

            sender.get_masterTableView().editItem(eventArgs.get_itemIndexHierarchical());

      }

Second and third on the page disappear when I double click.

Maria Ilieva
Telerik team
 answered on 09 Aug 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?