Dynamically changing  size of textbox in list

All- I have been having a bit of a problem solving this.
Perhaps you can help?
I have created a window that opens and displays a dictionary.
At the top of the window is a line of link buttons (A-Z). Below, is
a list component (I have tried both the list and tile list
components). When the end-user selects a link button, data from a
corresponding xml file loads into an item renderer containing two
text fields (one for the word, and one for the definition) which
gets displayed in the list component. Since each letter will have a
different number of word entries, and each word entry will have
various lengths of text, I need the the text box containing the
definition to dynamically resize, thereby resizing the item
renderer. Once this happens, I need the list to distribute the item
renderer evenly.
I have successfully loaded the text, wrote script to handle
the resize and have the list displaying the item renderers.
However, on the letters that have more than one word entry, the
list box displays the item renderers oddly. Some will have a gap
between the entries large enough to get another item renderer in.
However, when I click around on different letters, the multiple
entried ones will sometimes load correctly. When I go back to the
ones that did not, they will load correctly. Sometimes requiring
several tries. Any ideas as to what might be causing this? Any
simpler ways to accomplish my task? Thanks. -David

"dbStroud" <[email protected]> wrote in
message
news:gq89nb$4fh$[email protected]..
> All- I have been having a bit of a problem solving this.
Perhaps you can
> help?
>
> I have created a window that opens and displays a
dictionary. At the top
> of
> the window is a line of link buttons (A-Z). Below, is a
list component (I
> have
> tried both the list and tile list components). When the
end-user selects
> a
> link button, data from a corresponding xml file loads
into an item
> renderer
> containing two text fields (one for the word, and one
for the definition)
> which
> gets displayed in the list component. Since each letter
will have a
> different
> number of word entries, and each word entry will have
various lengths of
> text,
> I need the the text box containing the definition to
dynamically resize,
> thereby resizing the item renderer. Once this happens, I
need the list to
> distribute the item renderer evenly.
>
> I have successfully loaded the text, wrote script to
handle the resize and
> have the list displaying the item renderers. However, on
the letters that
> have
> more than one word entry, the list box displays the item
renderers oddly.
> Some
> will have a gap between the entries large enough to get
another item
> renderer
> in. However, when I click around on different letters,
the multiple
> entried
> ones will sometimes load correctly. When I go back to
the ones that did
> not,
> they will load correctly. Sometimes requiring several
tries. Any ideas as
> to
> what might be causing this? Any simpler ways to
accomplish my task?
> Thanks.
1) You need to make sure you override measure() to provide an
accurate
height for your renderer
2) you need to set the List's variableRowHeight property to
true.
HTH;
Amy

Similar Messages

  • Dynamically changing size of JList items?

    Hello!
    I'm working on an application which kind of revolves around a JList with a custom ListCellRenderer. Now, it all works rather good as it is, but I want the selected JList item to show more detailed information about the selected value, and thus I need it to be bigger then the not selected items. The thing is that no matter what I do I can't seem to make the JList adopt to the new size of the selected item, which results in only half of the stuff in the selected item being shown.
    Is there any way to do this it would be great! (I bet there is some really simple way which I have simply overlooked.)
    And, fyi: The component returned by getListCellRendererComponent is a JPanel which consists of three JLabels using a GridLayout. The selected component is generally the same, but with an extra row in the GridLayout.
    Any help/suggestions will be greatly appreceated!
    Yours, Jiddo.

    I have tried with a couple of different layout managers, and none of them (except for this one) seems to offer me the layout I need. Also, I have tried making it return different instances depending on if it is selected or not. The non-selected one has only one row in the layout while the selected has two. Here is a screenshot of how it looks:
    http://img211.imageshack.us/img211/2779/jlistes1.jpg
    Yours, Jiddo.

  • Need help dynamically changing size of custom container in ALV

    I am designing a screen using using two custom containers to split the screen into two parts, very similar to how Microsoft Outlook has the detail lines of their Inbox (top container) and then a preview panel for the contents of the highlighted item (bottom container). I would like the user to be able to click on the line dividing the two containers and adjust the screen to show the screen split with whatever proportions they want.
    Does anyone know of a method that will help me do this? Has anyone done something similar to this and is willing to share how to accomplish it even if at a high level?
    Thanks.

    Hi,
    I reckon that using a splitter container (CL_GUI_SPLITTER_CONTAINER or CL_GUI_EASY_SPLITTER_CONTAINER) or a docking container CL_GUI_DOCKING_CONTAINER will be a easy solution to your requirement.
    If you are using the splitter container, then after creating the control, you need to call the method "set_row_sash" as
      CALL METHOD <your_splitter_ctrl>->set_row_sash
        EXPORTING
          id    = 1
          type  = <your_splitter_ctrl>->type_movable
          value = <your_splitter_ctrl>->true.
    This will enable the user to adjust both the controls.
    For examples on the splitter & dokcing containers, refer to package SCET.
    Edited by: Sharat Chandra on Jan 23, 2008 4:46 AM

  • When I change size of icons or icon vs list display, why does it affect the whole computer?

    When I change size of icons, or icon vs list display, why does it affect the whole computer? In some folders I want to see a list and others I want to see an icon and I don't need a large icon in all folders. I used to be able to set each folder separately in the old OS. How do I fix this?

    I can hilight an item, go to the finder/file/getinfo but there is no box next to icon view.
    I can go to view/options and adjust the icon size etc, but this applies to every folder in the whole computer. I need varied options in different folders, i.e., I want to view images as icons and text as text. I have to change it every time I open a folder. I used to be able to set it per folder in the old OS.

  • Dynamically changing Restricted List

    Hi,
    We have a requirment,
    Two team IT and HR are there. Each has it's own set of Reviewers and Approvers.
    We have created a custom profile form where we have a metadata field for reviewers and approvers.
    Based on user role, i am able to set up default values of Reviewer and Approver. This is fine. But IT team has two reviewers and i need to display as them drop down list.
    Using Restricted list i can give the values, but i dont have the option to filter out reviewers based on role in restricted list.
    Can someone guide me in how to dynamically change the restricted values in UCM.
    Regards,
    Boopathy

    not sure about dynamic restricted list in rules but you can achieve your requirent in many ways...
    for description lets assume
    2 roles IT and HR
    2 metadata xApprover and xReviewer
    Option1:_
    create 2 new rules
    1) ruleIT
    - add xReviewer and xApprover fields and set the restricted list for IT team.
    - In General Tab, check the "User rule activation condition" and in custom tab use the following code
    ((userHasRole("IT"))2) ruleHR
    - add fields and define restricted list ...go to custom tab and add
    ((userHasRole("HR"))finally, add the above rules to yoru profile.
    Option2:_
    another option ...
    define idoc include as
    <@dynamichtml myCustomInclude@>
    <$if not isUploadFieldScript$>
         <$if userHasRole("HR")$>
              <select name="xApprover">
              <option value="Ap1">Ap1</option>
              </select>
              <select name="xReviewer">
              <option value="Re1">Re1</option>
              </select>
         <$elseif userHasRole("IT")$>
         <$endif$>
    <$endif$>
    <@end@>Go to your Profile Rule and Edit the fields(xApprover,xReviewer)
    ...in "Edit Rule Field xApprover" window, select "Use custom include" and enter the above include name "myCustomInclude"
    if you need any field validation, put it in else block of isUploadFieldScript
    Edited by: Bunty on Apr 3, 2013 11:32 AM

  • Please Help!!!!!dynamically changing a flash movies size...

    Hi i'm working on my final year dissertation and have become
    intensely stressed out/frustrated & almost mental in achieving
    this particular aim!!!!
    what i need to know is how to
    dynamically change a flash movies document size in real time,
    without squashing or stretching the content,much like the banner
    adds frequently seen on hotmail by companies such as orange,lexus
    etc.. where the flash movies size expands on interaction
    Help on this will be greatly greatly appreciated!!
    Thank you.

    RE: "P.S. I  found it aggravating that I couldn't copy and paste text  here, it wanted me to insert as a link or an image, how do you insert plain  text?"
    I take it you tried using the "right click" menu?   That doesn't seem to work, as you noted, but, you should be able to paste text by pressing your CTRL key  and while holding it down, press the "V" letter  key.
    CTRL + C = COPY
    CTRL + X = CUT
    CTRL + V = PASTE
    HTH,
    Ortho_Fan

  • Font sizes for message change when  mailbox or message list is changed

    When changing the preferences for message font to something a bit more readable (ie, 14 pt), that doesn't seem to actually affect the message font size except on the message I am actually looking at at that instant. It always reverts back to size of the message list font!
    How do I get the message list to be smaller (ie 10 pt) and the message font to be bigger (ie 14 pt)? Changing the prefs doen't seem to do it.
    1.33 ghz 15 Alum G4 PB, 350 mhz G3 iMac, 2 ghz Dual G5   Mac OS X (10.4.8)  

    Thank you very much for sharing that information.  It is great to hear verification that the mask assignment change did resolve your problem.   That is the latest resolution that TAC has recommended, but we have to restart the WCCP service on all redundant edge routers to be able to implement this, so planning the outage window is taking some time.   We've been told that TAC will set this up in a lab and test for us by our Cisco SE.  We're hoping to get verfication that this actually resolves the problem before we take the outage.   
         If you could, can you tell me if this resolved the issue 100% or do you still have any performance issues when making a change to your WCCP ACL going to your bluecoat equipment?    We may also need to implement this in our redirects to BlueCoat from our Nexus.  Do you happen to have a link to how to make this change in Bluecoat?   Thanks again!

  • Changing to a paper size that is not listed

    How do I change to a paper size that is not listed in the drop down menu? Thanks /

    What paper size?  There are minimum and maximum paper sizes the printer can handle.  There are additional limits on the sizes that can be printed borderless. To set custom paper sizes in Windows 8.1 do the following:  go to the Devices and Printers folder.  Single click on the HP Photosmart 7520 series.  Near the top of the Devices and Printers folder will be a new item "Print Server Properties".  Click on this , then click Forms, Create a new form, type a Form name, set the proper size and margin size, Save Form, Apply, OK.  Next close any open printer windows, the right click on the photosmart 7520 and select Printing Printing preferences.  The new paper size should now be available.

  • Is it possible to have Dynamically changing list of  Radio buttons ?

    Hi,
    There is a list box which a list of values like 'State', 'City', etc.
    When the user chooses a value in the list box, based on the value chosen say 'City', I should display a list of Cities. The user should then be allowed to choose 1 and only city from the list.
    Is it possible to have list of radio buttons such that there is 1 radio button for each city and the user can then choose any one of the radio buttons ?
    In this case the number of cities and what those cities are is unknown. So I need to have a dynamically changing list of radio buttons. Is this possible ?
    Version of forms : Forms 6.0.5.
    Thanks in advance
    Aruna

    Hi Aruna
    You can create a lot of radio buttons and hide|display them in runtime. It is more suitable i think to use the t-list instead of radio.

  • Dynamic Change of FieldCatalog in OO ALV Secondary List

    Dear All,
    i have Scenario like when i go to secondary list on some event, the fieldcatlog for the info is generated. then again i go back and choose some other event, now the secondary fieldcatalog list should contain few extra fields which are not being displayed. i am refreshing the fieldcatalog and filling the fieldcatalog table with new fields everytime. but the system displays only the first generated fieldcatalog.
    any ideas what can be done?
    Thanks & Regards
    Rahul

    Hello Rahul
    The following sample report <b>ZUS_SDN_TWO_ALV_GRIDS_A</b> shows how to dynamically change the fieldcatalog of the second ALV list depending on which customer has been selected (by double-clicking) on the first ALV list.
    *& Report  ZUS_SDN_TWO_ALV_GRIDS_A
    *& Screen '0100' contains no elements.
    *& ok_code -> assigned to GD_OKCODE
    *& Flow logic:
    *  PROCESS BEFORE OUTPUT.
    *    MODULE STATUS_0100.
    *  PROCESS AFTER INPUT.
    *    MODULE USER_COMMAND_0100.
    REPORT  zus_sdn_two_alv_grids_a.
    " Dynamic fieldcatalog on second ALV list
    DATA:
      gd_okcode        TYPE ui_func,
      go_docking       TYPE REF TO cl_gui_docking_container,
      go_splitter      TYPE REF TO cl_gui_splitter_container,
      go_cell_top      TYPE REF TO cl_gui_container,
      go_cell_bottom   TYPE REF TO cl_gui_container,
      go_grid1         TYPE REF TO cl_gui_alv_grid,
      go_grid2         TYPE REF TO cl_gui_alv_grid,
      gs_layout        TYPE lvc_s_layo.
    DATA:
      gt_knb1          TYPE STANDARD TABLE OF knb1,
      gt_knvv          TYPE STANDARD TABLE OF knvv.
    *       CLASS lcl_eventhandler DEFINITION
    CLASS lcl_eventhandler DEFINITION.
      PUBLIC SECTION.
        CLASS-DATA:
          md_row              TYPE i.
        CLASS-METHODS:
          handle_double_click FOR EVENT double_click OF cl_gui_alv_grid
            IMPORTING
              e_row
              e_column
              es_row_no
              sender.
    ENDCLASS.                    "lcl_eventhandler DEFINITION
    *       CLASS lcl_eventhandler IMPLEMENTATION
    CLASS lcl_eventhandler IMPLEMENTATION.
      METHOD handle_double_click.
    *   define local data
        DATA:
          ls_knb1      TYPE knb1.
        CHECK ( sender = go_grid1 ).
        READ TABLE gt_knb1 INTO ls_knb1 INDEX e_row-index.
        CHECK ( ls_knb1-kunnr IS NOT INITIAL ).
        md_row = e_row-index.
        CALL METHOD go_grid1->set_current_cell_via_id
          EXPORTING
    *        IS_ROW_ID    =
    *        IS_COLUMN_ID =
            is_row_no    = es_row_no.
    *   Triggers PAI of the dynpro with the specified ok-code
        CALL METHOD cl_gui_cfw=>set_new_ok_code( 'DETAIL' ).
      ENDMETHOD.                    "handle_double_click
    ENDCLASS.                    "lcl_eventhandler IMPLEMENTATION
    START-OF-SELECTION.
      SELECT        * FROM  knb1 INTO TABLE gt_knb1
             WHERE  bukrs  = '1000'.
    * Create docking container
      CREATE OBJECT go_docking
        EXPORTING
          parent                      = cl_gui_container=>screen0
          ratio                       = 90
        EXCEPTIONS
          OTHERS                      = 6.
      IF sy-subrc <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    * Create splitter container
      CREATE OBJECT go_splitter
        EXPORTING
          parent            = go_docking
          rows              = 2
          columns           = 1
    *      NO_AUTODEF_PROGID_DYNNR =
    *      NAME              =
        EXCEPTIONS
          cntl_error        = 1
          cntl_system_error = 2
          OTHERS            = 3.
      IF sy-subrc <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    * Get cell container
      CALL METHOD go_splitter->get_container
        EXPORTING
          row       = 1
          column    = 1
        RECEIVING
          container = go_cell_top.
      CALL METHOD go_splitter->get_container
        EXPORTING
          row       = 2
          column    = 1
        RECEIVING
          container = go_cell_bottom.
    * Create ALV grids
      CREATE OBJECT go_grid1
        EXPORTING
          i_parent          = go_cell_top
        EXCEPTIONS
          OTHERS            = 5.
      IF sy-subrc <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    * Set event handler
      SET HANDLER: lcl_eventhandler=>handle_double_click FOR go_grid1.
      CREATE OBJECT go_grid2
        EXPORTING
          i_parent          = go_cell_bottom
        EXCEPTIONS
          OTHERS            = 5.
      IF sy-subrc <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    * Display data
      gs_layout-grid_title = 'Customers'.
      CALL METHOD go_grid1->set_table_for_first_display
        EXPORTING
          i_structure_name = 'KNB1'
          is_layout        = gs_layout
        CHANGING
          it_outtab        = gt_knb1
        EXCEPTIONS
          OTHERS           = 4.
      IF sy-subrc <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      gs_layout-grid_title = 'Customers Details (Sales Areas)'.
      CALL METHOD go_grid2->set_table_for_first_display
        EXPORTING
          i_structure_name = 'KNVV'
          is_layout        = gs_layout
        CHANGING
          it_outtab        = gt_knvv  " empty !!!
        EXCEPTIONS
          OTHERS           = 4.
      IF sy-subrc <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    * Link the docking container to the target dynpro
      CALL METHOD go_docking->link
        EXPORTING
          repid                       = syst-repid
          dynnr                       = '0100'
    *      CONTAINER                   =
        EXCEPTIONS
          OTHERS                      = 4.
      IF sy-subrc <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    * NOTE: dynpro does not contain any elements
      CALL SCREEN '0100'.
    * Flow logic of dynpro (does not contain any dynpro elements):
    *PROCESS BEFORE OUTPUT.
    *  MODULE STATUS_0100.
    *PROCESS AFTER INPUT.
    *  MODULE USER_COMMAND_0100.
    END-OF-SELECTION.
    *&      Module  STATUS_0100  OUTPUT
    *       text
    MODULE status_0100 OUTPUT.
      SET PF-STATUS 'STATUS_0100'.  " contains push button "DETAIL"
    *  SET TITLEBAR 'xxx'.
    * Refresh display of detail ALV list
      CALL METHOD go_grid2->refresh_table_display
    *    EXPORTING
    *      IS_STABLE      =
    *      I_SOFT_REFRESH =
        EXCEPTIONS
          OTHERS         = 2.
      IF sy-subrc <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    *&      Module  USER_COMMAND_0100  INPUT
    *       text
    MODULE user_command_0100 INPUT.
      CASE gd_okcode.
        WHEN 'BACK' OR
             'END'  OR
             'CANC'.
          SET SCREEN 0. LEAVE SCREEN.
    *   User has pushed button "Display Details"
        WHEN 'DETAIL'.
          PERFORM entry_show_details.
        WHEN OTHERS.
      ENDCASE.
      CLEAR: gd_okcode.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    *&      Form  ENTRY_SHOW_DETAILS
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM entry_show_details .
    * define local data
      DATA:
        ld_row      TYPE i,
        ls_knb1     TYPE knb1,
        ls_fcat     TYPE lvc_s_fcat,
        lt_fcat     TYPE lvc_t_fcat.
      CALL METHOD go_grid1->get_current_cell
        IMPORTING
          e_row = ld_row.
      READ TABLE gt_knb1 INTO ls_knb1 INDEX ld_row.
      CHECK ( syst-subrc = 0 ).
      SELECT        * FROM  knvv INTO TABLE gt_knvv
             WHERE  kunnr  = ls_knb1-kunnr.
      CALL METHOD go_grid2->get_frontend_fieldcatalog
        IMPORTING
          et_fieldcatalog = lt_fcat.
      " Logic of fieldcatalog modification:
      " 1st customer selected -> show 1 column only
      " 2nd customer selected -> show 2 columns only
      " 3rd customer selected -> show 3 columns
      LOOP AT lt_fcat INTO ls_fcat.
        IF ( syst-tabix <= ld_row ).
          ls_fcat-no_out = ' '.
        ELSE.
          ls_fcat-no_out = 'X'.
        ENDIF.
        MODIFY lt_fcat FROM ls_fcat.
      ENDLOOP.
      go_grid2->set_frontend_fieldcatalog( lt_fcat ).
    ENDFORM.                    " ENTRY_SHOW_DETAILS
    Regards
      Uwe

  • Dynamically change stage size on runtime

    Hi everyone,
    I need to change the stage size dynamically.
    When i try to do this............
    size_mc.onRelease = function(){
        trace(Stage.height);
        Stage.height += 100;
        trace(Stage.height);
    it comes always the current stage size.
    Thanks in advance

    You cannot change the width and height properties of the Stage using code--it must be done in the editor.  The width and height values can represent different things depending on the value you set for the scale mode, but you cannot reassign them to different values dynamically.
    The solution just offered to you is under the same rules, the stageWidth and stageHeight values cannot be assigned using code, but that code is AS3 code so it will not fit in your AS2 design in any case.
    The same goes for the followup offered in AS2.  You will notice the stage size is not being changed... it cannot be.  This is just a full screen design solution, but is not a soltuion to changing the stage size.  The stage size can only be changed manually in the authoring environment.  I don't know that the offering is answering what you are really trying to do, but it is not answering the titled task of dynamically changing the stage size

  • Dynamically changing windows size

    Hi Folks,
    Is it possible to dynamically change the dimensions of windows i.e. Main and Secondary windows.

    Hi,
    See the fallowing link
    Smart forms - Dynamic sizing of the windows.
    Regards,
    Vijay.

  • Messages Buddies window keeps changing size

    The buddies list in Messages keeps growing longer and longer for me. Is there a way to make it stay the size that I want it to be?

    Hi, 
    It is a bit odd that you have that many Buddies that have gone Idle rather than showing any that are Away.
    However it does not seem you have that many Buddies in total that would make a difference. 
    I notice that in the View Menu > Show Buddy Pictures is Off.
    This as you will have found out does allow more Buddies in the space you have allowed. (each line is only as big as the Video and Audio Only icons) 
    If you make the Buddy List smaller than what you have shown (i.e. hide the Off Line group title bar and a few of the Buddies) does the Scroll bar appear ? 
    I don't Display the Off Line Buddies and also don't use the Off Line Group from them either. I am wondering if your setting are what makes the Buddy List dynamic in size. 
    My test.
    I tried setting my Buddy lists with no pics.
    I also set the Off Line Buddies and as a Group and "turned" the reveal triangle so they were hidden like yours.
    I they set a couple of other AIM Buddy Lists to Off line.
    Then I resized the buddy List to not shoe the Off Line Groups Title bar and also a few buddies up from that.
    I then set the Off Line accounts to Available and logged them in.
    In my Buddy list more Buddies dropped out of sight and the List did not resize.
    Can you open a Finder window ?
    Then go to the View Menu  and chose Show Path Bar.
    This will add some info  across the bottom of the Window.
    Can you also Select View Menu > Show View Options and Select the Modified option in the Show Column choices.
    Now in the Finder > Go Menu hold down the ALT key and select the Library item that appears.
    Navigate to the Preferences
    Find the com.apple.ichat.plist one.
    Alter the size of the Buddy List  Or chose to Show Pictures and see if the Modified Date Changes (it should show the Time fro today's change).
    The setting you are changing (window Size and what the window contains) are written to this .plist - or they ar if you Own like you should do and have Write Permissions (as well as Read ones) if the file settings are correct.
    If you have lost Ownership of this File and changes will not be written to it.
    It may be the Permissions have changed and you have lost the right to Write to it.
    To find out, do a Get Info (CMD + i keys together) when the file is highlighted.
    At the bottom of the Info panel is the Ownership and Permission Details.
    Your shortname should appear in the list with Read and Write Permissions.
    If you highlight this line and then use the Cogwheel icon at the bottom it should list "Make yourshortname (Me) the Owner" but it should be greyed out as it is already done.
    8:54 pm      Monday; December 9, 2013
      iMac 2.5Ghz 5i 2011 (Mavericks 10.9)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad

  • UI not getting change update when working with LIST and INotifyPropertyChanged

    i was trying to know two way data binding. i have simple car class which extend INotifyPropertyChanged for notify the change to update UI. bind List object to few textboxes and notice when one textbox value change then other textbox value not updated. all
    textboxes bind to same property. so one's value change should propagate to other textboxes.
    this is my code
    public class Car : INotifyPropertyChanged
    private string _make;
    private string _model;
    private int _year;
    public event PropertyChangedEventHandler PropertyChanged;
    public Car(string make, string model, int year)
    _make = make;
    _model = model;
    _year = year;
    public string Make
    get { return _make; }
    set
    _make = value;
    this.NotifyPropertyChanged("Make");
    public string Model
    get { return _model; }
    set
    _model = value;
    this.NotifyPropertyChanged("Model");
    public int Year
    get { return _year; }
    set
    _year = value;
    this.NotifyPropertyChanged("Year");
    private void NotifyPropertyChanged(string name)
    if (PropertyChanged != null)
    PropertyChanged(this, new PropertyChangedEventArgs(name));
    This way i bind
    Car carTest;
    private void Form1_Load(object sender, EventArgs e)
    carTest = new Car("Ford", "Mustang", 1967);
    List<Car> ol = new List<Car>();
    ol.Add(carTest);
    this.textBox1.DataBindings.Add("Text", ol, "Make", true, DataSourceUpdateMode.OnPropertyChanged);
    this.textBox2.DataBindings.Add("Text", ol, "Make", true, DataSourceUpdateMode.OnPropertyChanged);
    this.textBox3.DataBindings.Add("Text", ol, "Make");
    when run the code then Ford was showing as make name but when change value in any textbox then that change is not shown in other textboxes.
    the moment i change this line List<Car> ol = new List<Car>(); to
    BindingList<Car> ol = new BindingList<Car>(); then code started to work fine.
    My Question
    1) what is the difference between List and BindingList class ?
    2) can't we use List<> for my situation instead of BindingList
    3)
    this.textBox2.DataBindings.Add("Text", ol, "Make", true, DataSourceUpdateMode.OnPropertyChanged);
    this.textBox3.DataBindings.Add("Text", ol, "Make");
    see the above code and tell me what is the advantage of using DataSourceUpdateMode.OnPropertyChanged because i have seen if we do not use this code
    DataSourceUpdateMode.OnPropertyChanged then also data change is propagated to other textbox when cursor focus change.

    I would have thought that'd work with List<t>, in fact I think there must be something wrong in your code there.  I can't spot it though.
    I recommend use of ObservableCollection rather than BindingList.
    The default on bindings is that changes are propagated from the target ( view ) to source ( vm ) when the control loses focus.
    If you want to do the equivalent to a keydown event handler in a viewmodel then onpropertychanged is the way to go.
    You want to avoid creating bindings in code unless you really really have to, it's way easier to put them in xaml.
    Even if your ui is dynamic, you can build xaml and use that to create the ui objects:
    http://social.technet.microsoft.com/wiki/contents/articles/28797.aspx
    The difference between BindingList and List is, literally, iBindingList.
    See
    https://msdn.microsoft.com/en-us/library/system.componentmodel.ibindinglist%28v=vs.110%29.aspx?f=255&MSPPError=-2147217396
    What probably isn't very obvious is that BindingList fires an event - iirc  itemchanged when properties on objects in it change.
    Maybe you did something wrong in your implementation of inotifypropertychanged.  I must admit, I can't see anything there though.
    You don't really need those magic strings since .net4.5 and you also don't need to explicitly implement inotifypropertychanged you could use:
    public event PropertyChangedEventHandler PropertyChanged;
    public void RaisePropertyChanged([CallerMemberName] String propertyName = "")
    if (PropertyChanged != null)
    PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
    As used in this:
    https://gallery.technet.microsoft.com/WPF-Dynamic-Fonts-ad3741ca
    If you try that sample you can have:
    public class FontDetails : INotifyPropertyChanged
    or
    public class FontDetails
    And you can see it still notifies change successfully to both windows.
    Most wpf devs will use observablecollection rather than List or bindinglist.
    Observablecollection notifies addition or removal of entries.  It can be used to notify an entry has changed, but does not detect change of property.  You would have to raise the event in code if you want to tell it an item changed.
    Hope that helps.
    Technet articles: Uneventful MVVM;
    All my Technet Articles

  • Best Practice: Dynamically changing Item-Level permissions?

    Hi all,
    Can you share your opinion on the best practice for Dynamically changing item permissions?
    For example, given this scenario:
    Item Creator can create an initial item.
    After item creator creates, the item becomes read-only for him. Other users can create, but they can only see their own entries (Created by).
    At any point in time, other users can be given Read access (or any other access) by an Administrator to a specific item.
    The item is then given edit permission to a Reviewer and Approver. Reviewers can only edit, and Approvers can only approve.
    After the item has been reviewed, the item becomes read-only to everyone.
    I read that there is only a specific number of unique permissions for a List / Library before performance issues start to set in. Given the requirements above, it looks like item-level permission is unavoidable.
    Do you have certain ideas how best to go with this?
    Thank you!

    Hi,
    According to your post, my understanding is that you wanted to change item level permission.
    There is no out of the box way to accomplish this with SharePoint.               
    You can create a custom permission level using Visual Studio to allow users to add & view items, but not edit permission.   
    Then create a group with the custom permission level. The users in this group would have the permission of create & add permission, but they could no edit the item.
    In the CodePlex, there is a custom workflow activities, but by default it only have four permission level:
    Full Control , Design ,Contribute and Read.
    You should also customize some permission levels for your scenario. 
    What’s more, when use the SharePoint 2013 designer, you should only use the 2010 platform to create the workflow using this activities,
    https://spdactivities.codeplex.com/wikipage?title=Grant%20Permission%20on%20Item
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

Maybe you are looking for

  • How do I use the buffered counting mode at a fixed frequency?

    Hi-    I'm using a PCI-6259 M-series board with the Nidaq MX drivers in Labview 7.  I am trying to use one counter to do buffered edge counting (eg. count how many pulses appear on one input in 400 successive time bins of 10 uS each following a digit

  • ALL IPHOTO LIBRARY VANISHED!

    I was sorting my pictures and wanted to add some new ones from a memory key. I tried drag and drop, but it took too much time. The little wheel for my mouse was rolling forever, my computer froze, and i had no choice to restart it. When it came on ag

  • Using java to get stuff from xml

    Hi, i need to parse stuff from XML file into java from different nodes and attributes. I thought of using the DOM. can you all suggest any sites that have examples to that or give me some suggestions on how to code it? Thanks!

  • About Font Substitution

    If a font is used by the writer of a PDF and the viewer's PC does not have that font, what happens?

  • Arash

    Hello! please help me!!!!!!!!! what is error 1009?