﻿<?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 - set value in webcombo</title><link>http://www.intersoftsolutions.com/Community/WebGrid/set-value-in-webcombo/</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>set value in webcombo</title><link>http://www.intersoftsolutions.com/Community/WebGrid/set-value-in-webcombo/</link><pubDate>Mon, 05 Dec 2011 03:54:26 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;blockquote&gt;1.to Hide dialogbox "PopUpProjectPick"&lt;/blockquote&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;In order to hide the “PopUpProjectPick” dialogbox, first you need to obtain the object of the dialogbox then invoke the CloseDialog() method as shown in the following snippet code.&lt;/span&gt; &lt;/p&gt;&lt;pre&gt;var dialog = ISGetObject("PopUpProjectPick");

dialog.CloseDialog();&lt;/pre&gt;&lt;blockquote&gt;2.to set values of focused row of "gvProjectPick" in webcombo "cbproject".&lt;/blockquote&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;I suggest you to use the SetText() method of WebCombo in order to set the WebCombo value based on the selected row of “gvProjectPick”. Please obtain the object of “cbProject” WebCombo and then call the SetText() method as shown in the following.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;var cbProject = ISGetObject("cbProject");

cbProject.SetText(ContactName.Value);&lt;/pre&gt;&lt;blockquote&gt;3.to make a callback of webgrid "gvRequisition" based on these values. (show data in "gvRequisition" based on these values)&lt;/blockquote&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;I'm not quite sure how to help you with this requirement but you may try to use the "adding filter programmatically in WebGrid" approach.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;Example:&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;function AddFilter()
{
    var grid = ISGetObject("WebGrid1");
    var newFilter = new WebGridFilter();

    newFilter.ColumnMember = "ContactName";
    newFilter.FilterType = "Like";
    newFilter.FilterText = "Ana";

    grid.RootTable.FilteredColumns.Add(newFilter);
    grid.RootTable.UpdateUI();
    grid.Refresh();
}&lt;/pre&gt;</description></item><item><title>set value in webcombo</title><link>http://www.intersoftsolutions.com/Community/WebGrid/set-value-in-webcombo/</link><pubDate>Mon, 05 Dec 2011 01:43:36 GMT</pubDate><dc:creator>soniya</dc:creator><description>&lt;span style="font-family: courier new; color: #006400; font-size: 18px"&gt;&lt;span style="font-family: courier new; color: #006400; font-size: 18px"&gt;&lt;span style="font-family: courier new; color: #006400; font-size: 18px"&gt;&lt;p&gt;Steps to follow&lt;/p&gt;&lt;p&gt;1.Click on the dropdown button of "cbProject"&lt;/p&gt;&lt;p&gt;2.This will open dialogbox&lt;/p&gt;&lt;p&gt;3.select one row in dialog box and click on ok button&amp;nbsp;&lt;/p&gt;&lt;p&gt;4.debug the js function "&lt;span style="font-family: courier new; font-size: 18px"&gt;&lt;span style="font-family: courier new; font-size: 18px"&gt;btnPPOkClick" I have written only few code lines in it ...&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family: courier new; font-size: 18px"&gt;&lt;span style="font-family: courier new; font-size: 18px"&gt;&lt;/span&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;WHAT should be done next in the function &lt;/p&gt;&lt;p&gt;&lt;span style="font-family: courier new; font-size: 18px"&gt;&lt;span style="font-family: courier new; font-size: 18px"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: courier new; color: #006400; font-size: 18px"&gt;&lt;span style="font-family: courier new; color: #006400; font-size: 18px"&gt;&lt;span style="font-family: courier new; color: #006400; font-size: 18px"&gt;1.to Hide dialogbox "PopUpProjectPick" &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: courier new; font-size: 18px"&gt;&lt;span style="font-family: courier new; font-size: 18px"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: courier new; color: #006400; font-size: 18px"&gt;&lt;span style="font-family: courier new; color: #006400; font-size: 18px"&gt;&lt;span style="font-family: courier new; color: #006400; font-size: 18px"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;p&gt;&lt;span style="font-family: courier new; color: #006400; font-size: 18px"&gt;&lt;span style="font-family: courier new; color: #006400; font-size: 18px"&gt;&lt;span style="font-family: courier new; color: #006400; font-size: 18px"&gt;2.to set values of focused row of "gvProjectPick" in webcombo "cbProject". &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: courier new; color: #006400; font-size: 18px"&gt;&lt;span style="font-family: courier new; color: #006400; font-size: 18px"&gt;&lt;span style="font-family: courier new; color: #006400; font-size: 18px"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: courier new; font-size: 18px"&gt;&lt;span style="font-family: courier new; font-size: 18px"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: courier new; color: #006400; font-size: 18px"&gt;&lt;span style="font-family: courier new; color: #006400; font-size: 18px"&gt;&lt;span style="font-family: courier new; color: #006400; font-size: 18px"&gt;3.to make a callback of webgrid "gvRequisition" based on these values.(show data in "gvRequisition" based on these values) &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: courier new; font-size: 18px"&gt;&lt;span style="font-family: courier new; font-size: 18px"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: courier new; color: #006400; font-size: 18px"&gt;&lt;/span&gt;&lt;/p&gt;</description></item></channel></rss>