Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
160 views
Using a default grid, auto-generate columns - no changes to default, when I sort, the indicator icons flash and then disappear.   I have created completely new grids as well as converted old ones and the same thing happens no matter what I do. 

The sort does work - the icon showing what you have done just doesn't stick.
Nick
Top achievements
Rank 2
 answered on 24 Apr 2008
9 answers
427 views

This problem did not exist with the RadControls_Prometheus_2007_3_1425. When I replaced the DLL with the latest RadControls_for_ASP.NET_AJAX_2008_1_415, then this problem showed up.

When a column is dragged into the grouping panel, and the group splitters appear, the text inside the group splitter seem to be top aligned, and it passes the top boundary of the splitter, and for the very first group splitter, the text is clipped from the top by the grid header.

Definition of the grid:
   <telerik:RadGrid ID="RadGrid1" runat="server"
            PageSize="50" AllowSorting="True" Skin="Office2007" AllowPaging="True"
            ShowGroupPanel="True"  GridLines="None" AllowFilteringByColumn="True" OnNeedDataSource="RadGrid1_NeedDataSource" OnColumnCreated="RadGrid1_ColumnCreated" OnItemCreated="RadGrid1_ItemCreated" OnItemDataBound="RadGrid1_ItemDataBound" 
              >
            <PagerStyle Mode="NextPrevNumericAndAdvanced"></PagerStyle>                                          
                <MasterTableView CommandItemDisplay="Bottom"  TableLayout="Fixed" >                   
                    <ExpandCollapseColumn
                        Resizable="False" Visible="False">
                        <HeaderStyle Width="20px" />
                    </ExpandCollapseColumn>                     
                    <CommandItemTemplate>                           
                           <asp:Button ID="btnExcel" Width="150px" Text="Export Excel" OnClick="btnExcel_Click"
                                runat="server" BackColor="AliceBlue" BorderColor="AliceBlue" Font-Bold="true" />                           
                            <asp:Button ID="btnCSV" Width="150px" Text="Export CSV" OnClick="btnCSV_Click"
                                runat="server" BackColor="AliceBlue" BorderColor="AliceBlue" Font-Bold="true" />
<%--                            <asp:Button ID="btnPDF" Width="150px" Text="Export To PDF" OnClick="btnPDF_Click"
                                runat="server" />--%>
                    </CommandItemTemplate>
                    <Columns>
                     <telerik:GridTemplateColumn AllowFiltering="False" HeaderText="TemplateColumn" UniqueName="TemplateColumn">
                                <ItemTemplate>
                                    <asp:Button ID="Button1" runat="server" CommandName="MyCustomAction" Text="Do action"
                                        OnClick="Button1_Click" />
                                </ItemTemplate>
                            </telerik:GridTemplateColumn>
                    </Columns>
                    <GroupHeaderItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
                        Font-Strikeout="False" Font-Underline="False" VerticalAlign="Bottom" Wrap="True" />
                    <EditFormSettings>
                        <PopUpSettings ScrollBars="None" />
                    </EditFormSettings>
                    <RowIndicatorColumn Visible="False">
                        <HeaderStyle Width="20px" />
                    </RowIndicatorColumn>                                                     
                </MasterTableView>
            <ClientSettings ReorderColumnsOnClient="True" AllowDragToGroup="True"
                AllowColumnsReorder="True"   >                               
                <Scrolling AllowScroll="True" UseStaticHeaders="True"     />
                <Resizing AllowColumnResize = "True"  EnableRealTimeResize="True" ResizeGridOnColumnResize="True"   />               
               
            </ClientSettings>
              <GroupHeaderItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
                  Font-Strikeout="False" Font-Underline="False" VerticalAlign="Bottom" Wrap="True" />
            </telerik:RadGrid>

In order to resolve this problem I did the following:

In RadGrid1_ItemDataBound and RadGrid1_ItemCreated events:

            if (e.Item is GridGroupHeaderItem)
            {
                GridGroupHeaderItem item = (GridGroupHeaderItem)e.Item;
                item.DataCell.VerticalAlign = VerticalAlign.Bottom;                    
                item.VerticalAlign = VerticalAlign.Bottom;            
            }

In column created event: 

            if (e.Column is GridGroupSplitterColumn)
            {
                GridGroupSplitterColumn gr = (GridGroupSplitterColumn)e.Column;
                gr.HeaderStyle.VerticalAlign = VerticalAlign.Bottom;
                gr.HeaderStyle.Wrap = true;
                gr.ItemStyle.VerticalAlign = VerticalAlign.Bottom;
                gr.ItemStyle.Wrap = true;
            }

None of the above approaches solved the problem. If I change the height of the splitter, it works, but I cant seem to do anything with the text.

I cannot attach an image, but I would if I could to illustrate this problem.

Any help would be appreciated.

Thanks,
Tal

Konstantin Petkov
Telerik team
 answered on 24 Apr 2008
1 answer
156 views
I am using the RadPanelBar with the 2008 controls. I am using the Office2007 skin. I have changed the PanelBar.Office2007.css file to reduce the line height property to 20px on the .RadPanelBar_Office2007 .rpText class to make it smaller. However these changes are not being reflected on the page. If I inspect the loaded css when the page loads the old value is of 31px is still being used despite my changes. Any help?
Paul
Telerik team
 answered on 24 Apr 2008
1 answer
533 views

Hi,

I want to loop through all of the trees nodes, selecting a specific node, and then expand all parent nodes.

Ive been trying to use this code to do this.
Apparently this will only loop through the root nodes, witch i only have one of, please help me.

foreach (RadTreeNode NodeToExpand in rtvMenu.Nodes)
{
    if(Convert.ToInt32(NodeToExpand.Value) == OptionalMenuId)
     {
        NodeToExpand.ExpandParentNodes();
    }
}

//DG

Atanas Korchev
Telerik team
 answered on 24 Apr 2008
1 answer
194 views
Can someone explain what Telerik.Web.UI.WebResource.axd is for?

Also, I'm experimenting with TabStrip and used a skin I haven't placed in my web skin directory, yet it is showing the correct skin images and layout. Where are the images and css coming from?
Paul
Telerik team
 answered on 24 Apr 2008
4 answers
217 views
Hi

I've just updated an application to the new Prometheus release and have a problem.

I have a FormView containing a RadAjaxPanel. The first time I cause an event that should cause a callback, I get a full page postback and refresh.

When the page reloads, the css class applied to the RadAjaxPanel no longer seems to be in effect.

But subsequent events cause an Ajax callback as expected rather than the full postback that occurs the first time.

This problem didn't occur with the "classic" RadAjax.

I've attached the markup of the FormView below:

<asp:FormView ID="fvPage" runat="server" DefaultMode="Insert" DataSourceID="sdsForm" DataKeyNames="PageCode" OnDataBound="fvPage_DataBound" OnItemInserted="fvPage_ItemInserted" OnItemInserting="fvPage_ItemInserting" OnItemUpdated="fvPage_ItemUpdated" OnItemUpdating="fvPage_ItemUpdating">  
    <InsertItemTemplate> 
        <asp:ValidationSummary ID="vs1" runat="server" ForeColor="" CssClass="errorpanel" DisplayMode="List" EnableClientScript="true" ValidationGroup="Page" /> 
        <div id="formcontainer">  
            <rad:RadAjaxPanel ID="rap1" runat="server" EnablePageHeadUpdate="False" LoadingPanelID="alp1" CssClass="zerodiv">  
                <sam:FormLabel ID="flblSection" runat="server" ControlToLabel="ddlSection" Text="Website Section" ToolTip="Website Section" /><asp:DropDownList ID="ddlSection" runat="server" CssClass="forminputwider" TabIndex='<%# this.TabIndex %>' DataSourceID="sdsSection" DataTextField="SectionName" DataValueField="Code" AppendDataBoundItems="true" OnSelectedIndexChanged="CreateUniqueUrl" AutoPostBack="true" SelectedValue='<%# Bind("SectionCode") %>'><asp:ListItem Value="" Text="(Site Root)" /></asp:DropDownList><br class="clear" /> 
                <sam:FormLabel ID="flblPageName" runat="server" ControlToLabel="txtPageName" Text="Descriptive Page Name" ToolTip="Descriptive Page Name" /><asp:TextBox ID="txtPageName" runat="server" Text='<%# Bind("PageName") %>' ToolTip="Descriptive Page Name" TabIndex='<%# this.TabIndex %>' MaxLength="100" CssClass="forminputwider" OnTextChanged="CreateUniqueUrl" AutoPostBack="true" /><asp:RequiredFieldValidator ID="rfvPageName" ControlToValidate="txtPageName" ErrorMessage="Please enter a descriptive page name" ForeColor="" Display="None" ValidationGroup="Page" runat="server" /><br class="clear" /> 
                <sam:FormLabel ID="flblPageURL" runat="server" ControlToLabel="txtPageURL" Text="Page URL" ToolTip="Page URL" /><asp:TextBox ID="txtPageURL" runat="server" Text='<%# Bind("PageURL") %>' ToolTip="Page URL" TabIndex='<%# this.TabIndex %>' MaxLength="100" CssClass="forminputwider" Enabled="false" /><asp:RequiredFieldValidator ID="rfvPageURL" ControlToValidate="txtPageURL" ErrorMessage="A URL must be provided" ForeColor="" Display="None" ValidationGroup="Page" runat="server" /><br class="clear" /> 
            </rad:RadAjaxPanel> 
              
            <sam:FormLabel ID="flblBrowserTitle" runat="server" ControlToLabel="txtBrowserTitle" Text="Browser Title" ToolTip="Browser Title" /><asp:TextBox ID="txtBrowserTitle" runat="server" Text='<%# Bind("BrowserTitle") %>' CssClass="forminputwider" TabIndex='<%# this.TabIndex %>' MaxLength="250" /><asp:RequiredFieldValidator ID="rfvBrowserTitle" ControlToValidate="txtBrowserTitle" ErrorMessage="Please enter the text to appear in the browser title bar" ForeColor="" Display="None" ValidationGroup="Page" runat="server" /><br class="clear" /> 
            <sam:FormLabel ID="flblMetaKeywords" runat="server" ControlToLabel="txtMetaKeywords" Text="Meta Keywords" ToolTip="Meta Keywords" /><sam:SamTextBox ID="txtMetaKeywords" runat="server" Text='<%# Bind("MetaKeywords") %>' ToolTip="Meta Keywords" TabIndex='<%# this.TabIndex %>' MaxLength="250" TextMode="MultiLine" CssClass="forminputwider" /><br class="clear" /> 
            <sam:FormLabel ID="flblMetaDescription" runat="server" ControlToLabel="txtMetaDescription" Text="Meta Description" ToolTip="Meta Description" /><sam:SamTextBox ID="txtMetaDescription" runat="server" Text='<%# Bind("MetaDescription") %>' ToolTip="Meta Description" TabIndex='<%# this.TabIndex %>' MaxLength="250" TextMode="MultiLine" CssClass="forminputwider" /><br class="clear" /> 
            <div>Page Content</div> 
            <rad:RadEditor ID="rePageContent" runat="server" Skin="Telerik" ToolsFile="~/config/ToolsFile_PageEditor.xml" NewLineBr="false">  
                <CssFiles> 
                    <rad:EditorCssFile Value="~/styles/editor.css" /> 
                </CssFiles> 
                <ImageManager ViewPaths="~/uploads" UploadPaths="~/uploads" DeletePaths="~/uploads" SearchPatterns="*.jpg,*.gif,*.png" /> 
                <DocumentManager ViewPaths="~/uploads" UploadPaths="~/uploads" DeletePaths="~/uploads" SearchPatterns="*.txt,*.doc*,*.pdf" /> 
                <FlashManager ViewPaths="~/uploads" UploadPaths="~/uploads" DeletePaths="~/uploads" SearchPatterns="*.swf" /> 
            </rad:RadEditor> 
        </div> 
        <div id="formcontrol">  
            <asp:ImageButton ID="btnSave" ImageUrl="images/btn-save.png" ToolTip="Save" CommandName="Insert" CausesValidation="true" ValidationGroup="Page" TabIndex="<%# this.TabIndex %>" runat="server" /> 
            <asp:ImageButton ID="btnCancel" ImageUrl="images/btn-cancel.png" ToolTip="Cancel" CommandName="Cancel" OnClientClick="CancelEdit(); return false;" CausesValidation="false" TabIndex="<%# this.TabIndex %>" runat="server" /> 
        </div> 
        <rad:RadAjaxLoadingPanel ID="alp1" runat="server" Transparency="30" BackColor="#E0E0E0" BorderColor="#CCCCCC" MinDisplayTime="1500">  
            <asp:Image ID="imgLoading1" ImageUrl="~/RadControls/Skins/Samarind/Grid/loading.gif" BorderWidth="0px" AlternateText="Loading" runat="server" Style="margin-top: 10px;" /> 
        </rad:RadAjaxLoadingPanel> 
    </InsertItemTemplate> 
      
    <EditItemTemplate> 
        <asp:ValidationSummary ID="vs1" runat="server" ForeColor="" CssClass="errorpanel" DisplayMode="List" EnableClientScript="true" ValidationGroup="Page" /> 
        <asp:HiddenField ID="hfPageCode" Value='<%# Bind("PageCode") %>' runat="server" /> 
        <div id="formcontainer">  
            <rad:RadAjaxPanel ID="rap1" runat="server" LoadingPanelID="alp1" CssClass="zerodiv" EnablePageHeadUpdate="false">  
                <sam:FormLabel ID="flblSection" runat="server" ControlToLabel="ddlSection" Text="Website Section" ToolTip="Website Section" /><asp:DropDownList ID="ddlSection" runat="server" CssClass="forminputwider" TabIndex='<%# this.TabIndex %>' DataSourceID="sdsSection" DataTextField="SectionName" DataValueField="Code" AppendDataBoundItems="true" OnSelectedIndexChanged="CreateUniqueUrl" AutoPostBack="true" SelectedValue='<%# Bind("SectionCode") %>'><asp:ListItem Value="" Text="(Site Root)" /></asp:DropDownList><br class="clear" /> 
                <sam:FormLabel ID="flblPageName" runat="server" ControlToLabel="txtPageName" Text="Descriptive Page Name" ToolTip="Descriptive Page Name" /><asp:TextBox ID="txtPageName" runat="server" Text='<%# Bind("PageName") %>' ToolTip="Descriptive Page Name" TabIndex='<%# this.TabIndex %>' MaxLength="100" CssClass="forminputwider" OnTextChanged="CreateUniqueUrl" AutoPostBack="true" /><asp:RequiredFieldValidator ID="rfvPageName" ControlToValidate="txtPageName" ErrorMessage="Please enter a descriptive page name" ForeColor="" Display="None" ValidationGroup="Page" runat="server" /><br class="clear" /> 
                <sam:FormLabel ID="flblPageURL" runat="server" ControlToLabel="txtPageURL" Text="Page URL" ToolTip="Page URL" /><asp:TextBox ID="txtPageURL" runat="server" Text='<%# Bind("PageURL") %>' ToolTip="Page URL" TabIndex='<%# this.TabIndex %>' MaxLength="100" CssClass="forminputwider" Enabled="false" /><asp:RequiredFieldValidator ID="rfvPageURL" ControlToValidate="txtPageURL" ErrorMessage="A URL must be provided" ForeColor="" Display="None" ValidationGroup="Page" runat="server" /><br class="clear" /> 
            </rad:RadAjaxPanel> 
            <sam:FormLabel ID="flblBrowserTitle" runat="server" ControlToLabel="txtBrowserTitle" Text="Browser Title" ToolTip="Browser Title" /><asp:TextBox ID="txtBrowserTitle" runat="server" Text='<%# Bind("BrowserTitle") %>' CssClass="forminputwider" TabIndex='<%# this.TabIndex %>' MaxLength="250" /><asp:RequiredFieldValidator ID="rfvBrowserTitle" ControlToValidate="txtBrowserTitle" ErrorMessage="Please enter the text to appear in the browser title bar" ForeColor="" Display="None" ValidationGroup="Page" runat="server" /><br class="clear" /> 
            <sam:FormLabel ID="flblMetaKeywords" runat="server" ControlToLabel="txtMetaKeywords" Text="Meta Keywords" ToolTip="Meta Keywords" /><sam:SamTextBox ID="txtMetaKeywords" runat="server" Text='<%# Bind("MetaKeywords") %>' ToolTip="Meta Keywords" TabIndex='<%# this.TabIndex %>' MaxLength="250" TextMode="MultiLine" CssClass="forminputwider" /><br class="clear" /> 
            <sam:FormLabel ID="flblMetaDescription" runat="server" ControlToLabel="txtMetaDescription" Text="Meta Description" ToolTip="Meta Description" /><sam:SamTextBox ID="txtMetaDescription" runat="server" Text='<%# Bind("MetaDescription") %>' ToolTip="Meta Description" TabIndex='<%# this.TabIndex %>' MaxLength="250" TextMode="MultiLine" CssClass="forminputwider" /><br class="clear" /> 
            <asp:Panel ID="pnlPageContent" runat="server" CssClass="zerodiv">  
                <div>Page Content</div> 
                <rad:RadEditor ID="rePageContent" runat="server" Skin="Telerik" ToolsFile="~/config/ToolsFile_PageEditor.xml" NewLineBr="false">  
                    <CssFiles> 
                        <rad:EditorCssFile Value="~/styles/editor.css" /> 
                    </CssFiles> 
                    <ImageManager ViewPaths="~/uploads" UploadPaths="~/uploads" DeletePaths="~/uploads" SearchPatterns="*.jpg,*.gif,*.png" /> 
                    <DocumentManager ViewPaths="~/uploads" UploadPaths="~/uploads" DeletePaths="~/uploads" SearchPatterns="*.txt,*.doc*,*.pdf" /> 
                    <FlashManager ViewPaths="~/uploads" UploadPaths="~/uploads" DeletePaths="~/uploads" SearchPatterns="*.swf" /> 
                </rad:RadEditor> 
            </asp:Panel> 
        </div> 
        <div id="formcontrol">  
            <asp:ImageButton ID="btnSave" ImageUrl="images/btn-save.png" ToolTip="Save" CommandName="Update" CausesValidation="true" ValidationGroup="Page" TabIndex="<%# this.TabIndex %>" runat="server" /> 
            <asp:ImageButton ID="btnCancel" ImageUrl="images/btn-cancel.png" ToolTip="Cancel" CommandName="Cancel" OnClientClick="CancelEdit(); return false;" CausesValidation="false" TabIndex="<%# this.TabIndex %>" runat="server" /> 
        </div> 
        <rad:RadAjaxLoadingPanel ID="alp1" runat="server" Transparency="30" BackColor="#E0E0E0" BorderColor="#CCCCCC" MinDisplayTime="1500">  
            <asp:Image ID="imgLoading1" ImageUrl="~/RadControls/Skins/Samarind/Grid/loading.gif" BorderWidth="0px" AlternateText="Loading" runat="server" Style="margin-top: 10px;" /> 
        </rad:RadAjaxLoadingPanel> 
    </EditItemTemplate> 
</asp:FormView> 

Thanks for any advice!

Matt
Maria Ilieva
Telerik team
 answered on 24 Apr 2008
1 answer
101 views
I really like how you have got the collapsable pannels working on your site.
How are you doing this are you using one of your controls?

http://www.telerik.com/demos/aspnet/prometheus/Grid/Examples/Programming/Sort/DefaultCS.aspx

Thanks
Paul
Princy
Top achievements
Rank 2
 answered on 24 Apr 2008
1 answer
198 views
Hi, Greetings,
I have a web page that lets users select items. To let the user do this, we have two grids, the left grid shows all the available items, and the right side grid shows selected rows. we have two buttons in between one to select and one to remove selected item. (Both the grids have similar columns)
on button click (Server side), we would like to get the left side selected rows (update the database) and then ADD it to the right side selected grid.  (we have problems of adding those selected rows to the other grid)

What is the best way to do this? I have found no simpler way of acheiving this yet. can you please advise...

Thanks Don Almeida.
Sebastian
Telerik team
 answered on 24 Apr 2008
1 answer
166 views
This is the definition i was using:
<radW:RadWindowManager ID="wmSingleton" VisibleOnPageLoad="False" OffsetElementID="OffsetElement"
    runat="server" OnClientPageLoad="OnClientPageLoad">
    <Windows>
        <radW:RadWindow ID="winSymbol" runat="server" Height="460px" Width="925px" Behavior="Close"
            Title="" NavigateUrl="ListEdit.aspx" Modal="True" ReloadOnShow="false" OnClientClose="PostbackOnDialogClose"
            VisibleStatusbar="false" VisibleTitlebar="true" Skin="SfStyleClear" EnableEmbeddedSkins="false" ></radW:RadWindow>
    </Windows>
</radW:RadWindowManager>

This is the script method for "OnClientPageLoad":
function OnClientPageLoad(radWindow)
        {
            radWindow.set_OpenerElementID = 'link_<%= this.ID %>Menu';
        }

But the method is not firing when the client page is getting visible. need a solution ASAP.
Obi-Wan Kenobi
Top achievements
Rank 1
 answered on 24 Apr 2008
1 answer
144 views
Howdy,

One of the primary reasons I continue to avoid migrating to .NET from Classic ASP is the focus on visual design in .aspx pages. I develop systems more akin to Content Management Systems where every page is driven by database relationships meaning the visual layout is never predetermined.

While I have owned RadControls for nearly a year and have dabbled with it, there is no standard documentation on how to use the controls solely from code (in my case VB.NET). Is there a chance documentation could be updated or pages added to the support site that have examples of using the controls solely from the code side, where the .aspx is nearly empty?

Also, especially in the case of RadEditor, is there any other way to access the content other than rigid control names? When using JavaScript solutions like TinyMCE I can encode necessary database variables into the ID, but with control names, even using array creates the need for a round-trip to the database to walk the array and align the content with the necessary fields. This situation is another example of why .NET makes Web development more difficult in the .NET world than with Classic ASP. Is there a way to enumerate all of the RadEditors during a postback and walk each one to retrieve its ID?

Chris
Rumen
Telerik team
 answered on 24 Apr 2008
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?