Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
119 views
Hi,

In treeview i need contextmenus option for that i was refering to this url :
http://demos.telerik.com/aspnet-ajax/treeview/examples/functionality/contextmenu/defaultcs.aspx

what i need is when i right click on treenode i should get contextmenus with option New
so when i select new node that node should get added in treeview as well as in database.
what is heppening now is when i say new it is creating new node with text as new and it is keeping this text is edit mode so that user can change that name. for that they are using one javascript function to set editable , now after user enters node name then i want to insert this data in database. on which event of treeview can i do this.

Thanks.
Shinu
Top achievements
Rank 2
 answered on 24 Feb 2011
6 answers
292 views
Hallo!
We have a RadGrid which displays several columns of type checkbox, bound and template columns. The header filter context menu displays two checkboxes which are present in the filter template for the checkbox column also for the columns which are not a checkbox column. (See attchment). Another problem with the header filter context menu is that for a checkbox column, the first condition filter checkbox is disabled und cannot be used as a filter. The second condition is not necessary for a checkbox column but is the only one which can be used. How can this be changed?
Solutions I am looking for:
1. Checkboxes in the filter context menu for non checkbox columns should not be shown.
2. There should be only one checkbox in the filter contet menu for a checkbox column.
warm regards
Georgi Tunev
Telerik team
 answered on 24 Feb 2011
7 answers
158 views
Hi,
  I noticed there is a client side event called OnClientTimeSlotClick and there are few posts about how to get the time when somebody click on an empty slot on the schedule.  But I really don't want to use client side event.

  Is there a similar event for server side?  I assume it's called OnTimeSlotClick, but I couldn't find it.

Thanks,
Dom
Peter
Telerik team
 answered on 24 Feb 2011
5 answers
311 views
Hello,

Based on the sample available in the demo, I implemented a tooltip manager in my simple scheduler web page. The datas are loaded "manually" in a List and assign to RadScheduler.DataSource each time a OnNavigationCommand event occurs. The first page is loaded in Page_Load.

At the first load of the page, eveythings work fine and Tooltip load correctly through ajaxupdate. But when I use NavigationCommand, Tooltips become crazy. This is wrong Appointment Id which is return and some appointments don"t even load the tooltip.

I use the same event and same code as the example. The only difference is in NavigationCommand which loads Appointment from my Database.
here is the code after a switch which determine first and last appointment datetime:

in the class:

Dictionary<int, AppointmentInfo> m_lstAppointment;

in OnNavigationCommand event:

Session.Remove("Appointments");
SchedulerRadToolTipManager.TargetControls.Clear();
RadScheduler1.Appointments.Clear();
m_lstAppointment = m_oDataAccess.SearchAppointment(dteStart, dteEnd);
RadScheduler1.DataSource = m_lstAppointment.Values;

Yes, I tried to clean-up everything before load new appointments but with no success.
The aspx file is not far from the one provided by the telerik wizard in VS 2010, the one with AdvancedForm.

Thanks in advance for your help.
regards
Eric
Eric
Top achievements
Rank 1
 answered on 24 Feb 2011
1 answer
70 views
HI,
I am using Stacked Bar Chart Type. My requirement is to give space between two bars(as bars are coming side by side and there are total 96 bars and altogether it is looking clumpsy).Kindly help me out
Regards,
Manushi.
Vladimir Milev
Telerik team
 answered on 24 Feb 2011
1 answer
85 views

Hi everyone,

I've lots of pages. All my components use radskinmanager's skin in masterpage so
when I chance the skin from the masterpage everywhere changes..

But I want to use same skin in all raddock controls and the other skin in other controls.

So it possible to use more than one RadSkinManager in Project ??
If it is, how can I group them?

PS: I don't want to give embedded skin name from desiner in every page on every raddock.


Thanks.

Sincerely.
Tsvetoslav
Telerik team
 answered on 24 Feb 2011
3 answers
89 views
Hi All,
To start with I have a page with RadUpload control alongwith RadProgressArea,one listbox and three asp buttons(Named Add to Upload,Remove Selected,Remove All.These are not link buttons but asp buttons).Once the user clicks on Add to Upload button I need to add the uploaded file into the list box.
I have the following specific requirement with regards to the RadUpload control:
File size more than 150 MB shouldnot be allowed to get uploaded (that means progress bar should not be shown when the file size is more than 150 MB and a popup message with the error should be shown)
Now  I am facing the following issues:
1. Whenever I select a file and click on any of these above mentioned buttons I am getting the Progress bar which is not the expected behavior. I just want the progress bar to appear once only when Add to Upload button is clicked. I have made the property UseSubmitBehavior  for all other buttons as false as mentioned in this link:http://www.telerik.com/help/aspnet-ajax/upload_howtopreventupload.html but of no use.

2.To my surprise I am also getting the progress bar if the uploaded file is more than 150 MB although I have set MaxFileSize=157286400 which means 150MB but the uploader is not uploading it instead I want to show an error message box to the user and the user shouldnot have to wait for a long time.

Please telerik support team respond me with a detailed code snippet asap since its very urgent.

Note: I cannot use jquery or RadScriptManager functions so I need to use only javascript and server side methods(I am using ASP.Net 2.0 framework)
Regards,
Shubh
 
Helen
Telerik team
 answered on 24 Feb 2011
1 answer
97 views
I have a page with an image map.  When the user hovers over an area of the map (click on the area in the mobile browser), a radtooltip appears.  On the tooltip there is an entry box and a botton.  This all works great on desktop browsers, but on a mobile browser (Samsung Galaxy Tablet in particular), if there is a map area under the button, the botton does not work, it highlights the map area under the tooltip and does nothing.  I have the tooltip set to modal and have even messed with the z-index but nothing works.  Any ideas on how to get this to work properly on a mobile browser?

Thanks

Chuck
Svetlina Anati
Telerik team
 answered on 24 Feb 2011
2 answers
322 views
Hi,

I have a TreeList display data. On a item select (or whatever) I want to get some data on the selected item. I have the following:

function ItemSelected(sender, args) {
               var treelist = $find("<%= radTreeList.ClientID %>");
               var selectedIndexes = treelist.get_selectedIndexes();
                 
               var row = selectedIndexes[0];
               var item = treelist.getItem(row);

which give me back the selected item. How do I get specific information from this. i.e. if I have a column called 'Name'?

Thanks
tim
Top achievements
Rank 1
 answered on 24 Feb 2011
1 answer
91 views
Hi
I am trying to create controls inside an RadPanelItem.
With deactivated ajax is working fine but with Ajax it creates only some of controls .
With Ajax it creates only Labels and RadNumerictextBoxes.RadSliders and the Table inside RadWindow are not created. 

Thanks,
 
Here my ASP:
<telerik:RadPanelItem runat="server" 
            Text="Please choose the respective customer order number for which you want to change the Purchase Order" 
            Visible="False">
            <ContentTemplate>
                <table width="100%">
                <tr>
                <td width = "139px">
                <asp:Label ID="Label1" runat="server" ForeColor="White" 
        Text="Customer order number:" style="background-color: #333333"></asp:Label>
                </td
                <td>
                <telerik:RadComboBox runat="server" ID="RadComboBox1" EnableLoadOnDemand="true" 
                    DataTextField ="CST_ORDER_" OnItemsRequested="RadComboBox1_ItemsRequested" 
                    Height="190px" Width="420px" HighlightTemplatedItems="true" 
                    ShowMoreResultsBox="true" EmptyMessage="Type here or search in list..." 
                    Skin="Black" >
                    <HeaderTemplate>
                    <ul>
                    <li class="col1">Factory</li>
                    <li class="col2">Customer Order No.</li>
                    <li class="col3">Customer Req. Date</li>
                      
                    </ul>
                    </HeaderTemplate>
                    <ItemTemplate>
                      
                    <ul>
                     
                    <li class="col1"><telerik:RadCodeBlock ID="RadCodeBlock1" runat="server"><%#Eval("FCT_LINE") %></telerik:RadCodeBlock></li>
                    <li class="col2">
                      <telerik:RadCodeBlock ID="RadCodeBlock2" 
                            runat="server"><%#Eval("CST_ORDER_") %></telerik:RadCodeBlock></li>
                            <li class="col3"><telerik:RadCodeBlock ID="RadCodeBlock3" 
                            runat="server"><%#Eval("CRD") %></telerik:RadCodeBlock></li>
                    </ul>
                     </ItemTemplate>
            </telerik:RadComboBox>
                </td
                </tr>
                <tr>
                <td>
                <telerik:RadButton runat="server"  Skin="Black" Text="Submit" 
                ID="Submit_Button1" Width="150px" onclick="Submit_Button1_Click" AutoPostBack="true" ></telerik:RadButton>
                <telerik:RadButton runat="server"  Skin="Black" Text="Cancel" 
                ID="Cancel_Button1" OnClick="CancelClick" Width="150px"></telerik:RadButton></td>
               </tr>
                </table>
             </ContentTemplate>
        </telerik:RadPanelItem>
          
        <telerik:RadPanelItem runat="server" Value="Item1"
            Text="Please change sizerun for the following Purchase Order" Visible="False" ViewStateMode="Enabled">
            <ContentTemplate>
             <asp:Table runat="server" ID="Table1"></asp:Table>
               
              
                <telerik:RadButton ID="Step2_OK" runat="server" OnClientClicked="OpenWin" AutoPostBack="false" Skin="Black" Text= "Submit changes">
  
                </telerik:RadButton>
                <telerik:RadButton ID="Step2_Back" runat="server">
                </telerik:RadButton>
                <telerik:RadButton ID="Step2_Cancel" runat="server">
                </telerik:RadButton>
            </ContentTemplate>
        </telerik:RadPanelItem>

Here C Code to create controls:
protected void CreateTable(object sender, EventArgs e)
        {
            var ItemNumberString = RadComboBox1.Text;
            /// read PO Quantities and PO Size Names.
            var query = from p in db.View_PO_Value_Range_olds
                        where p.CST_ORDER_.Equals(ItemNumberString)
                        orderby p.SizeOrder
                        select p;
            /// read  Corresponding size unit.
            var query1 = from p in db.PurchaseOrders
                         where p.CST_ORDER_.Equals(ItemNumberString)
                         select p;
            var item = query1.First();
            var ItemInt = item.SizeUnitID;
            string ItemString = Convert.ToString(ItemInt);
  
              
            Table tableconf = TableConfirmation;
            Table table = Table1 ;
            RadSlider[] slider = new RadSlider[25];
            TableCell[] cells = new TableCell[25];
            Label[] labels = new Label[25];
            TableRow[] rows = new TableRow[25];
            RadNumericTextBox[] textbox = new RadNumericTextBox[15];
            //Create the SliderTable 
            /// Row: Corresponding size unit.
  
            labels[0] = new Label();
            labels[0].Text = "Coresponding Size Unit:";
            cells[0] = new TableCell();
            cells[0].Controls.Add(labels[0]);
            rows[0] = new TableRow();
            rows[0].Cells.Add(cells[0]);
  
            labels[1] = new Label();
            labels[1].Text = ItemString;
            cells[1] = new TableCell();
            cells[1].Controls.Add(labels[1]);
            rows[0].Cells.Add(cells[1]);
  
            table.Rows.Add(rows[0]);
              
            /// Row:Table header.
            /// 
            labels[2] = new Label();
            labels[2].Text = "Size";
            cells[2] = new TableCell();
            cells[2].Controls.Add(labels[2]);
            labels[3] = new Label();
            labels[3].Text = "original qty";
            cells[3] = new TableCell();
            cells[3].Controls.Add(labels[3]);
            labels[4] = new Label();
            labels[4].Text = "new qty";
            cells[4] = new TableCell();
            cells[4].Controls.Add(labels[4]);
            rows[1] = new TableRow();
            rows[1].Cells.Add(cells[2]);
            rows[1].Cells.Add(cells[3]);
            rows[1].Cells.Add(cells[4]);
            table.Rows.Add(rows[1]);
  
            //Create ConfirmationTable static content.
            labels[6] = new Label();
            labels[6].Text = "Coresponding Size Unit:";
            cells[9] = new TableCell();
            cells[9].Controls.Add(labels[6]);
            rows[3] = new TableRow();
            rows[3].Cells.Add(cells[9]);
  
            labels[7] = new Label();
            labels[7].Text = ItemString;
            cells[9] = new TableCell();
            cells[9].Controls.Add(labels[7]);
            rows[3].Cells.Add(cells[9]);
  
            tableconf.Rows.Add(rows[3]);
  
            /// Row:Table header.
            /// 
            labels[8] = new Label();
            labels[8].Text = "Size";
            cells[10] = new TableCell();
            cells[10].Controls.Add(labels[8]);
            labels[9] = new Label();
            labels[9].Text = "original qty";
            cells[11] = new TableCell();
            cells[11].Controls.Add(labels[9]);
            labels[10] = new Label();
            labels[10].Text = "new qty";
            cells[12] = new TableCell();
            cells[12].Controls.Add(labels[10]);
            rows[4] = new TableRow();
            rows[4].Cells.Add(cells[10]);
            rows[4].Cells.Add(cells[11]);
            rows[4].Cells.Add(cells[12]);
            tableconf.Rows.Add(rows[4]);
  
            // foreach SizeRun create a Row in table
            foreach (var size in query)
            {
                string szor = size.SizeOrder.ToString();
                string POValueString = Convert.ToString(size.POValue);
                decimal POValueDec = Convert.ToDecimal(size.POValue);
                double PONewValue = Convert.ToDouble(size.PONewValue);
                ///create dinamic rows in SliderTable.
                  
                labels[5] = new Label();
                labels[5].Text = size.Size; labels[5].ID = "LabelSizeRuns_" + size.SizeOrder;
                cells[5] = new TableCell();
                cells[5].Controls.Add(labels[5]);
                rows[2] = new TableRow();
                rows[2].Cells.Add(cells[5]);
  
                labels[6] = new Label();
                labels[6].Text = POValueString; labels[6].ID = "LabelSizeRuns1_" + size.SizeOrder;
                cells[6] = new TableCell();
                cells[6].Controls.Add(labels[6]);
                rows[2].Cells.Add(cells[6]);
  
                RadNumericTextBox text = new RadNumericTextBox();
                textbox[0] = new RadNumericTextBox();
                textbox[0].Type = NumericType.Number;
                textbox[0].MaxLength = 30000;
                textbox[0].MinValue = 0;
                textbox[0].MaxValue = 1000;
                textbox[0].Width = 100;
                textbox[0].Height = 20;
                textbox[0].Visible = true;
                textbox[0].Skin = "Black";
                textbox[0].ID = "RadTextBox_" + size.SizeOrder;
                textbox[0].Value = PONewValue;
                textbox[0].ClientEvents.OnValueChanged = "TextBoxValueChanged";
                //textbox[0].TextChanged += new EventHandler(RadNumericBox_Changed);
               // textbox[0].AutoPostBack = true;
                slider[0] = new RadSlider();
                slider[0].ID = "RadSlider_" + size.SizeOrder;
                slider[0].Value = int.Parse(POValueString);
                slider[0].Width = 400;
                slider[0].ItemType = SliderItemType.Tick;
                slider[0].TrackPosition = SliderTrackPosition.TopLeft;
                slider[0].MaximumValue = 10;
                slider[0].MinimumValue = 0;
                slider[0].Skin = "Black";
                slider[0].SmallChange = 1;
                slider[0].OnClientValueChanged = "SliderValueChanged";
                  
  
                cells[7] = new TableCell();
                cells[7].Controls.Add(textbox[0]);
                rows[2].Cells.Add(cells[7]);
  
                cells[8] = new TableCell();
                cells[8].Controls.Add(slider[0]);
                rows[2].Cells.Add(cells[8]);
  
                table.Rows.Add(rows[2]);
  
                /// Create Confirmationtable Dinamic content.
  
                labels[11] = new Label();
                labels[11].Text = size.Size; labels[11].ID = "LabelSizeRuns_" + size.SizeOrder;
                cells[13] = new TableCell();
                cells[13].Controls.Add(labels[11]);
                rows[5] = new TableRow();
                rows[5].Cells.Add(cells[13]);
  
                labels[12] = new Label();
                labels[12].Text = POValueString; labels[12].ID = "LabelSizeRuns1_" + size.SizeOrder;
                cells[14] = new TableCell();
                cells[14].Controls.Add(labels[12]);
                rows[5].Cells.Add(cells[14]);
  
                labels[13] = new Label();
                labels[13].Text = POValueString; labels[13].ID = "LabelNewSizes_" + size.SizeOrder;
                cells[15] = new TableCell();
                cells[15].Controls.Add(labels[13]);
                rows[5].Cells.Add(cells[15]);
  
                tableconf.Rows.Add(rows[5]);
            }
  
        }
  
protected void CreateGeneralPOInformation(object sender, EventArgs e)
        {
            // Read PONumber
            var PONumberString = RadComboBox1.Text;
            var query = from p in db.View_PO_General_Informations
                        where p.CST_ORDER_.Equals(PONumberString)
                        select p;
            var order = query.First();
            Table table = PODetailsConfirmationTable;
  
            TableCell[] cells = new TableCell[26];
            Label[] labels = new Label[26];
            TableRow[] rows = new TableRow[13];
            RadButton[] buttons = new RadButton[3];
  
            labels[0] = new Label();
            labels[0].Text = "Purchase Order Number:";
            cells[0] = new TableCell();
            cells[0].Controls.Add(labels[0]);
  
            labels[1] = new Label();
            labels[1].Text = order.PO_ORDER_N;
            cells[1] = new TableCell();
            cells[1].Controls.Add(labels[1]);
  
            rows[0] = new TableRow();
            rows[0].Cells.Add(cells[0]);
            rows[0].Cells.Add(cells[1]);
  
            labels[2] = new Label();
            labels[2].Text = "Client Number:";
            cells[2] = new TableCell();
            cells[2].Controls.Add(labels[2]);
  
            labels[3] = new Label();
            labels[3].Text = order.CLIENT_NO;
            cells[3] = new TableCell();
            cells[3].Controls.Add(labels[3]);
  
            rows[1] = new TableRow();
            rows[1].Cells.Add(cells[2]);
            rows[1].Cells.Add(cells[3]);
  
            labels[4] = new Label();
            labels[4].Text = "Order quantity:";
            cells[4] = new TableCell();
            cells[4].Controls.Add(labels[4]);
  
            labels[5] = new Label();
            labels[5].Text = order.ORDER_QTY.ToString();
            cells[5] = new TableCell();
            cells[5].Controls.Add(labels[5]);
  
            rows[2] = new TableRow();
            rows[2].Cells.Add(cells[4]);
            rows[2].Cells.Add(cells[5]);
  
            labels[6] = new Label();
            labels[6].Text = "Customer number:";
            cells[6] = new TableCell();
            cells[6].Controls.Add(labels[6]);
  
            labels[7] = new Label();
            labels[7].Text = order.CUSTOMER.ToString();
            cells[7] = new TableCell();
            cells[7].Controls.Add(labels[7]);
  
            rows[3] = new TableRow();
            rows[3].Cells.Add(cells[6]);
            rows[3].Cells.Add(cells[7]);
  
            labels[8] = new Label();
            labels[8].Text = "Order status:";
            cells[8] = new TableCell();
            cells[8].Controls.Add(labels[8]);
  
            labels[9] = new Label();
            labels[9].Text = order.STATUS.ToString();
            cells[9] = new TableCell();
            cells[9].Controls.Add(labels[9]);
  
            rows[4] = new TableRow();
            rows[4].Cells.Add(cells[8]);
            rows[4].Cells.Add(cells[9]);
  
            labels[10] = new Label();
            labels[10].Text = "Article number:";
            cells[10] = new TableCell();
            cells[10].Controls.Add(labels[10]);
  
            labels[11] = new Label();
            labels[11].Text = order.ARTICLE_NO.ToString();
            cells[11] = new TableCell();
            cells[11].Controls.Add(labels[11]);
  
            rows[5] = new TableRow();
            rows[5].Cells.Add(cells[10]);
            rows[5].Cells.Add(cells[11]);
  
            labels[12] = new Label();
            labels[12].Text = "IPMT_Work_No:";
            cells[12] = new TableCell();
            cells[12].Controls.Add(labels[12]);
  
            labels[13] = new Label();
            labels[13].Text = order.IPMT_WORK_.ToString();
            cells[13] = new TableCell();
            cells[13].Controls.Add(labels[13]);
  
            rows[6] = new TableRow();
            rows[6].Cells.Add(cells[12]);
            rows[6].Cells.Add(cells[13]);
  
            labels[14] = new Label();
            labels[14].Text = "Sportscode:";
            cells[14] = new TableCell();
            cells[14].Controls.Add(labels[14]);
  
            labels[15] = new Label();
            labels[15].Text = order.SPORTS_COD.ToString();
            cells[15] = new TableCell();
            cells[15].Controls.Add(labels[15]);
  
            rows[7] = new TableRow();
            rows[7].Cells.Add(cells[14]);
            rows[7].Cells.Add(cells[15]);
  
  
            labels[16] = new Label();
            labels[16].Text = "Factory:";
            cells[16] = new TableCell();
            cells[16].Controls.Add(labels[16]);
  
            labels[17] = new Label();
            labels[17].Text = order.FCT_LINE.ToString();
            cells[17] = new TableCell();
            cells[17].Controls.Add(labels[17]);
  
            rows[8] = new TableRow();
            rows[8].Cells.Add(cells[16]);
            rows[8].Cells.Add(cells[17]);
  
            labels[18] = new Label();
            labels[18].Text = "Customer request date:";
            cells[18] = new TableCell();
            cells[18].Controls.Add(labels[18]);
  
            labels[19] = new Label();
            labels[19].Text = order.CRD.ToString();
            cells[19] = new TableCell();
            cells[19].Controls.Add(labels[19]);
  
            rows[9] = new TableRow();
            rows[9].Cells.Add(cells[18]);
            rows[9].Cells.Add(cells[19]);
  
            labels[20] = new Label();
            labels[20].Text = "Statistical delivery date:";
            cells[20] = new TableCell();
            cells[20].Controls.Add(labels[20]);
  
            labels[21] = new Label();
            labels[21].Text = order.PSDD.ToString();
            cells[21] = new TableCell();
            cells[21].Controls.Add(labels[21]);
  
            rows[10] = new TableRow();
            rows[10].Cells.Add(cells[20]);
            rows[10].Cells.Add(cells[21]);
  
            labels[22] = new Label();
            labels[22].Text = "Delivery date:";
            cells[22] = new TableCell();
            cells[22].Controls.Add(labels[22]);
  
            labels[23] = new Label();
            labels[23].Text = order.PODD.ToString();
            cells[23] = new TableCell();
            cells[23].Controls.Add(labels[23]);
  
            rows[11] = new TableRow();
            rows[11].Cells.Add(cells[22]);
            rows[11].Cells.Add(cells[23]);
  
            labels[24] = new Label();
            labels[24].Text = "Liaison Officer contact:";
            cells[24] = new TableCell();
            cells[24].Controls.Add(labels[24]);
  
            labels[25] = new Label();
            labels[25].Text = order.LO_Contact.ToString();
            cells[25] = new TableCell();
            cells[25].Controls.Add(labels[25]);
  
            rows[12] = new TableRow();
            rows[12].Cells.Add(cells[24]);
            rows[12].Cells.Add(cells[25]);
  
            //buttons[0] = new RadButton();
            //buttons[0].Text = "Save";
            //buttons[0].Skin = "Black";
            //buttons[0].
            //cells[26] = new TableCell();
            //cells[26].Controls.Add(buttons[0]);
  
            //buttons[1] = new RadButton();
            //buttons[1].Text = "Cancel";
            //buttons[1].Skin = "Black";
            //cells[27] = new TableCell();
            //cells[27].Controls.Add(buttons[1]);
  
            //rows[12] = new TableRow();
            //rows[12].Cells.Add(cells[24]);
            //rows[12].Cells.Add(cells[25]);
  
            table.Rows.Add(rows[0]);
            table.Rows.Add(rows[1]);
            table.Rows.Add(rows[2]);
            table.Rows.Add(rows[3]);
            table.Rows.Add(rows[4]);
            table.Rows.Add(rows[5]);
            table.Rows.Add(rows[6]);
            table.Rows.Add(rows[7]);
            table.Rows.Add(rows[8]);
            table.Rows.Add(rows[9]);
            table.Rows.Add(rows[10]);
            table.Rows.Add(rows[11]);
            table.Rows.Add(rows[12]);
  
        }
  
protected void Submit_Button1_Click(object sender, EventArgs e)
        {
            CreateTable(sender, e);
            CreateGeneralPOInformation(sender, e);
            PrepareInterface("05");
  
        }
protected void PrepareInterface(string status)
        {
            //Set all items invisible to save code in future.
            SCIWorkflowPanel.Items[0].Visible = false;
            SCIWorkflowPanel.Items[1].Visible = false;
            SCIWorkflowPanel.Items[2].Visible = false;
            SCIWorkflowPanel.Items[3].Visible = false;
            SCIWorkflowPanel.Items[4].Visible = false;
            SCIWorkflowPanel.Items[5].Visible = false;
            SCIWorkflowPanel.Items[6].Visible = false;
            SCIWorkflowPanel.Items[7].Visible = false;
            SCIWorkflowPanel.Items[8].Visible = false;
            SCIWorkflowPanel.Items[9].Visible = false;
            SCIWorkflowPanel.Items[10].Visible = false;
            SCIWorkflowPanel.Items[11].Visible = false;
            SCIWorkflowPanel.Items[12].Visible = false;
            SCIWorkflowPanel.Items[13].Visible = false;
            SCIWorkflowPanel.Items[14].Visible = false;
            SCIWorkflowPanel.Items[15].Visible = false;
            SCIWorkflowPanel.Items[16].Visible = false;
              
  
            //When request comes with status switch cases.
  
            switch (status)
            {    
                case "newRequest":
                    SCIWorkflowPanel.Items[0].Visible = false;
                    SCIWorkflowPanel.Items[1].Visible = true;
                    SCIWorkflowPanel.Items[1].Expanded = true;
                    SCIWorkflowPanel.Items[1].Selected = true;
                    SCIWorkflowPanel.Items[16].Visible = false;
                    SCIWorkflowPanel.Items[15].Visible = false;
                    SCIWorkflowPanel.Items[14].Visible = false;
                    SCIWorkflowPanel.Items[13].Visible = false;
                    SCIWorkflowPanel.Items[12].Visible = false;
                    SCIWorkflowPanel.Items[11].Visible = false;
                    SCIWorkflowPanel.Items[10].Visible = false;
                    SCIWorkflowPanel.Items[9].Visible = false;
                    SCIWorkflowPanel.Items[8].Visible = false;
                    SCIWorkflowPanel.Items[7].Visible = false;
                    SCIWorkflowPanel.Items[6].Visible = false;
                    SCIWorkflowPanel.Items[5].Visible = false;
                    SCIWorkflowPanel.Items[4].Visible = false;
                    SCIWorkflowPanel.Items[3].Visible = false;
                    SCIWorkflowPanel.Items[2].Visible = false;
                    break;
                    // Status: Please enter Factory Details.
                case "00":
                    SCIWorkflowPanel.Items[3].Visible = true;
                    SCIWorkflowPanel.Items[3].Enabled = true;
                    SCIWorkflowPanel.Items[3].Selected = true;
                    SCIWorkflowPanel.Items[3].Expanded = true;
                    SCIWorkflowPanel.Items[8].Visible = true;
                    SCIWorkflowPanel.Items[8].Enabled = true;
                    SCIWorkflowPanel.Items[8].Expanded = true;
                    //RadTabStrip1.Tabs[1].Enabled = true;
                    break;
                    //Status: Please enter factory response.
                case "01":
                    SCIWorkflowPanel.Items[4].Visible = true;
                    SCIWorkflowPanel.Items[4].Enabled = true;
                    SCIWorkflowPanel.Items[4].Selected = true;
                    SCIWorkflowPanel.Items[4].Expanded = true;
                    SCIWorkflowPanel.Items[8].Visible = true;
                    SCIWorkflowPanel.Items[8].Enabled = true;
                    SCIWorkflowPanel.Items[8].Expanded = true;
                    //RadTabStrip1.Tabs[1].Enabled = true;
                    break;
  
                case "02":
                    SCIWorkflowPanel.Items[5].Visible = true;
                    SCIWorkflowPanel.Items[5].Enabled = true;
                    SCIWorkflowPanel.Items[5].Selected = true;
                    SCIWorkflowPanel.Items[5].Expanded = true;
                    SCIWorkflowPanel.Items[8].Visible = true;
                    SCIWorkflowPanel.Items[8].Enabled = true;
                    SCIWorkflowPanel.Items[8].Expanded = true;
                    //RadTabStrip1.Tabs[2].Enabled = true;
                    //RadTabStrip1.Tabs[1].Enabled = true;
  
  
                    break;
                case "03":
                    SCIWorkflowPanel.Items[6].Visible = true;
                    SCIWorkflowPanel.Items[6].Enabled = true;
                    SCIWorkflowPanel.Items[6].Selected = true;
                    SCIWorkflowPanel.Items[6].Expanded = true;
                    SCIWorkflowPanel.Items[8].Visible = true;
                    SCIWorkflowPanel.Items[8].Enabled = true;
                    SCIWorkflowPanel.Items[8].Expanded = true;
                    //RadTabStrip1.Tabs[2].Enabled = true;
                    //RadTabStrip1.Tabs[3].Enabled = true;
                    //RadTabStrip1.Tabs[1].Enabled = true;
  
  
                    break;
                case "04":
                    SCIWorkflowPanel.Items[7].Visible = true;
                    SCIWorkflowPanel.Items[7].Enabled = true;
                    SCIWorkflowPanel.Items[7].Selected = true;
                    SCIWorkflowPanel.Items[7].Expanded = true;
                    SCIWorkflowPanel.Items[8].Visible = true;
                    SCIWorkflowPanel.Items[8].Enabled = true;
                    SCIWorkflowPanel.Items[8].Expanded = true;
                    //RadTabStrip1.Tabs[1].Enabled = true;
                    //RadTabStrip1.Tabs[2].Enabled = true;
                    //RadTabStrip1.Tabs[3].Enabled = true;
  
  
                    break;
                //Request comes without status
                default:
                    SCIWorkflowPanel.Items[0].Visible = true;
                    SCIWorkflowPanel.Items[0].Enabled = true;
                    SCIWorkflowPanel.Items[0].Selected = true;
                    SCIWorkflowPanel.Items[0].Expanded = true;
                    SCIWorkflowPanel.Items[1].Visible = false;
                    SCIWorkflowPanel.Items[2].Visible = false;
                    SCIWorkflowPanel.Items[3].Visible = false;
                    SCIWorkflowPanel.Items[4].Visible = false;
                    SCIWorkflowPanel.Items[5].Visible = false;
                    SCIWorkflowPanel.Items[6].Visible = false;
                    SCIWorkflowPanel.Items[7].Visible = false;
                    SCIWorkflowPanel.Items[8].Visible = false;
                    SCIWorkflowPanel.Items[9].Visible = true;
                    SCIWorkflowPanel.Items[10].Visible = true;
                    SCIWorkflowPanel.Items[11].Visible = true;
                    SCIWorkflowPanel.Items[12].Visible = true;
                    SCIWorkflowPanel.Items[13].Visible = true;
                    SCIWorkflowPanel.Items[14].Visible = true;
                    SCIWorkflowPanel.Items[15].Visible = true;
                    SCIWorkflowPanel.Items[16].Visible = true;
  
                    break;
                case "05":
                    SCIWorkflowPanel.Items[2].Visible = true;
                    SCIWorkflowPanel.Items[2].Enabled = true;
                    SCIWorkflowPanel.Items[2].Selected = true;
                    SCIWorkflowPanel.Items[2].Expanded = true;
                    SCIWorkflowPanel.Items[8].Visible = true;
                    SCIWorkflowPanel.Items[8].Enabled = true;
                    SCIWorkflowPanel.Items[8].Expanded = true;
                    //RadTabStrip1.Tabs[1].Enabled = true;
  
                    break;
                case "06":
                    SCIWorkflowPanel.Items[0].Visible = true;
            SCIWorkflowPanel.Items[1].Visible = true;
            SCIWorkflowPanel.Items[2].Visible = true;
            SCIWorkflowPanel.Items[3].Visible = true;
            SCIWorkflowPanel.Items[4].Visible = true;
            SCIWorkflowPanel.Items[5].Visible = true;
            SCIWorkflowPanel.Items[6].Visible = true;
            SCIWorkflowPanel.Items[7].Visible = true;
            SCIWorkflowPanel.Items[8].Visible = true;
            SCIWorkflowPanel.Items[9].Visible = true;
            SCIWorkflowPanel.Items[10].Visible = true;
            SCIWorkflowPanel.Items[11].Visible = true;
            SCIWorkflowPanel.Items[12].Visible = true;
            SCIWorkflowPanel.Items[13].Visible = true;
            SCIWorkflowPanel.Items[14].Visible = true;
            SCIWorkflowPanel.Items[15].Visible = true;
            SCIWorkflowPanel.Items[16].Visible = true;
  
                    break;
            }
  
        }


Iana Tsolova
Telerik team
 answered on 24 Feb 2011
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?