<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	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:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Yılmaz Yavuz &#187; Developer Express</title>
	<atom:link href="http://www.yilmazyavuz.com/yyblog/index.php/tag/developer-express/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.yilmazyavuz.com/yyblog</link>
	<description>yazılım üzerine taze taze</description>
	<lastBuildDate>Mon, 14 Feb 2011 15:35:43 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Devexpress Gridcontrol &#8211; Parent Child with entity objects</title>
		<link>http://www.yilmazyavuz.com/yyblog/index.php/2011/02/devexpress-gridcontrol-parent-child-with-entity-objects/</link>
		<comments>http://www.yilmazyavuz.com/yyblog/index.php/2011/02/devexpress-gridcontrol-parent-child-with-entity-objects/#comments</comments>
		<pubDate>Mon, 14 Feb 2011 15:28:46 +0000</pubDate>
		<dc:creator>Yılmaz Yavuz</dc:creator>
				<category><![CDATA[C Sharp]]></category>
		<category><![CDATA[Devexpress]]></category>
		<category><![CDATA[Csharp]]></category>
		<category><![CDATA[Developer Express]]></category>
		<category><![CDATA[devex]]></category>
		<category><![CDATA[gridcontrol]]></category>
		<category><![CDATA[xtragridcontrol]]></category>

		<guid isPermaLink="false">http://www.yilmazyavuz.com/yyblog/?p=512</guid>
		<description><![CDATA[<p>Firstly I created two simple entity classes named Article and Comment :</p>
<p>Article.cs :</p>


using System.Collections.Generic;

namespace DevexMasterChildSample
{
public class Article
{
public string Subject { get; set; }
public string Body { get; set; }
public List&#60;Comment&#62; CommentList { get; set; }

}
}

<p>Comment.cs</p>


using System;

namespace DevexMasterChildSample
{
public class Comment
{
public string Author { get; set; }
public string Message { get; set; }
public DateTime CommentDate { get; set; <span style="color:#777"> . . . &#8594; Read More: <a href="http://www.yilmazyavuz.com/yyblog/index.php/2011/02/devexpress-gridcontrol-parent-child-with-entity-objects/">Devexpress Gridcontrol &#8211; Parent Child with entity objects</a></span>]]></description>
			<content:encoded><![CDATA[<p>Firstly I created two simple entity classes named Article and Comment :</p>
<p><strong>Article.cs :</strong></p>
<pre class="brush: csharp;">

using System.Collections.Generic;

namespace DevexMasterChildSample
{
public class Article
{
public string Subject { get; set; }
public string Body { get; set; }
public List&lt;Comment&gt; CommentList { get; set; }

}
}
</pre>
<p><strong>Comment.cs</strong></p>
<pre class="brush: csharp;">

using System;

namespace DevexMasterChildSample
{
public class Comment
{
public string Author { get; set; }
public string Message { get; set; }
public DateTime CommentDate { get; set; }

}
}
</pre>
<p><strong>Then I  Added a simple Windows form file to my project named Form1.cs and in Design Mode I draged a Devexpress GridControl to my form and changed it&#8217;s size to fit my form.</strong></p>
<p><strong>After that I created a new level for Gridview1 shown below</strong></p>
<p><strong><a href="http://content.screencast.com/users/Yilmaz_Yavuz/folders/Snagit/media/b17bbed3-84ff-4ce3-9084-e5ffcdf65bb6/02.14.2011-17.14.01.png"><img class="embeddedObject" src="http://content.screencast.com/users/Yilmaz_Yavuz/folders/Snagit/media/b17bbed3-84ff-4ce3-9084-e5ffcdf65bb6/02.14.2011-17.14.01.png" border="0" alt="" width="580" height="205" /></a></strong></p>
<p><strong><a href="http://content.screencast.com/users/Yilmaz_Yavuz/folders/Snagit/media/9eed5e1c-0c40-4f96-904d-04b1d10247f9/02.14.2011-17.15.21.png"><img class="embeddedObject" src="http://content.screencast.com/users/Yilmaz_Yavuz/folders/Snagit/media/9eed5e1c-0c40-4f96-904d-04b1d10247f9/02.14.2011-17.15.21.png" border="0" alt="" width="583" height="245" /></a></strong></p>
<p><strong>Then I renamed the <span style="text-decoration: underline;">Level</span> to <span style="color: #ff0000;"><span style="text-decoration: underline;">CommentList</span></span> it must be exactly the same with Master Object&#8217;s child collection property name. In this case it is CommentList on Article object<br />
</strong></p>
<p><a href="http://content.screencast.com/users/Yilmaz_Yavuz/folders/Snagit/media/f46de44d-07ba-477f-934b-ac55eee91731/02.14.2011-17.17.47.png"><img class="embeddedObject" src="http://content.screencast.com/users/Yilmaz_Yavuz/folders/Snagit/media/f46de44d-07ba-477f-934b-ac55eee91731/02.14.2011-17.17.47.png" border="0" alt="" width="355" height="187" /></a></p>
<p><a href="http://content.screencast.com/users/Yilmaz_Yavuz/folders/Snagit/media/ba4228a6-e510-4371-bd87-21da92ceafdf/02.14.2011-17.20.32.png"><img class="embeddedObject" src="http://content.screencast.com/users/Yilmaz_Yavuz/folders/Snagit/media/ba4228a6-e510-4371-bd87-21da92ceafdf/02.14.2011-17.20.32.png" border="0" alt="" width="384" height="190" /></a></p>
<p><strong><strong>Form1.cs</strong></strong></p>
<pre class="brush: csharp;">

using System;
using System.Collections.Generic;
using System.Windows.Forms;

namespace DevexMasterChildSample
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}

private void Form1_Load(object sender, EventArgs e)
{
List&lt;Article&gt; articles = new List&lt;Article&gt;();
articles.Add(new Article
{
Body = &quot;Bu yazı devexpress gridcontrolü anlatmaktadır.&quot;,
CommentList =
new List&lt;Comment&gt;
{
new Comment
{
Author = &quot;Erdem&quot;,
CommentDate = DateTime.Now,
Message = &quot;Yazınız güzel olmuş.&quot;
}
},
Subject = &quot;Devexpress GridControl master Child Örnek&quot;
});
articles.Add(new Article
{
Body = &quot;Bu yazı devexpress treeview anlatmaktadır.&quot;,
CommentList =
new List&lt;Comment&gt;
{
new Comment
{
Author = &quot;Alkan&quot;,
CommentDate = DateTime.Now,
Message = &quot;Yazınız pek anlaşılır olmamış.&quot;
}
},
Subject = &quot;Devexpress Treeview Drag-drop Örnek&quot;
});

gridControl1.DataSource = articles;

}
}
}
</pre>
<p><strong>Result : </strong><br />
<a href="http://content.screencast.com/users/Yilmaz_Yavuz/folders/Snagit/media/17ad54f1-5259-4379-ae68-1edd03ec2879/02.14.2011-17.27.55.png"><img class="embeddedObject" src="http://content.screencast.com/users/Yilmaz_Yavuz/folders/Snagit/media/17ad54f1-5259-4379-ae68-1edd03ec2879/02.14.2011-17.27.55.png" width="705" height="503" border="0" /></a></p>
<p><a href="http://www.yilmazyavuz.com/Samples/DevexMasterChildSample.zip">You can download the sample code here</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.yilmazyavuz.com/yyblog/index.php/2011/02/devexpress-gridcontrol-parent-child-with-entity-objects/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Devexpress &#8211; AspxCloudControl Örnek</title>
		<link>http://www.yilmazyavuz.com/yyblog/index.php/2010/05/devexpress-aspxcloudcontrol-ornek/</link>
		<comments>http://www.yilmazyavuz.com/yyblog/index.php/2010/05/devexpress-aspxcloudcontrol-ornek/#comments</comments>
		<pubDate>Mon, 03 May 2010 09:03:57 +0000</pubDate>
		<dc:creator>Yılmaz Yavuz</dc:creator>
				<category><![CDATA[Asp.Net]]></category>
		<category><![CDATA[C Sharp]]></category>
		<category><![CDATA[Devexpress]]></category>
		<category><![CDATA[aspx]]></category>
		<category><![CDATA[aspxcloudcontrol]]></category>
		<category><![CDATA[cloud]]></category>
		<category><![CDATA[Csharp]]></category>
		<category><![CDATA[Developer Express]]></category>
		<category><![CDATA[generic]]></category>
		<category><![CDATA[list]]></category>
		<category><![CDATA[tag]]></category>

		<guid isPermaLink="false">http://www.yilmazyavuz.com/yyblog/?p=458</guid>
		<description><![CDATA[<p></p>
<p>Devexpress AspxCloudControl u elimizde hazır bulunan bir cloud datasını ekrana basmak için kullandığımız bir devex kontrolüdür.</p>
<p>Örnekte bir blog sitesindeki tag leri aspx cloud control ü kullanarak nasıl ekrana çıkartacağımız gösterilmiştir.
İlk olarak Visual Studio yu açarak, Yeni bir Web Project oluşturuyoruz. Proje içinde; öncelikle Tag adında bir class oluşturup Name,DisplayName,Count adında üç property ekliyoruz.</p>
<p>Sonra default.aspx içerisine devexpress <span style="color:#777"> . . . &#8594; Read More: <a href="http://www.yilmazyavuz.com/yyblog/index.php/2010/05/devexpress-aspxcloudcontrol-ornek/">Devexpress &#8211; AspxCloudControl Örnek</a></span>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.yilmazyavuz.com/yyblog/wp-content/uploads/03.05.png"><img class="alignnone size-medium wp-image-465" title="03.05" src="http://www.yilmazyavuz.com/yyblog/wp-content/uploads/03.05-300x143.png" alt="03.05" width="300" height="143" /></a></p>
<p>Devexpress AspxCloudControl u elimizde hazır bulunan bir cloud datasını ekrana basmak için kullandığımız bir devex kontrolüdür.</p>
<p>Örnekte bir blog sitesindeki tag leri aspx cloud control ü kullanarak nasıl ekrana çıkartacağımız gösterilmiştir.<br />
İlk olarak Visual Studio yu açarak, Yeni bir Web Project oluşturuyoruz. Proje içinde; öncelikle Tag adında bir class oluşturup Name,DisplayName,Count adında üç property ekliyoruz.</p>
<p>Sonra default.aspx içerisine devexpress CloudControl u sürükleyip bırakıyoruz. Default.aspx.cs içerisine gelip, Yeni bir tag tipinde generic list oluşturup, içine tag elemanlarını ekliyoruz. Bu elemanların count propertylerinin birbirinden farklı olması cloud controlün görünümünü etkileyen asıl unsurdur. Daha sonra CloudControl ün TextField alanını &#8220;DisplayName&#8221; , NameField alanını &#8220;Name&#8221;, NavigateUrlField alanını &#8220;Name&#8221; , NavigateUrlFormatString alanını  &#8220;http://www.yilmazyavuz.com/yyblog/index.php/tag/{0}/&#8221; , ValueField alanını &#8220;Count&#8221; şeklinde atıyoruz. Burdaki alanlardan önemli olan TextField , ValueField ve NavigateUrlField alanları bu alanlar :</p>
<p>TextField : Önyüzde gösterilecek olan yazı,<br />
ValueField: Önyüzde gösterilecek olan yazıyı boyutlandırmak için kullanılacak değer.<br />
NavigateUrlField : Önyüzde gösterilecek olan elemanın gideceği adres yada NavigateUrlFormatString de belirtilen stringin içerisine yerleştirilecek değer.<br />
NavigateUrlFormatString : içinde sadece {0} alanının NavigateUrlField değeriyle doldurulacağı string.Format yazımı ile aynı olan değer.</p>
<p>Son olarak oluşturduğumuz generic tag  listesini aspxCloudControl ün DataSource özelliğine atıyoruz, ve databind methodunu çağırıyoruz.</p>
<p>Böylece nurtopu gibi bir tag cloud umuz olmuş oluyor .</p>
<p><em>Örnekte anlatılanların koda dökülmüş hali aşağıdadır.</em></p>
<p><strong>default.aspx</strong> :</p>
<blockquote><pre class="brush: html;">

&lt;%@ Page Language=&quot;C#&quot; AutoEventWireup=&quot;true&quot; CodeBehind=&quot;Default.aspx.cs&quot; Inherits=&quot;Blog.DevexTagCloud._Default&quot; %&gt;

&lt;%@ Register Assembly=&quot;DevExpress.Web.v9.1, Version=9.1.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a&quot;
Namespace=&quot;DevExpress.Web.ASPxCloudControl&quot; TagPrefix=&quot;dxcc&quot; %&gt;

&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;

&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; &gt;
&lt;head runat=&quot;server&quot;&gt;
&lt;title&gt;&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;form id=&quot;form1&quot; runat=&quot;server&quot;&gt;
&lt;div&gt;
&lt;dxcc:ASPxCloudControl ID=&quot;ASPxCloudControl1&quot; runat=&quot;server&quot;&gt;
&lt;/dxcc:ASPxCloudControl&gt;
&lt;/div&gt;
&lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre>
</blockquote>
<p><strong>default.aspx.cs :</strong></p>
<blockquote><pre class="brush: csharp;">

using System;
using System.Collections.Generic;

namespace Blog.DevexTagCloud
{
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
List&lt;Tag&gt; myTags = new List&lt;Tag&gt;(10);
myTags.Add(new Tag(&quot;DevExpress&quot;,20));
myTags.Add(new Tag(&quot;Csharp&quot;,25));
myTags.Add(new Tag(&quot;Asp.Net&quot;,15));
myTags.Add(new Tag(&quot;Mono&quot;,5));
myTags.Add(new Tag(&quot;Objective-C&quot;,2));
myTags.Add(new Tag(&quot;Telerik&quot;,1));
myTags.Add(new Tag(&quot;Wcf&quot;,2));
myTags.Add(new Tag(&quot;TXTextControl&quot;,0));

ASPxCloudControl1.NameField = &quot;Name&quot;;
ASPxCloudControl1.TextField = &quot;DisplayName&quot;;
ASPxCloudControl1.ValueField= &quot;Count&quot;;
ASPxCloudControl1.NavigateUrlField = &quot;Name&quot;;
ASPxCloudControl1.NavigateUrlFormatString = &quot;http://www.yilmazyavuz.com/yyblog/index.php/tag/{0}/&quot;;

ASPxCloudControl1.DataSource = myTags;
ASPxCloudControl1.DataBind();
}
}
}
</pre>
</blockquote>
<p><strong>Tag.cs</strong> :</p>
<blockquote><pre class="brush: csharp;">

namespace Blog.DevexTagCloud
{
public class Tag
{
public Tag(string name, int count)
{
DisplayName = name;
Name = name.ToLower();
Count = count;
}

public int Count { get; set; }
public string DisplayName { get; set; }
public string Name { get; set; }
}
}
</pre>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.yilmazyavuz.com/yyblog/index.php/2010/05/devexpress-aspxcloudcontrol-ornek/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Lookupedit databind (veri bağlantılı)</title>
		<link>http://www.yilmazyavuz.com/yyblog/index.php/2008/11/lookupedit-databind-veri-baglantili/</link>
		<comments>http://www.yilmazyavuz.com/yyblog/index.php/2008/11/lookupedit-databind-veri-baglantili/#comments</comments>
		<pubDate>Sat, 29 Nov 2008 13:45:50 +0000</pubDate>
		<dc:creator>Yılmaz Yavuz</dc:creator>
				<category><![CDATA[Devexpress]]></category>
		<category><![CDATA[Developer Express]]></category>
		<category><![CDATA[LookUpEdit]]></category>

		<guid isPermaLink="false">http://www.yilmazyavuz.com/yyblog/?p=115</guid>
		<description><![CDATA[<p>Ufak bir örnek:</p>

        public static void LookupEditeVeriDoldur&#40;LookUpEdit lue&#41;
        &#123;
            //Burda datasource olarak datatable, list veya linq entityset ,table vb verebiliriz.
            <span style="color:#777"> . . . &#8594; Read More: <a href="http://www.yilmazyavuz.com/yyblog/index.php/2008/11/lookupedit-databind-veri-baglantili/">Lookupedit databind (veri bağlantılı)</a></span>]]></description>
			<content:encoded><![CDATA[<p>Ufak bir örnek:</p>

<div class="wp_syntax"><div class="code"><pre class="csharp csharp" style="font-family:monospace;">        <span style="color: #0600FF;">public</span> <span style="color: #0600FF;">static</span> <span style="color: #0600FF;">void</span> LookupEditeVeriDoldur<span style="color: #000000;">&#40;</span>LookUpEdit lue<span style="color: #000000;">&#41;</span>
        <span style="color: #000000;">&#123;</span>
            <span style="color: #008080; font-style: italic;">//Burda datasource olarak datatable, list veya linq entityset ,table vb verebiliriz.</span>
            lue.<span style="color: #0000FF;">Properties</span>.<span style="color: #0000FF;">DataSource</span> <span style="color: #008000;">=</span> VeriKaynagim.<span style="color: #0000FF;">Veri</span>;
            <span style="color: #008080; font-style: italic;">//EditValue içeriğine yazılacak veri kaynağındaki column/property</span>
            lue.<span style="color: #0000FF;">Properties</span>.<span style="color: #0000FF;">ValueMember</span> <span style="color: #008000;">=</span> <span style="color: #666666;">&quot;ID&quot;</span>;
            <span style="color: #008080; font-style: italic;">//Kullanıcı lookup dan bir şey seçtiği ve lookup kapandığında görünecek olan property/column. Boş bırakıldığında object.ToString() methodu çağırılır ve o şekilde görünür.</span>
            lue.<span style="color: #0000FF;">Properties</span>.<span style="color: #0000FF;">DisplayMember</span> <span style="color: #008000;">=</span> <span style="color: #666666;">&quot;ADI&quot;</span>;
            <span style="color: #008080; font-style: italic;">//Değer null olduğunda yani herhangi bir şey seçilmediği durumda görünecek olan yazı</span>
            lue.<span style="color: #0000FF;">Properties</span>.<span style="color: #0000FF;">NullText</span> <span style="color: #008000;">=</span> <span style="color: #666666;">&quot;&lt;Lütfen bir Ad Seçiniz&gt;&quot;</span>;
            <span style="color: #008080; font-style: italic;">//Önceden eklenmiş olabileceğini düşünüp lookup un columlarını siliyoruz</span>
            lue.<span style="color: #0000FF;">Properties</span>.<span style="color: #0000FF;">Columns</span>.<span style="color: #0000FF;">Clear</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
            <span style="color: #008080; font-style: italic;">//Veri kaynağından göstermek istediğimiz column/property leri Lookup'ın Columnlarına ekliyoruz</span>
            lue.<span style="color: #0000FF;">Properties</span>.<span style="color: #0000FF;">Columns</span>.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span><span style="color: #008000;">new</span> LookUpColumnInfo<span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;ADI&quot;</span>, <span style="color: #FF0000;">20</span>, <span style="color: #666666;">&quot;Kullanıcı Adı&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;
&nbsp;
        <span style="color: #000000;">&#125;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.yilmazyavuz.com/yyblog/index.php/2008/11/lookupedit-databind-veri-baglantili/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>PersistentRepository &#8211; Devexpress</title>
		<link>http://www.yilmazyavuz.com/yyblog/index.php/2008/11/persistentrepository-devexpress/</link>
		<comments>http://www.yilmazyavuz.com/yyblog/index.php/2008/11/persistentrepository-devexpress/#comments</comments>
		<pubDate>Tue, 11 Nov 2008 14:06:44 +0000</pubDate>
		<dc:creator>Yılmaz Yavuz</dc:creator>
				<category><![CDATA[Devexpress]]></category>
		<category><![CDATA[Developer Express]]></category>
		<category><![CDATA[LookUpEdit]]></category>
		<category><![CDATA[PersistentRepository]]></category>
		<category><![CDATA[RepositoryItem]]></category>

		<guid isPermaLink="false">http://www.yilmazyavuz.com/yyblog/?p=95</guid>
		<description><![CDATA[<p>PersistentRepository , Aynı işi gören bir çok repositoryItem ı farklı yerlerde kullanmanız için geliştirilmiş bir control dür.
Şöyleki Sehir RepositoryItemLookUpEdit iniz olsun ve bunu aynı form üzerindeki 3 adet GridControl 1 adet VGridControl de kullandığınızı düşünelim. Hepsinin kendi içinde rlkSehir1,rlkSehir2 gibi oluşturmak yerine bir tane PersistentRepository içinde oluşturuyoruz ve gridlerin ExternalRepository property sine gidip PersistentRepository imizi verelim. <span style="color:#777"> . . . &#8594; Read More: <a href="http://www.yilmazyavuz.com/yyblog/index.php/2008/11/persistentrepository-devexpress/">PersistentRepository &#8211; Devexpress</a></span>]]></description>
			<content:encoded><![CDATA[<p>PersistentRepository , Aynı işi gören bir çok repositoryItem ı farklı yerlerde kullanmanız için geliştirilmiş bir control dür.<br />
Şöyleki Sehir RepositoryItemLookUpEdit iniz olsun ve bunu aynı form üzerindeki 3 adet GridControl 1 adet VGridControl de kullandığınızı düşünelim. Hepsinin kendi içinde rlkSehir1,rlkSehir2 gibi oluşturmak yerine bir tane PersistentRepository içinde oluşturuyoruz ve gridlerin ExternalRepository property sine gidip PersistentRepository imizi verelim. Artık Gridlerin kolonlarındaki ColumnEdit propertysinde kendi In-Place Repository sinde olmamasına rağmen rlkSehir RepositoryItemLookUpEdit ini görebiliyoruz.</p>
<p>Böylece hem  performans kazancı sağlıyor hemde her biri için ayrı ayrı düzenleme yapma zahmetinden kurtuluyoruz.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.yilmazyavuz.com/yyblog/index.php/2008/11/persistentrepository-devexpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

