locked
How to say if this part of the screen is active? RRS feed

  • Question

  • Dear All,

    I have two statement which i want to execute if a certain part of the screen is highlighted/ Selected?

    If Part 1 is highlighted/selected then

    private const string _CONTROL = "vw_CustLedgerEntry";  // Data Grid in screen 2
    private DataGrid _ItemsList = null;
    private int _SelectedRowsCount = 0;
            partial void Part_2_CustomerItemDetail_InitializeDataWorkspace(List<IDataService> saveChangesTo)
                {
                this.FindControl(_CONTROL).ControlAvailable += Part_2_CustomerItemDetail_ControlAvailable;
                }

    Else

    private const string _CONTROL2 = "vw_CustLedgerEntry_Booked";  // Data Grid in screen 2
    private DataGrid _ItemsList2 = null;
    private int _SelectedRowsCount2 = 0;

    I have two controls which I want to select from but it depends at which part of the screen am I. Does any one have some idea?

    Thanks,

    Zayed

    Thursday, March 12, 2015 2:04 PM

Answers

  • HI Zayed,

    For this ControlAvailable event issue, this will help you.

    See:

    Difference between SetProperty or ControlAvailable event

    Best regards,

    Angie


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    • Marked as answer by Consultant_606 Wednesday, March 18, 2015 9:17 AM
    Tuesday, March 17, 2015 9:30 AM

All replies

  • HI Zayed,

    For this ControlAvailable event issue, this will help you.

    See:

    Difference between SetProperty or ControlAvailable event

    Best regards,

    Angie


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    • Marked as answer by Consultant_606 Wednesday, March 18, 2015 9:17 AM
    Tuesday, March 17, 2015 9:30 AM
  • Hi Angie,

    I have a nother question regarding sending the mails. would you take a look at this question.

    https://social.msdn.microsoft.com/Forums/vstudio/en-US/4e1daeaf-7a37-4aad-8a0b-6278335640f9/attaching-all-pdfs-in-one-mail-having-only-one-body?forum=lightswitch

    its just that I want to have only one mail for all my attachments,  and according to my loops it send a mail for each selected line. 

    Thanks,

    Zayed

    Wednesday, March 18, 2015 12:13 PM
  • Thanks for your feedback.

    I will focus on that case, and look into it further.

    Best regards,

    Angie


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Wednesday, March 18, 2015 1:37 PM
  • Thanks alot for your support :)

    Canot wait to hear your answer.

    Thanks,

    Zayed


    Wednesday, March 18, 2015 1:39 PM