﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - WebGrid Enterprise - How to switch colums after selecting a value from a dropdownlist?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-to-switch-colums-after-selecting-a-value-from-a-dropdownlist/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>How to switch colums after selecting a value from a dropdownlist?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-to-switch-colums-after-selecting-a-value-from-a-dropdownlist/</link><pubDate>Thu, 29 Nov 2012 22:15:47 GMT</pubDate><dc:creator>bernard</dc:creator><description>&lt;p&gt;Hi Eray,&lt;/p&gt;&lt;p&gt;For this problem, I've made you a sample. In my sample, I'm using WebCombo to select the data that will be appear on WebGrid. I attach the sample in here. Could you look at my sample and tell me if that sample have meet your requirement? Look forward to hear any feedback from you so I can help you further.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Bernard&lt;/p&gt;</description></item><item><title>How to switch colums after selecting a value from a dropdownlist?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-to-switch-colums-after-selecting-a-value-from-a-dropdownlist/</link><pubDate>Thu, 29 Nov 2012 08:21:37 GMT</pubDate><dc:creator>macedes</dc:creator><description>&lt;p&gt;Hello, I have a WebGrid with 4 colums:&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;STATUS | TRIGRAM| NAME | FIRM&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Status is a WebCombo which contains: Intern or Extern.&lt;/p&gt;
&lt;p&gt;When i select "Extern" in the dropdownlist it should show the following colums:&lt;/p&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;p&gt;STATUS | TRIGRAM| NAME &lt;/p&gt;
&lt;p&gt;and when i select "Intern"(this should be the default value) :&lt;/p&gt;
&lt;p&gt;STATUS | NAME | FIRM&lt;/p&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;how can i do that ?&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;here is my code so far: &lt;/p&gt;
&lt;p /&gt;&lt;pre&gt; function WebCombo3_OnAfterItemSelected(controlId) {
            var WebCombo3 = ISGetObject("WebCombo3");
            var grid = ISGetObject("WebGrid1");
            var selectedStatus = WebCombo3.GetSelectedRow().cells[0].innerText
            if (selectedStatus == "Intern ") {
                alert("Intern is selected")
            }
            else if (selectedStatus =="Extern ") { 
            alert("Extern is selected")
            }
            return true;
        }&lt;/pre&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p /&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Thanks in Advance for your help&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>