Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
153 views

I made two small modifications to the default File Explorer Demo to test a problem I am having, and I was able to repeat the problem on it.
The issue is this:
I added a button to a page and a PreRender event to the file Explorer control on a page with the intention of updating the button text after the prerender event occurs on the file explorer. For some reason, if I upload a new file, the button text is updated as it should be, if I delete an existing file, the pre render event occurs, and the code to change the button text runs, but the text on the button is never updated. Why would I get this result?
/radcontrols_aspnetajax/fileexplorer/examples/default/defaultcs.aspx
take your existing file explorer default demo, and add a button above the text: "Browse to an image and double click to preview."

<asp:Button ID="btnSubmit" runat="server" Text="Submit" /> 
 
then add a PreRender to FileExplorer1:
        protected void FileExplorer1_PreRender(object sender, EventArgs e)  
        {  
            btnSubmit.Text += " | 1";  
        } 
If you put a break point on the text change, it will fire both on adding a new document and deleting an existing document, but the button text does not change on delete.

Is this a bug?
If not, how do I change the other controls on a page after an FileExplorer event?
Fiko
Telerik team
 answered on 05 Mar 2010
1 answer
133 views
I am using RadTools for ASP.NET 2009.Q3 SP2.

Can someone please tell me if the following possible.

I would like to build a user control (BaseGrid.ascx) that houses the Telerik RadGrid that will allow me to pass in different datasets to it based off of SQL views and or OpenAccess ORM ExtentClasses and have the grid display the columns/data automatically.  I am under the impression that the Grid's Auto Generate Columns at Runtime feature should do this however I have UNSUCCESSFULLY tried populating the grid using (OpenAccess)DirectSQL - OQL - LINQ and an OpenAccessDataSource(set at runtime).  When there are no errors then there simply in no data.

If I temporarily set the Grid's datasource to an OpenAccessDataSource and allow the columns to be built at design time then remove the DataSource but don't clear the Grid's schema then go back to dynamically setting the Grids datasource at runtime (with a method that usually results in a NO DATA TO DISPLAY message) it works and the data is there.  So for some reason the Auto Generate Columns At Runtime feature is not working.

The idea is to have a single code base for the Grid and dynamically set the columns and populate the data at runtime. 

Can someone please confirm and or point me in the right direction.

THANK YOU!
Mira
Telerik team
 answered on 05 Mar 2010
1 answer
162 views
I have a menu with z-index=7000, and a radwindowmanager with z-index=3000.

I need my menu be always on top of the windows, as the most .exe app.

But with a modal window I need this type of window be on top of everything, including the menu.

I create clientside via javascript the radwindows. How can I assign a z-index to my modal windows can be in top of everything, of course on top of other modal windows(previous ones), and the normal windows have their normal z-index under my radmenu?

Thanks.
Princy
Top achievements
Rank 2
 answered on 05 Mar 2010
1 answer
137 views
Hi

I have a fully functional Radgrid onto which I want to add the ability to resize. I have added the resizing attributes into the ClientSettings and when the grid renders, all I have is a black line down the side of the page. Here is the code with the offending resizing lines in bold. Can anyone tell me where I'm going wrong.

Thanks in Advance

Mark Robinson

 

<telerik:RadGrid ID="RadGrid1" AutoGenerateColumns="false" DataSourceID="LinqDataSource1"

 

AllowFilteringByColumn="True" AllowPaging="True" AllowSorting="True" runat="server" style="position:absolute; top:2000px; left:38px; " SkinID="None" >

 

 

 

<Headerstyle BackColor="LightSkyBlue" Font-Bold="True" ForeColor="Black"/>

 

 

 

<pagerstyle mode="NextPrevAndNumeric" BackColor="LightSkyBlue" />

 

 

 

<groupingsettings casesensitive="false" />

 

 

 

<AlternatingItemStyle BackColor="Gainsboro" />

 

 

 

<ItemStyle BackColor="#F9D295" />

 

 

 

<EditItemStyle BackColor="#F9D295" />

 

 

 <

SelectedItemStyle BackColor="Gold" />

 

 

 

<MasterTableView TableLayout="Auto" >

 

 

 

<Columns>

 

 

 

<telerik:GridBoundColumn UniqueName="ColPlanner"

 

 

 

SortExpression="Planner_Code" HeaderText="Planner Code" DataField="Planner_Code" ReadOnly="true">

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn UniqueName="ColSupplier"

 

 

 

SortExpression="Supplier_Code" HeaderText="Supplier Code" DataField="Supplier_Code" ReadOnly="true">

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn UniqueName="ColFamily"

 

 

 

SortExpression="Product_Family" HeaderText="Product Family" DataField="Product_Family" ReadOnly="true">

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn UniqueName="ColPTC"

 

 

 

SortExpression="Part_Type_Code" HeaderText="Part Type Code" DataField="Part_Type_Code" ReadOnly="true">

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn UniqueName="ColPartNumber"

 

 

 

SortExpression="Part_Number" HeaderText="Part Number" DataField="Part_Number" ReadOnly="true">

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn UniqueName="ColPartDesc"

 

 SortExpression

="Part_Description" HeaderText="Part Description" DataField="Part_Description" ReadOnly="true">

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn UniqueName="ColRule"

 

 

 

SortExpression="Rule" HeaderText="Rule" DataField="Rule" ReadOnly="true">

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn UniqueName="ColTotalTarget"

 

 

 

SortExpression="Total_Inventory_Target" HeaderText="Total Inventory Target" DataField="Total_Inventory_Target" ReadOnly="true" DataFormatString="{0:F0}" >

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn UniqueName="ColBuffer"

 

 

 

SortExpression="Buffer_Inventory" HeaderText="Buffer Inventory" DataField="Buffer_Inventory" ReadOnly="true" DataFormatString="{0:F0}">

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridNumericColumn UniqueName="ColInvTarget"

 

 

 

SortExpression="Inventory_Target" HeaderText="Inventory Target" DataField="Inventory_Target" DataFormatString="{0:F0}">

 

 

 

</telerik:GridNumericColumn>

 

 

 

<telerik:GridNumericColumn UniqueName="ColKanbanQty"

 

 

 

SortExpression="Kanban_Qty" HeaderText="Kanban Qty" DataField="Kanban_Qty" DataFormatString="{0:F0}">

 

 

 

</telerik:GridNumericColumn>

 

 

 

<telerik:GridNumericColumn UniqueName="ColNumberofRedKanbans"

 

 

 

SortExpression="Number_of_Red_Kanbans" HeaderText="Number of Red Kanbans" DataField="Number_of_Red_Kanbans" DataFormatString="{0:F0}">

 

 

 

</telerik:GridNumericColumn>

 

 

 

<telerik:GridNumericColumn UniqueName="ColNumberofYellowKanbans"

 

 

 

SortExpression="Number_of_Yellow_Kanbans" HeaderText="Number of Yellow Kanbans" DataField="Number_of_Yellow_Kanbans" DataFormatString="{0:F0}">

 

 

 

</telerik:GridNumericColumn>

 

 

 

<telerik:GridNumericColumn UniqueName="ColNumberofGreenKanbans"

 

 

 

SortExpression="Number_of_Green_Kanbans" HeaderText="Number of Green Kanbans" DataField="Number_of_Green_Kanbans" DataFormatString="{0:F0}">

 

 

 

</telerik:GridNumericColumn>

 

 

 

<telerik:GridBoundColumn UniqueName="ColLeadtimeInv"

 

 

 

SortExpression="Leadtime_Inventory" HeaderText="Leadtime Inventory" DataField="Leadtime_Inventory" ReadOnly="true" DataFormatString="{0:F0}">

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn UniqueName="ColVariabilityMargin"

 

 

 

SortExpression="Variability_Margin" HeaderText="Variability Margin (Days)" DataField="Variability_Margin" ReadOnly="true" DataFormatString="{0:F0}">

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn UniqueName="ColVariabilityPerc"

 

 

 

SortExpression="Variability_Perc" HeaderText="Variability Margin % of Leadtime" DataField="Variability_Perc" ReadOnly="true" DataFormatString="{0:F0}">

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn UniqueName="ColComment"

 

 

 

SortExpression="Comment" HeaderText="Calculation Comment" DataField="Comment" ReadOnly="true">

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn UniqueName="ColForecastType"

 

 

 

SortExpression="Forecast_Type" HeaderText="Forecast Type" DataField="Forecast_Type" ReadOnly="true">

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn UniqueName="ColRuleName"

 

 

 

SortExpression="Rule_Name" HeaderText="Rule Name" DataField="Rule_Name" ReadOnly="true">

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn UniqueName="ColDateCalculated"

 

 

 

SortExpression="Date_Calculated" HeaderText="Date Calculated" DataField="Date_Calculated" ReadOnly="true" DataFormatString="{0:d}">

 

 

 

</telerik:GridBoundColumn>

 

 

 

</Columns>

 

 

 

</MasterTableView>

 

 

 

<ClientSettings AllowColumnsReorder="true" ReorderColumnsOnClient="true">

 

 

 

<Resizing

 

 

 

AllowColumnResize="True"

 

 

 

AllowRowResize = "false"

 

 

 

ResizeGridOnColumnResize = "false"

 

 

 

ClipCellContentOnResize = "true"

 

 

 

EnableRealTimeResize = "false" />

 

 

 

</ClientSettings>

 

 

 

</telerik:RadGrid>

 

 

 

<asp:LinqDataSource ID="LinqDataSource1" runat="server" ContextTypeName="LinqToSql.LinqMonthShowAnalysisData"

 

 

 

TableName="wt107_Final_Inventory_Targets_Kanbans" AutoPage="true" AutoSort="true">

 

 

 

</asp:LinqDataSource>

 

 

 

 

 


Pavlina
Telerik team
 answered on 05 Mar 2010
1 answer
117 views
Hello,

I have two questions about the zoom tool on the RadEditor.

- Is it possible to zoom by default the content area on page load?
- Is the zoom only works on Internet Explorer? In Firefox, it doesn't works!

Thanks in advance.
Rumen
Telerik team
 answered on 05 Mar 2010
3 answers
92 views
Hi @

I want to automate the pages which are using Rad Controls.

Does QTP Support Rad Controls.

If yes then please provide a sample which will help us in understanding the implementation.

Thanks in advance.
Konstantin Petkov
Telerik team
 answered on 05 Mar 2010
1 answer
82 views

I have a LinqDataSource which is configured to pull records from a table.  When I bind a RadGrid to the LDS at design time, the columns from the table are visible in VS design view.  Due to the security constraints of our environment, I need to bind to the output of stored procedures instead of binding directly to tables.  I am able to do this at runtime by setting e.Result to the output of a method in the datacontext.  Of course, this means that the columns returned by the stored proc are not shown in the RadGrid in VS design view.

Is it possible to specify a stored proc as the data source for a LinqDataSource and have the columns displayed in the RadGrid at design time?
Veli
Telerik team
 answered on 05 Mar 2010
2 answers
186 views

Hello,

I want to set the RadRotator ItemHeight from javascript (window.innerWidth). 

 

Do you have any ideas?

Thanks,
Vance

Fiko
Telerik team
 answered on 05 Mar 2010
1 answer
64 views
Hi,

I have aspx page base on .net C# with several telerik(Ajax) objects.
When I try to submit page via javascript (document.forms[].submit()) nothing happens.
I can see with Firebug that telerik captures the post proccess with miles of javascript code.

Anyone know how they can work together?

Thanks,
Avi
Veli
Telerik team
 answered on 05 Mar 2010
1 answer
237 views
I'm trying to use the asp:label control with the AssociatedControlID attribute referring to the ID attribute in a telerik:RadTextBox, let's say ID="XXX".  It does not work, no focus is put in the field when the label is clicked.  After viewing the source you can see why, there is a hidden field with ID="XXX" and a visible field with ID="XXX_Text".  I switch the telerik:RadTextBox to asp:textbox and it works.  I consider this a bug, do others agree?

Works...
<asp:Label ID="NameFirst_label" runat="server" Text="First Name:" AssociatedControlID="NameFirst" />
<asp:TextBox ID="NameFirst" runat="server" />

Doesn't work...
<asp:Label ID="NameFirst_label" runat="server" Text="First Name:" AssociatedControlID="NameFirst" />
<telerik:RadTextBox ID="NameFirst" runat="server" />
Dimo
Telerik team
 answered on 05 Mar 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?