Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
257 views
Greetings,

I am trying to view the list of embedded icons available with the RadButton. I am using this link...

http://demos.telerik.com/aspnet-ajax/button/examples/embeddedicons/defaultcs.aspx

It redirects back to the documentation. At the bottom of this documentation page, it shows the link, but redirects back to itself...

The full list of the classes can be found on our online demos site: Note: The CssClass are composed in the following way: [r]ad[b]utton[Iconname] == rbAdd

Can anybody direct me to the page that shows all the icons?

Thank you!

Matt
Erik
Top achievements
Rank 2
 answered on 04 Apr 2014
16 answers
765 views
I have a RadPanelBar with several dynamically generated RadPanelItems, and each of these has a HeaderTemplate applied that contains a number of controls, one of which is a texbox.

When the user clicks anywhere on the RadPanelItem header, the RadPanelItem expands (or collapses - depending on it's current state) including when the user clicks into the texbox control in the header.

What I need to do is prevent the RadPanelItem expanding or collapsing when the user clicks in any of the texboxes, but retain this functionality for the rest of the header so if the user clicks anywhere but the textbox, then the RadPanelItem will still expand or collapse.

Does anyone know how I can achieve this?

Thanks
Plamen
Telerik team
 answered on 04 Apr 2014
1 answer
99 views
Hi,

I'm running in some trouble with the Scheduler. Let's say we have created a event of 8 minutes starting from 11.47 PM based on some business requirement,
so the event would last from 11.53 PM to 12.01 AM of next day. For this scenario when i click "Next day" or select that date on calender, it throws Javascript Error "Height must be non negative. Parameter name: value".


Steps to Reproduce:

1.Create a event of 8 minutes starting from 11.53 PM
a.First Event will be 1 April 2014 11.53 PM - 2 April 2014 12.01 AM
2. Go to on calender View Click Show 24 Hours on footer.
3. Click next day icon or Select April 2 from calender.
4. Calender will remain on 1st April.
5. Javascript Error "Height must be non negative. Parameter name: value" is thrown.

Telerik Product Version : 2011 1.413.40

Attached the screen shots for your reference.

Thanks,
Bakyaraj
Nencho
Telerik team
 answered on 04 Apr 2014
1 answer
146 views
I have a .aspx page with the RadScheduler on it.  When I access this page from a tab I get the following error at random intervals.

Telerik.Web.UI.WebResource.axd Uncaught Sys.ScriptLoadFailedException: Sys.ScriptLoadFailedException contains mltiple calls to Sys.Application.notifyScriptLoaded(). Only one is allowed

This works fine from a dekstop browser, the problem only surfaces when I try to access the page from a tab.  Any ideas.
Boyan Dimitrov
Telerik team
 answered on 04 Apr 2014
1 answer
98 views
Hello everybody,

I have some kind of appearence issue with two controls : SearchBox and Menu. The searchbox is above the menu. When the dropdown of the searchbox is shown, it doesn't hide the menu. When I use other controls like button, it works. I know I can simply move away the menu but I would like to know if it is possible to hide the menu when the dropdown is shown.

Thank you very much in advance.


Alexandre
Top achievements
Rank 1
 answered on 04 Apr 2014
8 answers
284 views
I understand there is no current support for directly creating a PDF from a PivotGrid.

I am attempting to use a third party pdf generator to produce a pdf. I am attempting to use the PivotGrid's RenderControl method to capture the PivotGrid's HTML and push that HTML to the third party pdf generator.

Here is the code I'm using to attempt to create a PDF from the PivotGrid:

01.Protected Sub exportPDF_OnClick(ByVal sender As Object, ByVal e As EventArgs)
02.    Dim stringBuilder As New System.Text.StringBuilder
03.    Dim stringWriter As New System.IO.StringWriter(stringBuilder)
04.    Dim pivotGridHtml As String
05.    Dim htmlTextWriter As New HtmlTextWriter(stringWriter)
06. 
07.    pivotGrid.RenderControl(htmlTextWriter)
08.    pivotGridHtml = stringBuilder.ToString()
09.    PdfGenerator.GetDefaultPdfGenerator().HTMLToPDF(pivotGridHtml)
10.
11.End Sub


Attempts to create a pdf fail on the call to RenderControl. The expand/collapse buttons are causing me trouble. I'm getting the error below:

Control 'ctl00_FeaturedContent_pivotGrid_ctl04_ctl00_RowExpandCollapseButton_0_0' of type 'Button' must be placed inside a form tag with runat=server.

Is there a different approach I can take? Or can I make the PivotGrid not create the expand/collapse buttons?
Kostadin
Telerik team
 answered on 04 Apr 2014
2 answers
66 views
I have a problem with the RADEditor.

We are using version 2012.607.35 of the Telerik.Web.UI and its seems that the RADSlider in Image Manager is not picking up the strings from RadEditor.Dialogs.resx and the localized counterparts for example RadEditor.Dialogs.de.resx. 

This problems seems to be on your localized demo as well(see screenshot from http://demos.telerik.com/aspnet-ajax/editor/examples/localization/defaultcs.aspx).

No matter what I do the text does not change.

Do you know of a workaround I could use to fix this and get localizes strings for the slider in Image Manager?
Sverrir
Top achievements
Rank 1
 answered on 04 Apr 2014
7 answers
150 views
I noticed in the demos and in my project that if the image is very large the LightBox window will go over page so that the whole image is not visible.

Is there a setting to put a max height and max width of the LightBox window to prevent this from happening?
Kostadin
Telerik team
 answered on 04 Apr 2014
1 answer
173 views
Hi All,

I'm new to Rad controls and want to integrate Rad Scheduler and I want to use it in a ASP.Net MVC application. Since Rad Scheduler support ASPX view engine, I have configured to work in ASPX view engine.
 My issue is I'm getting following error "DataKeyField, DataSubjectField, DataStartField and DataEndField are required for databinding". I know that I have to give those data but I didn't find any reference on how to provide them in a ASP.Net MVC project. I have refereed "RadScheduler in MVC sample project" in "http://www.telerik.com/support/kb/aspnet-ajax/scheduler/details/radscheduler-in-mvc-sample-project".

  Would be grateful if you can guide me on how to bind scheduler to a database and do the CRUD operations. 

and also I've seen in Telerik documentation the I can use web API. Is that means that I can directly call my controller from the view without going through a web service? Would be grateful if you can guide me on this as well.

Following is my code.

.ASPX

<div style="width: 80%; float: right;">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
   </asp:ScriptManager>
                        <telerik:RadScheduler ID="RadScheduler1" runat="server" ShowHeader="false" TimelineView-SlotDuration="1" EnableDatePicker="true" OverflowBehavior="Expand"
                            SelectedView="TimelineView" AppointmentStyleMode="Default" AllowInsert="true" AllowEdit="true"  ColumnWidth="75px" RowHeight="50px" >
                             <WebServiceSettings Path="" ResourcePopulationMode="ServerSide" UseHttpGet="true" />
                            <AdvancedForm EnableResourceEditing="False" Enabled="false"  />
                            <TimelineView ShowDateHeaders="true" ShowResourceHeaders="false"  ShowInsertArea="false"  />
                            <AppointmentTemplate  >
                                
                                <div>
                                    <%#Eval("Subject") %>
                                </div>
                                <hr />
                                <div>
                                    Assigned to: <strong>
                                        <asp:Label ID="UserLabel" runat="server" Text='<%# Container.Appointment.Resources.GetResourceByType("EmployeeInfo") == null ? "None" : Container.Appointment.Resources.GetResourceByType("EmployeeInfo").Text %>'></asp:Label>
                                    </strong>
                                    
                                </div>
                            </AppointmentTemplate>
                            
                        </telerik:RadScheduler>
                    </div>

 
Controller : ( I have used the Controller in Web API binding (http://www.telerik.com/help/aspnet-ajax/scheduler-web-api-binding.html))

public partial class ResourcePlannerController : Controller
    {
        private JavaScriptSerializer _serializer;
        private JavaScriptSerializer JavaScriptSerializer
        {
            get
            {
                if (_serializer == null)
                {
                    _serializer = new JavaScriptSerializer();
                }

                return _serializer;
            }
        }

        private XmlSchedulerProvider _provider;
        private XmlSchedulerProvider Provider
        {
            get
            {
                if (_provider == null)
                {
                    //_provider = new CustomXmlSchedulerProvider(System.Web.HttpContext.Current.Server.MapPath("~/App_Data/Appointments_Outlook.xml"), true);
                }

                return _provider;
            }
        }

        private WebServiceAppointmentController _controller;
        private WebServiceAppointmentController Controller
        {
            get
            {
                if (_controller == null)
                {
                    _controller = new WebServiceAppointmentController(Provider);
                }

                return _controller;
            }
        }

        [HttpGet]
        public IEnumerable<AppointmentData> GetAppointments(string schedulerInfo)
        {
            return null;// return Controller.GetAppointments(JavaScriptSerializer.Deserialize<MySchedulerInfo>(schedulerInfo));
        }

        [HttpPost]
        public IEnumerable<AppointmentData> InsertAppointment(WebApiData data)
        {
            return Controller.InsertAppointment(data.SchedulerInfo, data.AppointmentData);
        }

        [HttpPut]
        public IEnumerable<AppointmentData> UpdateAppointment(WebApiData data)
        {

            return Controller.UpdateAppointment(data.SchedulerInfo, data.AppointmentData);
        }

        [HttpPost]
        public IEnumerable<AppointmentData> CreateRecurrenceException(WebApiData data)
        {
            return Controller.CreateRecurrenceException(data.SchedulerInfo, data.RecurrenceExceptionData);
        }

        [HttpDelete]
        public IEnumerable<AppointmentData> RemoveRecurrenceExceptions(WebApiData data)
        {
            return Controller.RemoveRecurrenceExceptions(data.SchedulerInfo, data.MasterAppointmentData);
        }

        [HttpDelete]
        public IEnumerable<AppointmentData> DeleteAppointment(WebApiData data)
        {
            return Controller.DeleteAppointment(data.SchedulerInfo, data.AppointmentData, data.DeleteSeries);
        }

        [HttpGet]
        public IEnumerable<ResourceData> GetResources(string schedulerInfo)
        {
            var o = new JavaScriptSerializer().Deserialize<MySchedulerInfo>(schedulerInfo);
            return Controller.GetResources(null);
        }

    }

    public class MySchedulerInfo { };




 




Boyan Dimitrov
Telerik team
 answered on 04 Apr 2014
2 answers
130 views
I am using Telerik grid with edit form template. When ItemDataBound event fires for this gird i have written various logic which must be satisfied/set for this event. So is there any server side code which can be moved to client side or minimized by using any inbuilt feature provided by teelrik?
Mainly i am calling four methods inside this even which descriptions are:
1>SetTpcHeaderCheckBoxValues- This methos is used to set the attributes of a checkbox on grids header coloumn.
2>SetTpcControlsDefaultValueInReadMode: this method is used to set the controls in readonly mode.
3>SetTpcToolTipAndWrapping: used to set the wrap and tool tip properties.
4>SetTpcControlsDefaultValueInEditMode: used to set the controls for the grid column which is in edit mode.

I have written all details regarding to this methodas below:

Protected Sub RgThridPartyCommissionsItemDataBound(sender As Object, _
                                                        e As GridItemEventArgs)

        SetTpcHeaderCheckBoxValues(e)

        Dim item As GridDataItem = TryCast(e.Item, GridDataItem)
        If (item IsNot Nothing) Then
            SetTpcControlsDefaultValueInReadMode(item)
            SetTpcToolTipAndWrapping(e, item)

        End If

        If e.Item.IsInEditMode Then
            SetTpcControlsDefaultValueInEditMode(e)
        End If

    End Sub

Private Sub SetTpcHeaderCheckBoxValues(ByVal e As GridItemEventArgs)

        Dim headerItem As GridHeaderItem = TryCast(e.Item, GridHeaderItem)
        If headerItem IsNot Nothing Then
            Dim headerCheckBox As CheckBox = DirectCast(headerItem("ClientSelectColumn").Controls(0), CheckBox)

            headerCheckBox.Attributes.Add("onclick", String.Format _
                              ("headerChecked(this,'{0}','{1}','{2}','lnkRemoveAllTpc','hdnTPCRowCount','hdnTPCRowChecked')", _
                               CacheDataSet.ThirdPartyCommissions, _
                              Master.InvoiceID.ToString(), _
                              rgThirdPartyCommissions.ClientID))

            If (Not CanDeleteRetailAgentCommissions) Then
                headerCheckBox.Enabled = False
            ElseIf hdnIsHeaderChecked.Value.Equals("false") Then
                hdnHeaderChbxId.Value = headerCheckBox.ClientID
            End If
        End If
    End Sub

Private Sub SetTpcControlsDefaultValueInReadMode(ByVal item As GridDataItem)

        Dim rowID = DirectCast(item.FindControl("lblRowID"), Label).Text
        Dim tpcRow = (From tpc In ThirdPartyCommissionRows
                Where (tpc.RowID = rowID AndAlso tpc.IsSelected = "True")
                Select tpc).FirstOrDefault()
        'Edit template Start
        Dim checkBox As CheckBox = DirectCast(item("ClientSelectColumn").Controls(0), CheckBox)
        checkBox.Enabled = CanDeleteRetailAgentCommissions
        checkBox.Attributes.Add("onclick", "chkClick(this,'lnkRemoveAllTpc','hdnTPCRowCount','hdnTPCRowChecked')")


        'used to maintain the state of the checkbox.
        If tpcRow IsNot Nothing Then
            item.Selected = tpcRow.IsSelected
        End If

        Dim imgBtnEdit As ImageButton = DirectCast(item.FindControl("imgbtnTpcEdit"), ImageButton)
        Dim imgBtnCopy As ImageButton = DirectCast(item.FindControl("imgbtnTpcCopy"), ImageButton)
        Dim imgBtnDelete As ImageButton = DirectCast(item.FindControl("imgbtnTpcDelete"), ImageButton)

        imgBtnEdit.OnClientClick = _
            String.Format("return onThirdPartyCommissionEditClick({0})", item.ItemIndex)
        imgBtnCopy.OnClientClick = _
            String.Format("return CanEditGrid('{0}','TPC','')", item.ItemIndex)
        imgBtnDelete.OnClientClick = _
            String.Format("return CanEditGrid('{0}','TPC','Remove')", item.ItemIndex)

        Dim lbTypeTpc As Label
        lbTypeTpc = DirectCast(item.FindControl("lbType"), Label)
        Dim lbFeeCode As Label = DirectCast(item.FindControl("lbFeeCode"), Label)

        'Fix start for defect 7877
        Dim fee As String
        If lbFeeCode IsNot Nothing Then
            fee = lbFeeCode.Text
            If (fee.Contains("Default1")) Then
                lbFeeCode.Text = fee
            End If

            If (fee.Contains("Default")) Then
                fee = fee.Replace("Default", "")
                lbFeeCode.Text = fee
            End If

            If (fee = "1") Then
                fee = fee.Replace("1", "")
                lbFeeCode.Text = fee
            End If
        End If
        'Fix end for defect 7877

        Dim radToolTipTpcDescription As RadToolTip = _
                DirectCast(item.FindControl("radToolTipTPCDescription"), RadToolTip)
        Dim radToolTipTpcCommissionOnType As RadToolTip = _
                DirectCast(item.FindControl("radToolTipTPCCommissionOnType"), RadToolTip)
        Dim type As String
        If lbTypeTpc IsNot Nothing Then
            type = lbTypeTpc.Text
            If type.Contains("/") Then
                lbTypeTpc.Text = type.Split("/")(0)
                lbFeeCode.Text = type.Split("/")(1)
                radToolTipTpcDescription.Text = type.Split("/")(1)
                radToolTipTpcCommissionOnType.Text = type.Split("/")(0)
            End If
        End If

        CheckRightsForGridControl _
            (CanAddRetailAgentCommission, CanEditRetailAgentCommission, _
             CanViewRetailAgentCommissions, CanDeleteRetailAgentCommissions, _
             imgBtnEdit, imgBtnCopy, imgBtnDelete)

        DisableLinksForHistory(imgBtnEdit, imgBtnCopy, imgBtnDelete)
    End Sub

Private Sub SetTpcToolTipAndWrapping(ByVal e As GridItemEventArgs, ByVal item As GridDataItem)

        '0th index column is hide so this attributes not required
        'Tpc grid columns count to apply wrap unwrap - 7
        For col As Integer = 1 To 7
            item(rgThirdPartyCommissions.Columns(col).UniqueName).Wrap = checkWrapPremium.Checked
        Next

        If (checkWrapPremium.Checked AndAlso e.Item.IsInEditMode = False) Then
            Dim radToolTip As RadToolTip

            radToolTip = DirectCast(item.FindControl("radToolTipTPCDescription"), RadToolTip)
            radToolTip.Visible = False

            radToolTip = DirectCast(item.FindControl("radToolTipTPCLOB"), RadToolTip)
            radToolTip.Visible = False

            radToolTip = DirectCast(item.FindControl("radToolTipTPCName"), RadToolTip)
            radToolTip.Visible = False

            radToolTip = DirectCast(item.FindControl("radToolTipTPCGroupType"), RadToolTip)
            radToolTip.Visible = False

            radToolTip = DirectCast(item.FindControl("radToolTipTPCBilling"), RadToolTip)
            radToolTip.Visible = False

            radToolTip = DirectCast(item.FindControl("radToolTipTPCCommissionOnType"), RadToolTip)
            radToolTip.Visible = False

            radToolTip = DirectCast(item.FindControl("radToolTipTPCRateType"), RadToolTip)
            radToolTip.Visible = False
        End If
    End Sub

Private Sub SetTpcControlsDefaultValueInEditMode(ByVal e As GridItemEventArgs)

        Dim itemEditForm As GridEditFormItem = DirectCast(e.Item, GridEditFormItem)
        Dim ddlTpcFeeCode As RadComboBox = _
                DirectCast(itemEditForm.FindControl("rdcmbTPCFeeCode"), RadComboBox)
        Dim ddlTpcInvoiceItemLevel As RadComboBox = _
                DirectCast(itemEditForm.FindControl("rdcmbTPCInvoiceItemLevel"), RadComboBox)
        Dim ddlTpcName As RadComboBox = _
                DirectCast(itemEditForm.FindControl("rdcmbTPCName"), RadComboBox)
        Dim ddlTpcRole As RadComboBox = _
                DirectCast(itemEditForm.FindControl("rdcmbTPCRole"), RadComboBox)
        Dim ddlTpcType As RadComboBox = _
                DirectCast(itemEditForm.FindControl("rdcmbTPCType"), RadComboBox)
        Dim ddlTpcRateType As RadComboBox = _
                DirectCast(itemEditForm.FindControl("rdcmbTPCRateType"), RadComboBox)
        Dim tbTpcRate As RadNumericTextBox = _
                DirectCast(itemEditForm.FindControl("rdtbTPCRate"), RadNumericTextBox)
        Dim tbTpcCommissionAmtCal As RadNumericTextBox = _
                DirectCast(itemEditForm.FindControl("rdtbTPCCommissionAmount"), RadNumericTextBox)
        Dim tbTpcBilling As RadTextBox = _
                DirectCast(itemEditForm.FindControl("rtbTCPBilling"), RadTextBox)

        Dim itemEdit As GridEditableItem = DirectCast(e.Item, GridEditableItem)
        Dim btnCancelOrDelete As Button = DirectCast(itemEdit.FindControl("btnCancel"), Button)

        If ViewState("IsNewRowAdded") = True Then
            btnCancelOrDelete.CommandName = "Delete"
            btnCancelOrDelete.Attributes.Add("OnClick", "DeleteRecord('TPC');")
        Else
            btnCancelOrDelete.CommandName = "Cancel"
            btnCancelOrDelete.Attributes.Add("OnClick", "resetEditIndex('TPC');")
        End If

        Dim tpcEditRowFilter = ThirdPartyCommissionRows.ElementAt(itemEditForm.DataSetIndex)

        EnableDisablePaging("TPCClassToHidePageSelector", "TPCClassToHidePageResizer", "true")

        'Assign the default values to the respective controls
        If Not (TypeOf e.Item Is IGridInsertItem) Then

            If TypeOf e.Item Is GridEditFormItem Then

                BindTpcNameCombo(ddlTpcName)

                ddlTpcName.SelectedValue = tpcEditRowFilter.MemberID

                BindTpcRoleCombo(ddlTpcRole)
                SetTpcRoleComboAsPerPartyType(ddlTpcName, ddlTpcRole)

                SetTpcBilling(tbTpcBilling, ddlTpcName)

                BindTpcTypeCombo(ddlTpcType)
                ddlTpcType.SelectedValue = tpcEditRowFilter.CommissionOnTypeID

                BindTpcInvoiceItemLevel(ddlTpcInvoiceItemLevel, _
                                        tpcEditRowFilter.CommissionOnTypeID)
                ddlTpcInvoiceItemLevel.SelectedValue = tpcEditRowFilter.InvoiceItemID

                BindTpcFeeCode(itemEditForm)

                If (Not tpcEditRowFilter.IsInvoiceItemNonPremiumFeeIDNull()) Then
                    ddlTpcFeeCode.SelectedValue = tpcEditRowFilter.InvoiceItemNonPremiumFeeID
                Else
                    ddlTpcFeeCode.SelectedValue = 0
                End If

                If (ddlTpcFeeCode.SelectedValue <> 0) Then
                    ddlTpcFeeCode.Enabled = True
                Else
                    ddlTpcFeeCode.Enabled = False
                End If

                tbTpcBilling.Text = tpcEditRowFilter.glAgencyBillRetAgentReceivableMethodText

                BindTpcRateType(ddlTpcType, ddlTpcInvoiceItemLevel, _
                                ddlTpcFeeCode, ddlTpcRateType)
                ddlTpcRateType.SelectedValue = tpcEditRowFilter.RateTypeID
                ddlTpcRateType.Focus()

                tbTpcRate.Text = PolicyInfoCommon.FormatRate(tpcEditRowFilter.Rate, _
                                                             tpcEditRowFilter.RateTypeID)

                'Set value for hdnPremiumFeeAmtForTpc
                ddlTpcRateType.Text = ddlTpcRateType.SelectedItem.Text
                CalculateTpcCommissionAmount(ddlTpcRateType)

                tbTpcCommissionAmtCal.Text = tpcEditRowFilter.AmountDueUI

                tbTpcRate.Attributes.Add _
                    ("onBlur", "return validateThirdPartyRate('" + tbTpcRate.ClientID + "','" _
                               + tbTpcCommissionAmtCal.ClientID + "' ,'" + ddlTpcRateType.ClientID + "')")

                'If record is new then enabled required dropdowns
                If (IsNewTpcRecord = True) Then
                    ddlTpcName.Focus()

                    ddlTpcType.Enabled = True
                    ddlTpcName.Enabled = True
                    ddlTpcInvoiceItemLevel.Enabled = True

                    ddlTpcInvoiceItemLevel.Items.Clear()
                    ddlTpcInvoiceItemLevel.Items.Insert _
                        (0, New RadComboBoxItem(PolicyInfoConstants.pleaseSelect, _
                                                ColumnnIndexes.Zero))
                    ddlTpcInvoiceItemLevel.SelectedValue = 0

                    ddlTpcRateType.Items.Clear()
                    ddlTpcRateType.Items.Insert(0, New RadComboBoxItem _
                                                   (PolicyInfoConstants.pleaseSelect, _
                                                    ColumnnIndexes.Zero))
                    ddlTpcRateType.SelectedValue = 0

                    ddlTpcFeeCode.Items.Insert(0, New RadComboBoxItem _
                                                  (PolicyInfoConstants.pleaseSelect, _
                                                   ColumnnIndexes.Zero))
                    ddlTpcFeeCode.SelectedValue = 0

                    ddlTpcType.SelectedValue = 0
                    ddlTpcRole.SelectedValue = 0
                    tbTpcBilling.Text = String.Empty

                    IsNewTpcRecord = False
                End If

                If (tbTpcCommissionAmtCal.Text.Equals("")) Then
                    tbTpcCommissionAmtCal.Text = 0
                End If

                If (IsClickOnCopy) Then
                    ddlTpcInvoiceItemLevel.Enabled = True
                    ddlTpcName.Enabled = True
                    ddlTpcType.Enabled = True
                    IsClickOnCopy = False
                End If

                If ddlTpcRateType.Text = PolicyInfoConstants.flat Then
                    tbTpcRate.NumberFormat.DecimalDigits = 2
                    tbTpcCommissionAmtCal.Text = FormatNumber _
                        (tbTpcCommissionAmtCal.Text, 2)
                Else
                    tbTpcRate.NumberFormat.DecimalDigits = 4
                End If

            End If

        End If

        'Fix start for defect 8512
        Dim controlClientId As String = Nothing

        'If new record then set focus on 'Name'
        If (ddlTpcName.Enabled) Then '
            controlClientId = ddlTpcName.ClientID + "_Input"
        ElseIf (ddlTpcRateType.Enabled) Then
            'If in Edit mode then set focus on 'Rate Type'
            controlClientId = ddlTpcRateType.ClientID + "_Input"
        End If

        hdnRemoveTabValue.Value = controlClientId

        ScriptManager.RegisterClientScriptBlock _
            (Me, GetType(Page), "ToggleScript", "SetFocusAfterPostBack('" & controlClientId & "');", True)
    End Sub
Himanshu
Top achievements
Rank 1
 answered on 04 Apr 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?