Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
129 views
Hi,

I am having a requirement, a check box with 3 states(checked. not Checked, Not applicable). Please let me know, is this possible by using any of the Telerik's Controls?

Thanks, Malli
Schlurk
Top achievements
Rank 2
 answered on 15 Dec 2009
1 answer
121 views
Hi All,

Here i am using RadComboBox of years where i am using for loop to add years into the RadComboBox but i am unable to add i am getting error which is hilighted in Bold how can i convert DateTime.Now into sting and add it to the RadComboBox 

Here is the code

for (int i = DateTime.Now.Year; i >= 1920; i--){ddlYear.Items.Add(i.ToString());}

Can any one help me.

Thanks in Advance.
Schlurk
Top achievements
Rank 2
 answered on 15 Dec 2009
2 answers
69 views
BTW this works fine in Firefox but not in IE7 or 8.

I have a TreeView with ContextMenu's that call the following JS:
function onClientContextMenuItemClicking(sender, args) { 
        var menuItem = args.get_menuItem(); 
        var treeNode = args.get_node(); 
        menuItem.get_menu().hide(); 
        switch (menuItem.get_value()) { 
            case "rename": 
                treeNode.startEdit(); 
                break; 
        } 
    } 

I also have a RadAjaxManager so that this treeview triggers another panel:
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> 
    <AjaxSettings> 
        <telerik:AjaxSetting AjaxControlID="RadTreeViewDockets"> 
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="PanelViewArea" LoadingPanelID="RadAjaxLoadingPanel1" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
    </AjaxSettings> 
</telerik:RadAjaxManager> 

In IE8, when I hit the Rename Context menu, for an instant the node appears editable but then it immediately looses focus and is not editable. I also tried wrapping both the TreeView and the other Panel in a RadAjaxPanel but had the same result.

Not sure if this is a bug or if there is a workaround.. Thanks!





James Reategui
Top achievements
Rank 1
 answered on 15 Dec 2009
1 answer
106 views
Hi,

I need sample code for MOSS webpart.
I want "export to excel" feature in Ajaxified Radgrid.

Please send me a sample code.

Thanks,
Anwar
Daniel
Telerik team
 answered on 15 Dec 2009
1 answer
124 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
206 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
284 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
141 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
486 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?