Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
120 views
I am working with the web mail demo and removing the LINQ references and trying to work within the confines of the code behind.

I have the treeview on the left updating the grid in the top right (radgrid1) properly.  When I click on a gridrow in the top right (radgrid1), I want to display detail text in the bottom right pane (radgrid2).  I don't care what control displays it, It will just be text.

I thought selectedindexchanged on radgrid1 would get me there but it appears to be a page lifecycle issue perhaps?  I have confirmed this event is firing.
    Protected Sub RadGrid1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles RadGrid1.SelectedIndexChanged 
        RadGrid2.Rebind() 
    End Sub 


Any ideas?
Joel
Top achievements
Rank 2
 answered on 15 Dec 2009
2 answers
197 views
Hi.

I made MDX query with AdomdClient. I put result into DataSet and DataSet binded to Grid: RadGrid1.DataSource = dataset.Tables[0];

Grid loads data fine, paging works fine too, but Ive problem with filtering:

a] EnableLinqExpression = true
    * filtering string works perfect
    * filtering number gets InvalidCastException -> The specified cast is not valid. (translated by google) - error message in the end of post
    * didnt try another datatypes (like date etc)

b] EnableLinqExpression = false
   * when I press filter button, page is reloaded, but there is no filter applied.


Im totally lost, have no idea what to try next. Id be grateful for every idea. 

Thank you!


error message while using EnableLinqExpression = true

[InvalidCastException: Určené přetypování není platné.]   lambda_method(ExecutionScope , DataRowView ) +197   System.Linq.WhereEnumerableIterator`1.MoveNext() +161   System.Linq.Enumerable.Count(IEnumerable`1 source) +189   lambda_method(ExecutionScope ) +183   System.Linq.EnumerableExecutor`1.Execute() +103   System.Linq.EnumerableExecutor`1.ExecuteBoxed() +23   System.Linq.EnumerableQuery`1.System.Linq.IQueryProvider.Execute(Expression expression) +83   Telerik.Web.UI.GridDynamicQueryable.Count(IQueryable source) +278   Telerik.Web.UI.GridDataTableFromEnumerable.FillData35() +4177   Telerik.Web.UI.GridDataTableFromEnumerable.FillData() +1010   Telerik.Web.UI.GridResolveEnumerable.Initialize() +55   Telerik.Web.UI.GridResolveEnumerable.EnsureInitialized() +40   Telerik.Web.UI.GridResolveEnumerable.get_DataTable() +31   Telerik.Web.UI.GridEnumerableFromDataView..ctor(GridTableView owner, DataView dataView, Boolean autoGenerateColumns, GridColumnCollection presentColumns, String[] additionalField, Boolean retrieveAllFields) +222   Telerik.Web.UI.GridDataSourceHelper.CreateGridEnumerable(GridTableView owner, IEnumerable enumerable, Boolean caseSensitive, Boolean autoGenerateColumns, GridColumnCollection presentColumns, String[] additionalField, Boolean retrieveAllFields) +97   Telerik.Web.UI.GridDataSourceHelper.GetResolvedDataSource(GridTableView owner, Object dataSource, String dataMember, Boolean caseSensitive, Boolean autoGenerateColumns, GridColumnCollection presentColumns, String[] additionalField, Boolean retrieveAllFields) +165   Telerik.Web.UI.GridTableView.get_ResolvedDataSource() +218   Telerik.Web.UI.GridTableView.CreateChildControls(IEnumerable dataSource, Boolean useDataSource) +73   System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data) +57   System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) +114   System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +31   System.Web.UI.WebControls.DataBoundControl.PerformSelect() +142   Telerik.Web.UI.GridTableView.PerformSelect() +28   System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +73   Telerik.Web.UI.GridTableView.DataBind() +353   Telerik.Web.UI.GridTableView.Rebind() +97   Telerik.Web.UI.GridFilterCommandEventArgs.ExecuteCommand(Object source) +991   Telerik.Web.UI.RadGrid.OnBubbleEvent(Object source, EventArgs e) +191   System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37   Telerik.Web.UI.GridItem.OnBubbleEvent(Object source, EventArgs e) +61   System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37   Telerik.Web.UI.GridItem.OnBubbleEvent(Object source, EventArgs e) +165   Telerik.Web.UI.GridItem.FireCommandEvent(String commandName, Object commandArgument) +80   Telerik.Web.UI.RadGrid.RaisePostBackEvent(String eventArgument) +8934   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +175   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565

Hon Zy
Top achievements
Rank 1
 answered on 15 Dec 2009
9 answers
277 views
Hi,

I am using RadUpload control inside a table which use the style="position:absolute" and this is blocking the RadUpload select button to open the file select dialogue window. I dont know what could be the fix for this and i have to apply the style on the panel.
I also tried with Position:relative still not working.

Code:

<table cellpadding="0" class="UploadArea" style="position:absolute" cellspacing="0" width="100%">

    <tr>

        <td style="vertical-align: text-top">

            Upload General Information Documents

        </td>

    </tr>

    <tr>

        <td>

            <telerik:RadProgressManager ID="RadProgressManager1" runat="server" />

            <telerik:RadUpload ID="RadUpload1" runat="server" InputSize="70" MaxFileInputsCount="5"

                TargetFolder="~/UploadFiles">

            </telerik:RadUpload>

            <br />

            <telerik:RadProgressArea ID="RadProgressArea1" runat="server" DisplayCancelButton="True"

                ProgressIndicators="TotalProgressBar, TotalProgress, RequestSize, FilesCount, FilesCountPercent, SelectedFilesCount, CurrentFileName, TimeElapsed, TimeEstimated, TransferSpeed"

                Skin="Vista">

            </telerik:RadProgressArea>

        </td>

    </tr>

</table>

 

- Srini

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Keith Adler
Top achievements
Rank 1
 answered on 15 Dec 2009
1 answer
132 views
Hi,

I am assigning a dataset, which has 30,000 records, to Telerik RAD Grid. Once I export that Grid to PDF,
My system is getting Hanged and giving message "Virtual Memory Low".  machine becomes dead.

Following is the code:

ExportPDF.DataSource = dsSKUListAllData;  
ExportPDF.DataBind();  
ExportPDF.ExportSettings.IgnorePaging = true;  
ExportPDF.ExportSettings.Pdf.PageWidth = Unit.Parse("270mm");  
ExportPDF.ExportSettings.OpenInNewWindow = true;  
ExportPDF.MasterTableView.HierarchyDefaultExpanded = true;  
ExportPDF.Rebind();  
 
ExportPDF.ExportSettings.ExportOnlyData = true;  
ExportPDF.MasterTableView.ExportToPdf(); 

could anyone help me on this?

Thanks, Malli
Daniel
Telerik team
 answered on 15 Dec 2009
5 answers
468 views
Hi,

I'm trying to close a RadWindow using a button defined in the RadWindow's ContentTemplate, but I'm having trouble getting a reference to the RadWindow object using my GetWindow() javascript function. It's the same GetWindow function that I use in other RadWindows (and that's used in various Telerik examples) and it works fine, except in those scenarios I'm using the NavigateURL property instead of ContentTemplate. 

I'm using Firefox right now, so I expect the first part of the if-clause in the GetWindow() function to execute, but instead it drops down into the else-clause and then I get a frameElement is null error (since it's Firefox I assume.) But really the first part of the if-clause should be executing.

Here is a sample:

Thanks for your help, -Scott

ASP:
        <telerik:RadWindowManager Skin="WebBlue" ID="RadWindowManager2" onAutoSize="true" Behaviors="Close" VisibleStatusbar="false" runat="server"
            <Windows> 
                <telerik:RadWindow Skin="WebBlue" AutoSize="true" ID="RadCommentWindow" IconUrl="favicon.ico" runat="server"
                    <ContentTemplate> 
                        <asp:Label runat="server">Please enter a comment:<br />(max 1000 characters)</asp:Label><br /> 
                        <textarea rows="7" style="width: 400px;" id="txtComment"></textarea><br /> 
 
                        <asp:Button runat="server" ID="Button1" Text="OK" OnClientClick="if(!OnClientClose()) { return false; }" /> 
 
                     </ContentTemplate> 
                </telerik:RadWindow> 
            </Windows> 
        </telerik:RadWindowManager> 

JavaScript:

       function GetRadWindow() { 
            var oWindow = null
            if (window.radWindow) oWindow = window.radWindow; 
            else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow; 
            return oWindow; 
        } 
 
        function OnClientClose(oWnd, args) { 
            GetRadWindow().close() 
        } 

Scott Cullen
Top achievements
Rank 1
 answered on 15 Dec 2009
4 answers
163 views
I am trying to create a search input with the button inside of it, just like the search box in the www.microsoft.com page. I got the code from this page to do this.
http://www.telerik.com/community/code-library/aspnet-ajax/input/how-to-create-a-button-inside-a-radtextbox-ui.aspx

I am using my own custom theme for the telerik controls, including RadInput. My one-of-a-kind textbox I need for search does not come up the way I want it, it takes all its look from the telerik theme.

Thanks for any help.



Baal
Top achievements
Rank 1
 answered on 15 Dec 2009
1 answer
80 views

I have a radgrid that has a column with a data field type of "double".
When I use the Html option, the column displays inexcel with  he values.
However If I switch to the ExcelML format, the column in excel is there but  the cells are blank. 

there are the lines of code ...

 

' RadGridChecklistType.ExportSettings.Excel.Format = Telerik.Web.UI.GridExcelExportFormat.ExcelML

 

RadGridChecklistType.ExportSettings.Excel.Format = Telerik.Web.UI.GridExcelExportFormat.Html

Is there a bug in ExcelML?  

thanks

Daniel
Telerik team
 answered on 15 Dec 2009
1 answer
111 views
Hello,

My script references start erroring across the board whenever I add a date selected client-side event handler in the callback, as in:

<%= Html.RenderRadDatePicker((rad) =>

{

rad.ID = "StartDate";

rad.SelectedDate = DateTime.Today;

//rad.ClientEvents.OnDateSelected = "StartDate_DateSelected";

 

}, "Forest") %>

<%= Html.RenderRadTimePicker((rad) =>

{

rad.ID = "StartTime";

rad.SelectedDate = DateTime.Now.RoundHoursUp(1);

//rad.ClientEvents.OnDateSelected = "StartTime_DateSelected";

 

}, "Forest") %>

WHen the event handlers (with comment // removed of course), the page goes crazy with errors.  What is the cause of this?  Missing a script definition?

Thanks.

Georgi Krustev
Telerik team
 answered on 15 Dec 2009
0 answers
67 views
Hi All

I am using RadComboBox Where when i drap and drop ComboBox and in the run time i am getting the ComboBox only with drop down but on slecting on it the page is being refreshing and also when i click back space also it is being refreshed..... how can i solve can any one solve this

Thanks in advance.
ratan mishra
Top achievements
Rank 1
 asked on 15 Dec 2009
1 answer
66 views
Currently we are using the RADEditor in a Content Management System for allowing users to add/update news articles for their websites.  This gives the user a great amount of flexibility to for adding images, documents. etc to the news articles.  Currenly each news article contains a heading and summary for displaying news in a simple list with a read article link for retrieving the complete article.  The heading and summary fields are standard asp:TextBox controls. 

The latest request has been to provide an option for linking the heading to a PDF file as well as attach a thumbnail image to the heading.  Since the RADEditor already provides for this I was going to use a very basic toolbar that only displays the ImageManager and LinkManager button to allow users to add this to the heading. 

What I would like to know is if it would be possible to set the default tag for the Editor to a heading tag as this should be the only option for our news headings?
Dobromir
Telerik team
 answered on 15 Dec 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?