Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
358 views
The width on combobox is being set to 160px for the width from the bin code if no width attribute has been parsed to it.

I think this is bad since the default width should be controlled by the skin css and not from the bin/dll.

I found a hack for this, but it will change all ComboBox sizes and overrule the width attribute, but most importantly it overrules the static 160px width which was needed for this customer (without changing all pages) when upgrading to the AJAX version.

Create a css class called ".RadComboBox_SKIN" where SKIN is the skin name (working on a custom skin here) and add min-width or max-width to make it bigger or smaller. I guess it won't work in IE6 thou.
Grendizer
Top achievements
Rank 1
 answered on 15 Sep 2008
1 answer
72 views
Hi, I've installed the editor in an asp.net application. If I try to delete an image in WYSIWYG mode it gives me an error and IE7 crashes.

Do you know how to solve it? Thanks,
Marco
Rumen
Telerik team
 answered on 15 Sep 2008
1 answer
107 views
Hi there

we have just implemented a new sliding panel on the left of the page that will give the user the option to hide and show a search panel. the trouble is that this does not work in IE6. the panel is a long line at the top of the page and we cannot use the search page. IE7 and FF is fine though

the code is below please help

thanks

paul


<asp:Content runat="server" ID="Content1" ContentPlaceHolderID="c1">
    <rad:RadSplitter ID="RadSplitter1" runat="server" Width="99%" Height="100%" Skin="Vista"  >
        <rad:RadPane ID="LeftPane" runat="server" Scrolling="none" MinHeight="600" Height ="600"  >
            <rad:RadSlidingZone ID="SlidingZone1" runat="server" Width="22" ExpandedPaneId="RadSlidingPane1"
                DockedPaneId="RadSlidingPane1"  >
                <rad:RadSlidingPane ID="RadSlidingPane1" Title="Search Panel" IconUrl="~/css/images/search.jpg"
                    runat="server" MinWidth="220" Width="220" BackColor="#F5F5F5">
                    <div id="dcl_search">
                        <dcl:corners runat="server" ID="ucCornersTop1" Position="top" Color="grey" EnableViewState="false" />
                        <div id="dcl_search_header">
                            <span class="dcl_panel_label">Search</span></div>
                        <asp:UpdatePanel runat="server" ID="UpdatePanel1">
                            <ContentTemplate>
                                <div id="dcl_search_panel">
                                    <table>
                                        <tr>
                                            <td>
                                                <asp:Label AssociatedControlID="ddlStatus" runat="server" ID="lblWorkFlowStatus"
                                                    Text="Status" /><br />
                                                <asp:DropDownList ID="ddlStatus" runat="server" Width="175" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:Label AssociatedControlID="ddlDocumentType" runat="server" ID="lblDocumentType"
                                                    Text="Document Type" /><br />
                                                <asp:DropDownList ID="ddlDocumentType" runat="server" Width="140" AutoPostBack="true">
                                                    <asp:ListItem Selected="True" Text="All" Value="0"></asp:ListItem>
                                                    <asp:ListItem Text="SPC" Value="1"></asp:ListItem>
                                                    <asp:ListItem Text="PIL" Value="2"></asp:ListItem>
                                                </asp:DropDownList>
                                            </td>
                                        </tr>
                                        <tr runat="server" id="liPublishPDF" visible="false">
                                            <td>
                                                <asp:CheckBox runat="server" ID="chkPublishPDF" Text="Show only PublishedPDF" EnableViewState="false" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:CheckBox runat="server" ID="chkIsJobFastTrack" Text="Show only FastTrack" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:Label AssociatedControlID="ddlJobType" runat="server" ID="lblJobType" Text="Submission Type" /><br />
                                                <asp:DropDownList ID="ddlJobType" runat="server" Width="140">
                                                    <asp:ListItem Selected="True" Text="All" Value="0"></asp:ListItem>
                                                    <asp:ListItem Text="New" Value="1"></asp:ListItem>
                                                    <asp:ListItem Text="Update" Value="2"></asp:ListItem>
                                                </asp:DropDownList>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:Label AssociatedControlID="txtJobId" runat="server" ID="lblJobId" Text="DMS Job Id" />
                                                <asp:CompareValidator ID="CompareValidator2" Display="Dynamic" runat="server" ControlToValidate="txtJobId"
                                                    ToolTip="Invalid Number" Text="Invalid Number" Operator="DataTypeCheck" Type="Integer"></asp:CompareValidator><br />
                                                <asp:TextBox runat="server" ID="txtJobId" Width="170" Columns="18"></asp:TextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:Label AssociatedControlID="txtDocumentId" runat="server" ID="lblDocumentId"
                                                    Text="eMC Document ID" />
                                                <asp:CompareValidator ID="CompareValidator1" Display="Dynamic" runat="server" ControlToValidate="txtDocumentId"
                                                    ToolTip="Invalid Number" Text="Invalid Number" Operator="DataTypeCheck" Type="Integer"></asp:CompareValidator><br />
                                                <asp:TextBox runat="server" ID="txtDocumentId" Width="170" Columns="18"></asp:TextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:Label AssociatedControlID="txtDocumenTitle" runat="server" ID="lblDocumentTitle"
                                                    Text="Document Title Like..." /><br />
                                                <asp:TextBox runat="server" ID="txtDocumenTitle" Width="170" Columns="18"></asp:TextBox>
                                            </td>
                                        </tr>
                                        <tr runat="server" id="lilblCompanyName">
                                            <td>
                                                <asp:Label AssociatedControlID="txtCompanyName" runat="server" ID="lblCompanyName"
                                                    Text="Company Name Like..." /><br />
                                                <asp:TextBox runat="server" ID="txtCompanyName" Width="170" Columns="18"></asp:TextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:Label AssociatedControlID="imgFrom" runat="server" ID="lblFrom" Text="From:" />
                                                <br />
                                                <asp:TextBox runat="server" ID="txtFromDate" CssClass="dcl_datefield" ReadOnly="true"
                                                    Width="150" Columns="18">All</asp:TextBox>
                                                <img runat="server" id="imgFrom" onclick="ShowDatePicker(this, event, 'm1_c1_txtFromDate', 'short', 'right', 'showall');"
                                                    src="images/date.gif" alt="From" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:Label AssociatedControlID="imgTo" runat="server" ID="lblTo" Text="To:" />
                                                <br />
                                                <asp:TextBox runat="server" ID="txtToDate" CssClass="dcl_datefield" ReadOnly="true"
                                                    Width="150" Columns="18">All</asp:TextBox>
                                                <img runat="server" id="imgTo" onclick="ShowDatePicker(this, event, 'm1_c1_txtToDate', 'short', 'right', 'showall');"
                                                    src="images/date.gif" alt="To" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:Label AssociatedControlID="ddlOrderBy" runat="server" ID="lblOrderBy" Text="Order By" />
                                                <br />
                                                <asp:DropDownList ID="ddlOrderBy" runat="server">
                                                    <asp:ListItem Text="Document Title" Value="Title"></asp:ListItem>
                                                    <asp:ListItem Text="DMS Date (oldest first)" Value="JobStartedDate ASC"></asp:ListItem>
                                                    <asp:ListItem Selected="True" Text="DMS Date (newest first)" Value="JobStartedDate DESC"></asp:ListItem>
                                                    <asp:ListItem Text="Approval Date" Value="JobCompletedDate DESC"></asp:ListItem>
                                                </asp:DropDownList>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                &nbsp;
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:LinkButton runat="server" ID="btnSearch" Text="Search" CssClass="dcl_button_search" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:Label ID="Label1" runat="server" AssociatedControlID="chkRefresh" Text="Auto Refresh Search Page:" /><asp:CheckBox
                                                    runat="server" ID="chkRefresh" Checked="false" AutoPostBack="true" />
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                            </ContentTemplate>
                        </asp:UpdatePanel>
                        <dcl:corners runat="server" ID="Corners1" Position="bottom" Color="grey" EnableViewState="false" />
                    </div>
                </rad:RadSlidingPane>
            </rad:RadSlidingZone>
        </rad:RadPane>
        <rad:RadSplitBar ID="Radsplitbar1" runat="server"></rad:RadSplitBar>
        <rad:RadPane ID="Radpane2" runat="server" Scrolling="None">
            <div id="dcl_page_rightpanel_container2">
                <div id="dcl_page_rightpane">
                    <asp:Panel ID="dcl_results" runat="server">
                        <dcl:corners runat="server" ID="ucCornersTop3" Position="top" Color="grey" EnableViewState="false" />
                        <div id="dcl_search_results_border">
                            <div id="dcl_search_results_header">
                                <span class="dcl_panel_label">Results
                                    <asp:LinkButton runat="server" ID="lnkListView" Text="Show List View" OnClick="lnkListView_Click"></asp:LinkButton>
                                </span>
                                <div id="dcl_page_options">
                                    <span id="ddlPerPageLabel">
                                        <asp:Literal runat="server" ID="lblPerPage" Text="Items Per Page" />:</span>
                                    <asp:DropDownList ID="ddlPerPage" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlPerPage_SelectedIndexChanged">
                                        <asp:ListItem Value="1">1</asp:ListItem>
                                        <asp:ListItem Value="3">3</asp:ListItem>
                                        <asp:ListItem Value="5">5</asp:ListItem>
                                        <asp:ListItem Value="10">10</asp:ListItem>
                                        <asp:ListItem Value="15" Selected="True">15</asp:ListItem>
                                        <asp:ListItem Value="20">20</asp:ListItem>
                                        <asp:ListItem Value="25">25</asp:ListItem>
                                        <asp:ListItem Value="30">30</asp:ListItem>
                                    </asp:DropDownList>
                                    <dcl:pagenav ID="ucPageNav" runat="server" CssClass="options"></dcl:pagenav>
                                </div>
                            </div>
                            <div id="dcl_search_results_list">
                                <dcl:searchresults ID="ucSearchResults" runat="server" Visible ="false" />
                                <dcl:searchresults1 ID="ucSearchResults1" runat="server"  />
                            </div>
                        </div>
                        <dcl:corners runat="server" ID="ucCornersBottom3" Position="bottom" Color="grey"
                            EnableViewState="false" />
                    </asp:Panel>
                </div>
            </div>
            <dcl:datepicker ID="ucDatePicker" runat="server" EnableViewState="false"></dcl:datepicker>
        </rad:RadPane>
    </rad:RadSplitter>

    <script>       
       
        var refreshOption = document.getElementById('m1_c1_chkRefresh');
       
        if (refreshOption.checked)
        {
            window.setTimeout("window.location.reload(true)", 300000);
        }
       
    </script>

</asp:Content>



Svetlina Anati
Telerik team
 answered on 15 Sep 2008
1 answer
142 views
I have a 2-Level hierarchy grid binding with ObjectDataSource.

In the child grid I have a ASP Button in a template column.

How do I wire the button to that when it is clicked it does a partial postback to update or rebind the child grid or itself.

I have tried it like this but no luck.

protected void RadGrid1_ItemCreated(object sender, GridItemEventArgs e) 
    if (e.Item is GridDataItem) 
    { 
        GridDataItem dataItem = e.Item as GridDataItem; 
        Button Button1 = (Button)(dataItem["TemplateColumn"]).FindControl("Button1"); 
        Button1.OnClientClick = String.Format(@"{0}.__doPostBack(""{1}"",""{2}"");return false;", RadAjaxManagerProxy1.ClientID, Button1.UniqueID, Button1.CommandArgument); 
     
    } 

Or using this:

GridTableView tableView = e.Item.OwnerTableView; 
GridTableView detailView = tableView.Items[e.Item.ItemIndex].ChildItem.NestedTableViews[1]; 






Thanks
Iana Tsolova
Telerik team
 answered on 15 Sep 2008
4 answers
252 views
Hi Gurus,

I've created a fairly simple Ajax web app using Visual Studio 2008 and RadControls for ASP.NET Ajax (latest version and service pack)

I added a web form to the application. I then dragged the ScriptManager and RadAjaxManager controls onto the page just under the <form> tag.

I added a RadAjaxLoadingPanel.

Then I dragged on a RadTreeView control.

I then dragged a LinkButton control onto the form.

Then I set up the RadAjaxManager so when the linkbutton was affected it would also affect the RadTreeView control.

I wrote code in code-behind that refreshes the RadTreeView control.

When the user clicks the linkbutton, the RadAjaxLoadingPanel shows the image, but it's not animated (giving a clue that IE7 has received the response from the server and is now working to render the page).

It seems like 3 or 4 seconds from the animated icon freezing to when IE7 actually displays the list of ~150 items.

However, when I run the very same code in Firefox or Safari, the RadTreeView renders very quickly.

I understand that IE7 is probably just plain slow. But is Telerik going to address this by using a different (more efficient) method for rendering the RadTreeView?

I'm afraid that I won't be able to use the RadTreeView control if it's always this slow.

Maybe I'm doing something wrong and it's not the control?
Veselin Vasilev
Telerik team
 answered on 15 Sep 2008
2 answers
229 views
I use the rotator control to display rich html content as a slideshow.
When you hover (MouseOver) an item the sliding stops, is there a way to let the slideshow keeping going even if the mouse hover the slideshow?
Thanks
JOHN STRUCHYNSKI
Top achievements
Rank 1
 answered on 15 Sep 2008
3 answers
303 views
I have a simple radgrid bound to a simple datasource that return a single row.
In this row, I have many columns with numbers in its captions.
When I wanna set the aggregate funtion to Sum (for example), I get this error:
"Syntax error in aggregate argument: Expecting a single column argument with possible 'Child' qualifier."

What can I do?
I'm using radcontrol for ajax asp.net 2008.1.415.20, with C# in VS 2005.
Thanks in advance.
Image of the grid without aggregate functions
Sebastian
Telerik team
 answered on 15 Sep 2008
1 answer
197 views
I have a RadGrid based from Telerik.Web.UI.  One of my columns "AccountName" is replicated for each record so to save space I used this code to group by the "AccountName"

<GroupByExpressions> 
    <telerik:GridGroupByExpression> 
        <SelectFields> 
            <telerik:GridGroupByField FieldAlias="AccountName" FieldName="AccountName" HeaderText="Account">  
            </telerik:GridGroupByField> 
        </SelectFields> 
        <GroupByFields> 
            <telerik:GridGroupByField FieldName="AccountName" FieldAlias="AccountName" HeaderText="Account">  
            </telerik:GridGroupByField> 
        </GroupByFields> 
    </telerik:GridGroupByExpression>                      
</GroupByExpressions> 

Which works fine however the users want to drill down on the "AccountName" field to a details page.  Is there a way to add a "NavigateURL" or hyperlink to this group by expression?

If not my work around is to create a GridHyperLinkColumn with static text "View Detail" to allow the user to go to the details page.  Not as clean and my horizontal space on the page is very limited.

Thanks! 
Sebastian
Telerik team
 answered on 15 Sep 2008
1 answer
131 views
Help please.

I have moved a website from one server to another. (same version of windows, same service packs and .net on both) I have run the installation programe for the rad controls. I however get the following error.

any suggestions as to a possible fix would be appreciated.

thanks

rob fair

*************************************

Error opening Configuration File.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: Telerik.WebControls.RadEditorUtils.InvalidConfigFileException: Error opening Configuration File.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[InvalidConfigFileException: Error opening Configuration File.]
   Telerik.WebControls.RadEditor.GetValidConfigFile() +90
   Telerik.WebControls.RadEditor.ProcessConfigFile() +114
   Telerik.WebControls.RadEditor.OnInit(EventArgs e) +61
   System.Web.UI.Control.InitRecursive(Control namingContainer) +321
   System.Web.UI.Control.InitRecursive(Control namingContainer) +198
   System.Web.UI.Control.InitRecursive(Control namingContainer) +198
   System.Web.UI.Control.InitRecursive(Control namingContainer) +198
   System.Web.UI.Control.InitRecursive(Control namingContainer) +198
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +834


Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433

Kevin Babcock
Top achievements
Rank 1
 answered on 15 Sep 2008
1 answer
46 views

Hi there

This is first time i will be using Telerik controls in my visual Studio 2008 C# application.
This is very simple application which will be used to save the Book Names in the library.
There will be 10 rows with 3 columns.Each column will have one textbox where user can enter name of books.
there will be one submit button in the bottom. User hits the enter button and all the names from 30 textboxes will be saved to database in one hit.

Can someone please give me some headsup about this.

Thanks!

Sebastian
Telerik team
 answered on 15 Sep 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?