Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
20 views
Just curious whether we have any link here that defines the platforms telerik Ajax controls support.

I am keenly interested to whether AJAX controls are compatible with all browsers. (FireFox/IE/etc).


Rumen
Telerik team
 answered on 09 Aug 2012
8 answers
174 views
I have a radgrid which is having some controls in its Edit and Insert mode.I have put some validation on those controls. we are using simple asp.net validator.In my case ,Everything is working properly untill Validator get fired.Once validator get fired,nothing is working,not even cancel button which can close Edit or insertion mode in the radgrid.In normal  asp.net web application,it is working fine.but in sharepoint it is giving problem.Is anything to do with config file . Looking for ur help.Thanks in advance



 if we remove radajaxmanager  then everything is working fine. But we need that Ajax.Please provide any solution
Tsvetoslav
Telerik team
 answered on 09 Aug 2012
4 answers
108 views
I trying to add a description "Override" when update an appointment. 

 

I'm using e.ModifiedAppointment.Description = "Override", but it doesn't work.
Here is my scripts:

 

Protected Sub MyAvailability1_AppointmentUpdate(sender As Object, e As AppointmentUpdateEventArgs) Handles RadScheduler1.AppointmentUpdate
        Dim scheduler As RadScheduler = DirectCast(sender, RadScheduler)
        If e.ModifiedAppointment.Subject = "Preference" Then
            For Each app As Appointment In scheduler.Appointments.GetAppointmentsInRange(e.ModifiedAppointment.Start, e.ModifiedAppointment.[End])

                If app.Subject = "Availability" Then
                    If app.Start > e.ModifiedAppointment.Start OrElse app.[End] < e.ModifiedAppointment.[End] Then
                        e.Cancel = True
                    End If
                End If

            Next
        End If

        If e.ModifiedAppointment.Subject = "Availability" Then
            For Each app As Appointment In scheduler.Appointments.GetAppointmentsInRange(e.ModifiedAppointment.Start, e.ModifiedAppointment.[End])

                If app.Subject = "Preference" Then
                    If app.Start < e.ModifiedAppointment.Start OrElse app.[End] > e.ModifiedAppointment.[End] Then
                        e.Cancel = True
                    End If
                End If
            Next
        End If
        e.ModifiedAppointment.Description = "Override"
    End Sub

Ivana
Telerik team
 answered on 09 Aug 2012
3 answers
54 views
Hi

I am using RadControls Q1 2007 for my web application development, I would like to know whether the Drag and Drop functionality is available with Q1 2007 Controls?

Somehow I am not getting client side events like "OnClientNodeDragging" and boolean properties like "EnableDragAndDrop", is there any way to archive this? or any other alternative?

Is is really possible to do Drag and Drop functionality in Q1 2007 Controls?

Thanks,

Rahul
Ivana
Telerik team
 answered on 09 Aug 2012
3 answers
506 views
Hi,

I'm having problem with the format in the textbox.
Today it looks like: 

<telerik:RadNumerictextBox ID="txtValor" runat="server" MinValue="0">
    <NumberFormat AllowRounding="true" DecimalDigits="2">
</telerik:RadNumerictextBox>

When I fill with the value "50,45" for example, text and value properties are as follows:
Text: 50,45
Value: 50.450000000000003
I do not understand, if I defined only two decimal places, why the 14 digits? this is a bug?
Vasil
Telerik team
 answered on 09 Aug 2012
3 answers
306 views
I would like to add print preview image to a button such that the button look and feel should be the same as print button, where can I add the required image in the existing css can some one help me
Dorababu
Top achievements
Rank 1
 answered on 09 Aug 2012
25 answers
517 views

Please forward to the team that created the control panel installers.

I donwloaded the control panel (also the control panel version of ASP.NET AJAX)  and install it on a Windows 7 64bit machine.

I keep getting the error:
---------------------------
Error
---------------------------
System.ComponentModel.Win32Exception: Access is denied

   at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo)

   at System.Diagnostics.Process.Start()

   at Bootstrapper.Bootstrapper.RunFile()

   at Bootstrapper.MainForm.RunApplication()

   at Bootstrapper.MainForm.CheckPrerequisitesAndRunApplication()
---------------------------
OK  
---------------------------

Andrey
Telerik team
 answered on 09 Aug 2012
3 answers
133 views
When using the demo for the Upload Localization http://demos.telerik.com/aspnet-ajax/upload/examples/localization/defaultcs.aspx

When the text changes (change from English to Francias) , the Select button does not resize for the new text. 

My specific problem is with the Add button but the issue can be duplicated on the Demo site. 

Im assuming its a stylesheet issue but cant seem to find the problem. Any suggestions?
Shinu
Top achievements
Rank 2
 answered on 09 Aug 2012
6 answers
439 views
I have a radgrid with a MatersTableView housing 2 GridTableViews (not nested).

I have 2 issues I am trying to understand
  1. When I click on the "expand", the grid expands properly and the GridTableViews populate properly.  However, when I click on "Collapse" subsequently, the row does not collapse.
  2. Each GridTable has image buttons in them.  When clicked, the OnItemCommand is not fired, and the Grid collapses.  I do not that when I click "Expand" the OnItemCommand is fired with "ExpandCollapse" as the e.CommandName, and e.CommandArgument as String.Empty.

NOTE: all ItemCommands work when in non hierarchical grids.

  • How do I collapse and expanded row?
  • How do I capture a ItemCommand in the MasterTableView and GridTableViews? 

Below is my code

Thanks in advance

<telerik:RadAjaxManagerProxy ID="RadAM_CasePaymentSubmissions" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="RadAM_CasePaymentSubmissions">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="paymentSubmissionGrid" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManagerProxy>
<telerik:RadGrid ID="paymentSubmissionGrid" OnPreRender="paymentSubmissionGrid_PreRender"
    EnableViewState="true" ShowStatusBar="true" Skin="Office2007" OnDetailTableDataBind="paymentSubmissionGrid_DetailTableDataBind"
    OnNeedDataSource="paymentSubmissionGrid_NeedDataSource" OnItemDataBound="paymentSubmissionGrid_OnItemDatabound"
    OnItemCommand="paymentSubmissionGrid_OnItemCommand"
    runat="server" AutoGenerateColumns="False" PageSize="7" AllowSorting="True" 
    AllowPaging="True" GridLines="None">
  
    <PagerStyle Mode="NumericPages"></PagerStyle>
    <MasterTableView Name="HcfaSubmissions" DataKeyNames="PaymentSubmissionId">
        <DetailTables>
            <telerik:GridTableView DataKeyNames="PaymentSubmissionId" Name="Resubmit" Width="100%"
                runat="server" ItemStyle-BackColor="Ivory" AlternatingItemStyle-BackColor="Ivory">                
                <Columns>
                    <telerik:GridTemplateColumn AllowFiltering="false" DataType="System.String" SortExpression="PaymentSubmissionId"
                        HeaderText="Submission Id" HeaderButtonType="TextButton" DataField="PaymentSubmissionId"
                        UniqueName="RePaymentSubmissionId">
                        <HeaderStyle HorizontalAlign="Left" Wrap="False" Width="50px" />
                        <ItemStyle Width="50px" Wrap="false" />
                        <ItemTemplate>
                            <asp:Literal ID="ReSubmissionIdLiteral" runat="server"></asp:Literal>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridBoundColumn SortExpression="SubmissionDate" HeaderText="Date Resubmitted"
                        ItemStyle-Width="100px" DataType="System.DateTime" HeaderButtonType="TextButton"
                        DataField="SubmissionDate" UniqueName="ReSubmissionDate" DataFormatString="{0:MM/dd/yyyy}">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn SortExpression="Status" HeaderText="Status" HeaderButtonType="TextButton" ItemStyle-Width="500px"
                        DataField="Status" UniqueName="ReStatus">
                    </telerik:GridBoundColumn>
                    <telerik:GridTemplateColumn>
                        <HeaderStyle HorizontalAlign="Left" Wrap="False" />
                        <ItemStyle Width="40px" Wrap="false" HorizontalAlign="Center" />
                        <ItemTemplate>
                            <div style="floatleft;">
                                <asp:ImageButton ID="viewResubmitHCFA" AlternateText="View" runat="server" CommandArgument='<%#DataBinder.Eval(Container.DataItem,"PaymentSubmissionId") %>'
                                    ImageAlign="Middle" ImageUrl="~/images/pdf.jpg" ToolTip="View resubmission" />
                            </div>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                </Columns>
            </telerik:GridTableView>
            <telerik:GridTableView DataKeyNames="BillSubmissionId" Name="Procedures" Width="100%"
                runat="server" ItemStyle-BackColor="AntiqueWhite" AlternatingItemStyle-BackColor="AntiqueWhite">
                <Columns>
                    <telerik:GridBoundColumn UniqueName="CaseProviderDetailId" DataField="CaseProviderDetails.CaseProviderDetailId"
                        HeaderText="Bill ID" ItemStyle-Width="40px" ItemStyle-HorizontalAlign="Left"
                        DataType="System.Int32" />
                    <telerik:GridTemplateColumn AllowFiltering="false" UniqueName="CaseProviderDetails.CPTCode.Code"
                        DataField="CaseProviderDetails.CPTCode.Code" DataType="System.String" HeaderText="CPT Code">
                        <HeaderStyle HorizontalAlign="Left" Wrap="False" Width="500px" />
                        <ItemStyle Width="500px" Wrap="false" />
                        <ItemTemplate>
                            <asp:Literal ID="cptLiteral" runat="server"></asp:Literal>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridBoundColumn UniqueName="CaseProviderDetailsDOS" DataField="CaseProviderDetails.DOS"
                        HeaderText="DOS" ItemStyle-Width="75px" ItemStyle-HorizontalAlign="Left" DataType="System.DateTime"
                        DataFormatString="{0:MM/dd/yyyy}" />
                    <telerik:GridTemplateColumn AllowFiltering="false" UniqueName="CaseProviderDetailsReceivable"
                        DataField="CaseProviderDetails.Receivable" DataType="System.Decimal" HeaderText="Bill Amount">
                        <HeaderStyle HorizontalAlign="Left" Wrap="False" Width="75px" />
                        <ItemStyle Width="75px" Wrap="false" />
                        <ItemTemplate>
                            <asp:Literal ID="ReceivableLiteral" runat="server"></asp:Literal>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridTemplateColumn AllowFiltering="false" UniqueName="StatusName" DataType="System.String"
                        HeaderText="Status">
                        <HeaderStyle HorizontalAlign="Left" Wrap="False" Width="110px" />
                        <ItemStyle Width="75px" Wrap="false" />
                        <ItemTemplate>
                            <asp:Literal ID="StatusLiteral" runat="server"></asp:Literal>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridTemplateColumn>
                        <HeaderStyle HorizontalAlign="Left" Wrap="False" />
                        <ItemStyle Width="40px" Wrap="false" HorizontalAlign="Center" />
                        <ItemTemplate>
                            <div style="floatleft;">
                                <asp:ImageButton ID="editDetails" AlternateText="Edit" runat="server" ImageAlign="Middle"
                                    ImageUrl="~/images/EditInformationHS.png" ToolTip="Edit Bill" />
                            </div>
                            <div style="floatright;">
                                <asp:ImageButton ID="viewDetails" AlternateText="View" runat="server" CommandArgument='<%#DataBinder.Eval(Container.DataItem,"CaseProviderDetails.CaseProviderDetailId") %>'
                                    CommandName="viewDetails" ImageAlign="Middle" ImageUrl="~/images/Search.gif"
                                    ToolTip="View Details" />
                            </div>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                </Columns>
            </telerik:GridTableView>
        </DetailTables>
        <Columns>
            <telerik:GridTemplateColumn AllowFiltering="false" DataType="System.String" SortExpression="PaymentSubmissionId"
                HeaderText="Submission Id" HeaderButtonType="TextButton" DataField="PaymentSubmissionId"
                UniqueName="PaymentSubmissionId">
                <HeaderStyle HorizontalAlign="Left" Wrap="False" Width="110px" />
                <ItemStyle Width="50px" Wrap="false" />
                <ItemTemplate>
                    <asp:Literal ID="SubmissionIdLiteral" runat="server"></asp:Literal>
                </ItemTemplate>
            </telerik:GridTemplateColumn>
            <telerik:GridBoundColumn SortExpression="SubmissionDate" HeaderText="Submission Date"
                ItemStyle-Width="100px" DataType="System.DateTime" HeaderButtonType="TextButton"
                DataField="SubmissionDate" UniqueName="SubmissionDate" DataFormatString="{0:MM/dd/yyyy}">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn SortExpression="Status" HeaderText="Status" HeaderButtonType="TextButton" ItemStyle-Width="500px"
                DataField="Status" UniqueName="Status">
            </telerik:GridBoundColumn>
            <telerik:GridTemplateColumn>
                <HeaderStyle HorizontalAlign="Left" Wrap="False" />
                <ItemStyle Width="40px" Wrap="false" HorizontalAlign="Center" />
                <ItemTemplate>
                    <div style="floatleft;">
                        <asp:ImageButton ID="viewHCFA" AlternateText="View" runat="server" ImageAlign="Middle"
                            ImageUrl="~/images/pdf.jpg" ToolTip="View HCFA" />
                    </div>
                    <div style="floatright;">
                        <asp:ImageButton ID="resubmit" AlternateText="Resubmit" runat="server" CommandArgument='<%#DataBinder.Eval(Container.DataItem,"PaymentSubmissionId") %>'
                            CommandName="resubmit" ImageAlign="Middle" ImageUrl="~/images/resubmit.png" ToolTip="Resubmit" />
                    </div>
                </ItemTemplate>
            </telerik:GridTemplateColumn>
        </Columns>
    </MasterTableView>
</telerik:RadGrid>




private void GetPaymentSubmission(Int32 caseId, Boolean bind)
        {            
            List<PaymentSubmission> paymentSubmissions = new List<PaymentSubmission>();
            paymentSubmissions = PaymentSubmission.GetByCaseId(caseId);
 
            paymentSubmissionGrid.DataSource = paymentSubmissions;
 
            if (bind)
                paymentSubmissionGrid.DataBind();
 
        }
 
        protected void paymentSubmissionGrid_DetailTableDataBind(object source, GridDetailTableDataBindEventArgs e)
        {
            List<PaymentSubmission> paymentSubmissions;
            Int32 paymentSubmissionId;
            GridDataItem dataItem;
            
            switch (e.DetailTableView.Name)
            {
                case "Procedures":
 
                    dataItem = (GridDataItem)e.DetailTableView.ParentItem;
                    paymentSubmissionId = Int32.Parse(dataItem.GetDataKeyValue("PaymentSubmissionId").ToString());
 
                    paymentSubmissions = new List<PaymentSubmission>();
                    paymentSubmissions = PaymentSubmission.GetByCaseId(3635);
                    
                    List<BillSubmission> billsDetails = (paymentSubmissions.Where(p => p.PaymentSubmissionId == paymentSubmissionId).FirstOrDefault())
                                                                .BillSubmission.ToList();
 
                    e.DetailTableView.DataSource = billsDetails;
 
                    break;
 
                case "Resubmit":
 
                    dataItem = (GridDataItem)e.DetailTableView.ParentItem;
                    paymentSubmissionId = Int32.Parse(dataItem.GetDataKeyValue("PaymentSubmissionId").ToString());
 
                    paymentSubmissions = new List<PaymentSubmission>();
                    paymentSubmissions = PaymentSubmission.GetByCaseId(3635);
 
                    List<PaymentSubmission> resubmitSubmissions = (paymentSubmissions
								.Where(p => p.PaymentSubmissionId == paymentSubmissionId)
								.FirstOrDefault()).Children.ToList();
 
                     e.DetailTableView.DataSource = resubmitSubmissions;
                    
                    break;
            }
            
        }
 
        protected void paymentSubmissionGrid_OnItemDatabound(object sender, GridItemEventArgs e)
        {
            if ((e.Item is GridDataItem) && (e.Item.OwnerTableView.Name == "Procedures"))
            {
                
                BillSubmission lineItem = e.Item.DataItem as BillSubmission;
 
                if (!(e.Item.FindControl("ReceivableLiteral") == null))
                {
                    Literal ReceivableLiteral = e.Item.FindControl("ReceivableLiteral"as Literal;
                    ReceivableLiteral.Text = String.Format("{0:c}", lineItem.CaseProviderDetails.Receivable);
                }
 
                if (!(e.Item.FindControl("StatusLiteral") == null))
                {
                    Literal StatusLiteral = e.Item.FindControl("StatusLiteral"as Literal;
                    StatusLiteral.Text = lineItem.BillSubmissionResponse.Name;                    
                }
 
                if (lineItem.CaseProviderDetails.CPTCode != null)
                {
                    if (!(e.Item.FindControl("cptLiteral") == null))
                    {
                        Literal cptLiteral = e.Item.FindControl("cptLiteral"as Literal;
                        cptLiteral.Text = String.Format("{0}-{1}"						lineItem.CaseProviderDetails.CPTCode.Code, 
						lineItem.CaseProviderDetails.CPTCode.Description);
                    }
                }
 
                if (!(e.Item.FindControl("editDetails") == null))
                {
                    ImageButton editDetails = e.Item.FindControl("editDetails"as ImageButton;
                    editDetails.Attributes.Add("onclick"String.Format("EditBill('{0}','{1}','{2}'); return false;"						lineItem.CaseProviderDetails.CaseProviderDetailId.ToString(), 
						lineItem.CaseProviderDetails.Case.CaseId.ToString(), "Edit Bill"));
                }
        
            }
 
            if ((e.Item is GridDataItem) && ( e.Item.OwnerTableView.Name == "Resubmit"))
            {
                PaymentSubmission submission = e.Item.DataItem as PaymentSubmission;
 
                if (!(e.Item.FindControl("reSubmissionIdLiteral") == null))
                {
                    Literal SubmissionIdLiteral = e.Item.FindControl("reSubmissionIdLiteral"as Literal;
                    if(submission.Parent != null)
                        SubmissionIdLiteral.Text = String.Format("HCFA-{0}:{1}", submission.Parent.PaymentSubmissionId, 1);
                }
 
            }
 
            if ((e.Item is GridDataItem) && (e.Item.OwnerTableView.Name == "HcfaSubmissions"))
            {
                PaymentSubmission submission = e.Item.DataItem as PaymentSubmission;
 
                if (!(e.Item.FindControl("SubmissionIdLiteral") == null))
                {
                    Literal SubmissionIdLiteral = e.Item.FindControl("SubmissionIdLiteral"as Literal;
                    SubmissionIdLiteral.Text = String.Format("HCFA-{0}", submission.PaymentSubmissionId);                    
                }
 
                if (submission.Status == "Closed")
                {
                    if (!(e.Item.FindControl("resubmit") == null))
                    {
                        ImageButton resubmit = e.Item.FindControl("resubmit"as ImageButton;
                        resubmit.Visible = false;
                    }
                }     
            }
 
            
        }
 
        protected void paymentSubmissionGrid_NeedDataSource(object source, GridNeedDataSourceEventArgs e)
        {
            if (!e.IsFromDetailTable)
            {
                GetPaymentSubmission(3635, false);
            }
        }
 
        protected void paymentSubmissionGrid_OnItemCommand(object sender, GridCommandEventArgs e)
        {
            switch ((e.Item).OwnerTableView.Name)
            {
                case "Procedures":
 
                    break;
 
                case "Resubmit":
 
                    break;
 
                case "HcfaSubmissions":
 
                    switch (e.CommandName)
                    {                       
                        case "viewDetails":
                            
                            break;
                    }
                    break;
            }
        }    
    }
}

Tsvetina
Telerik team
 answered on 09 Aug 2012
1 answer
68 views
Hi Folks!

I really need some help here. I start a small project to enable all ASP.NET Membership Operations from a RadGrid such as: add user, delete and update, including managing their respective Roles from a RadGrid. Please follow my code: MembershipTest 

Until now, my project includes:
  • Update (Working)
  • Edit (Working, but not capturing cheboxes previous values)
  • Delete (Not Working, I don't know why!!)
  • Add (to be Implemented...)

Issues:
  1. I do really need some help to discover why "Delete User" is not working.
  2. When I edit user, those checkboxes do not fill with previous values. I look up Radgrid documentation but I can't figure out how to do this.
  3. Someone have an idea on how to implement "Add User" Operation? It is possible to show a form in Radgrid adding the password field? 

I appreciate any help.

Regards,

Marcio Nascimento
Tsvetina
Telerik team
 answered on 09 Aug 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?