Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
74 views
hi there, I'm a newbie to Telerik and I was wondering if it was possible to enable editing of the child items on the RadGrid when it is grouped using Outlook style grouping. Please note that I will disable the ability for the user to drag and drop the column headers onto the main bar header.

Thanks.
Shinu
Top achievements
Rank 2
 answered on 22 Jul 2011
0 answers
147 views
Hello, I'm running ASP.NET AJAX grid 2011.1.519.40 with 4 GridDateTimeColumn fields. I'm using auto-generated edit form in popup mode. Whenever the popup screen is displayed, I see 4 date fields with the date picker icon to open the calendar. Whenever I click on one of the date pickers, the calendar comes up fine. However, if I try to click on date picker for the second time in another record after I have already opened and closed the first date picker in the first record, the calendar opens at the right bottom of the page. If I refresh the page (F5) then I can start over, meaning: first record OK, second record opens the calendar at the right bottom of the page again.


What seems to be the problem?
efi
Top achievements
Rank 1
 asked on 22 Jul 2011
2 answers
90 views
I want to put some Link Controls like Hyper Link in one column each row in RadGrid.
Please refer my attach. Thank you very much.
Is is possible or not?
If possible, could you tell me how to add controls.
Thank you for your attention.
Have a great day and night.
dongchul
Top achievements
Rank 1
 answered on 22 Jul 2011
5 answers
172 views
RadFilter doesn't seem to like IsNull, NotIsNull, IsEmpty, and NotIsEmpty.

I've tried this with both RadFilterTextFieldEditor and RadFilterNumericFieldEditor field editors.

Also, you can observe this problem on your own demos -- the page doesn't diplay the error, but got to a dummy page that says: "Sorry, we couldn't find the page you're looking for."


An error occurred while processing your request. If the problem continues, please contact customer support.   
 
Exception of type 'System.Web.HttpUnhandledException' was thrown.   
 
==> Object reference not set to an instance of an object.    
 
Stack Traces  
Source: System.Web  
at System.Web.UI.Page.HandleError(Exception e)  
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)  
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)  
at System.Web.UI.Page.ProcessRequest()  
at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)  
at System.Web.UI.Page.ProcessRequest(HttpContext context)  
at ASP.junk_filter3_aspx.ProcessRequest(HttpContext context) in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\bit9.console.web.ui\f02bb933\1bce73bb\App_Web_filter3.aspx.83447962.24ra8t1t.0.cs:line 0  
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()  
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)  
 
==> Source: Telerik.Web.UI  
at Telerik.Web.UI.RadFilterTextFieldEditor.ExtractValues()  
at Telerik.Web.UI.RadFilterSingleExpressionItem.ExtractValues()  
at Telerik.Web.UI.RadFilter.FetchExpressionsValues(RadFilterGroupExpressionItem group)  
at Telerik.Web.UI.RadFilter.HandleApplyCommand()  
at Telerik.Web.UI.RadFilterCommandEventArgsFactory.HandleCommand(RadFilter ownerFilter, Object commandSource, RadFilterCommandEventArgs args)  
at Telerik.Web.UI.RadFilter.OnBubbleEvent(Object source, EventArgs args)  
at System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args)  
at System.Web.UI.WebControls.Button.OnCommand(CommandEventArgs e)  
at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)  
at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)  
at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)  
at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)  
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)  
Raji
Top achievements
Rank 1
 answered on 21 Jul 2011
2 answers
90 views
I am unable to find out how to go straight to print from a grid pdf export.  I am able to do this with standard pdf generation, but I need the file name.  I want to click a print button and directly be prompted to print the exported pdf. 

 

Frame1.Attributes("src") = "http://pdfserver.server/Test" & Request.QueryString("id") & ".pdf" 

 

Phillip
Top achievements
Rank 1
 answered on 21 Jul 2011
1 answer
122 views
Hi I am trying to run the example shown here:

http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/multicolumncombo/defaultcs.aspx

I get the following error on this line:  public partial class DefaultCS : System.Web.UI.Page

Error 1 Make sure that the class defined in this code file matches the 'inherits' attribute, and that it extends the correct base class (e.g. Page or UserControl). D:\...\RadControlsWebSite1\RadControlsWebSite1\DefaultCS.aspx.cs 12 33 D:\...\RadControlsWebSite1\

CS
namespace Telerik.ComboboxExamplesCS.MultiColumnCombo
{
    public partial class DefaultCS : System.Web.UI.Page
    {

Should I be changing something else? I am pretty sure I followed all of the isolation steps.


Thanks
Najid Hanif
Top achievements
Rank 2
 answered on 21 Jul 2011
3 answers
132 views
Hi,

I found some samples about RadFilterDropDownEditor like:
public class RadFilterDropDownEditor : RadFilterDataFieldEditor
{
    protected override void CopySettings(RadFilterDataFieldEditor baseEditor)
    {
        base.CopySettings(baseEditor);
        var editor = baseEditor as RadFilterDropDownEditor;
        if (editor != null)
        {
            DataSourceID = editor.DataSourceID;
            DataTextField = editor.DataTextField;
            DataValueField = editor.DataValueField;
        }
    }
 
    public override System.Collections.ArrayList ExtractValues()
    {
        ArrayList list = new ArrayList();
        list.Add(_combo.SelectedValue);
        return list;
    }
 
    public override void InitializeEditor(System.Web.UI.Control container)
    {
        _combo = new RadComboBox();
 
        _combo.DataTextField = DataTextField;
        _combo.DataValueField = DataValueField;
        _combo.DataSourceID = DataSourceID;
 
        container.Controls.Add(_combo);
    }
 
 
    public override void SetEditorValues(System.Collections.ArrayList values)
    {
        if (values != null && values.Count > 0)
        {
            if (values[0] == null)
                return;
            var item = _combo.FindItemByValue(values[0].ToString());
            if (item != null)
                item.Selected = true;
        }
    }
 
    public string DataTextField
    {
        get
        {
            return (string)ViewState["DataTextField"] ?? string.Empty;
        }
        set
        {
            ViewState["DataTextField"] = value;
        }
    }
    public string DataValueField
    {
        get
        {
            return (string)ViewState["DataValueField"] ?? string.Empty;
        }
        set
        {
            ViewState["DataValueField"] = value;
        }
    }
    public string DataSourceID
    {
        get
        {
            return (string)ViewState["DataSourceID"] ?? string.Empty;
        }
        set
        {
            ViewState["DataSourceID"] = value;
        }
    }
    private RadComboBox _combo;
}

But I faced 2 problems.
1-When I try to set its DataType to System.Int32, I receive "Input string was not in a correct format." error. But when I set it to System.String it works. (the result is = '1' -within single quotas- as expected as it is set to be string). I have checked DataTextField and DataValueField properties and they are referencing to proper fields and datatypes.

2-When I set its value from combobox and add another condition/expression it looses it value and select first value of the combobox.

Any thoughts?

Thanks in advance.
Raji
Top achievements
Rank 1
 answered on 21 Jul 2011
0 answers
102 views
Hi:

I am getting:
  Microsoft JScript runtime error: 'onLoadAmount' is undefined
error. 
<telerik:RadNumericTextBox ID="overAmountTextBox" Runat="server" MaxLength="13"
    MaxValue="999999.999999" MinValue="-999999.999999" Text='<%# Bind("overAmount") %>'
    TabIndex="7">
    <ClientEvents OnLoad="onLoadAmount" />
    <FocusedStyle HorizontalAlign="Right" />
    <EnabledStyle HorizontalAlign="Right" />
    <NumberFormat DecimalDigits="4" />
</telerik:RadNumericTextBox>
 
<script type="text/javascript">
    //<![CDATA[
    //
    function onLoadAmount(sender, args) {
        alert('Amount');
    }
    //]]>
</script>
The RadNumericTextBox is in a FormView control, when I get the error.  If I extract the code and place it on a simple page it finds the on load event.

Phil
Phil
Top achievements
Rank 2
 asked on 21 Jul 2011
9 answers
93 views

Hi,

Is there a way to detect a double-click on the title icon on the left side? Our users are expecting to close the window by double clicking on it as they would do in a Windows application.

 Thanks.

LeBear
Top achievements
Rank 1
 answered on 21 Jul 2011
3 answers
318 views
Dear,
I create header template and footer template(contain table inside)
Then I set AllowScroll = true
If I set UseStaticHeader = false .All Column align ok
But if I set UseStaticHeader = true.It align wrong .Width of Item larger width if header.
Problem just occur when I set UseStaticHeader =true .
Because All width of columns sum is very large.I must be use scroll and Use Static Header
This problem just in IE. FireFox work well
Please give me a solution.Thanks
Regard,
Lam
Support
Top achievements
Rank 1
 answered on 21 Jul 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?