SPSite mySite = SPContext.Current.Site; SPWeb web = mySite.OpenWeb(); SPList lststudent = web.Lists["Registration|Form"]; var students = from SPListItem student in lststudent.Items where student["Reference ID"].ToString() == RadTextBox1.Text || student["EID"].ToString() == RadTextBox1.Text select new { FullName = student["Reference Name"].ToString(), ReportsTo = student["Reference ID"].ToString(), EmployeeID = student["EID"].ToString() }; RadOrgChart1.DataSource = students; RadOrgChart1.DataBind();<telerik:RadOrgChart runat="server" ID="RadOrgChart1" DataFieldID="EmployeeID" DataFieldParentID="ReportsTo" DataTextField="FullName"></telerik:RadOrgChart><script type="text/javascript"> function ItemsRequesting(sender, args) { var context = args.get_context(); context["FilterString"] = args.get_text(); debugger; }</script>
<telerik:RadScriptManager ID="RadScriptManager1" runat="server"> <Scripts> <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js"> </asp:ScriptReference> <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js"> </asp:ScriptReference> <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js"> </asp:ScriptReference> </Scripts> </telerik:RadScriptManager> <telerik:RadComboBox runat="server" ID="RadComboBox1" Height="100px" EnableLoadOnDemand="true" ShowMoreResultsBox="true" EnableVirtualScrolling="true" EmptyMessage="Type here ..." OnClientItemsRequesting="ItemsRequesting"> <WebServiceSettings Path="WcfDataService1.svc" Method="LoadData" /></telerik:RadComboBox>[ServiceContract(Namespace = "")] [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)] public class WcfDataService1 { [OperationContract] public RadComboBoxData LoadData(RadComboBoxContext context) { // Where is my context :-) } }RadComboBoxContext context in the WebService is always null. protected void btnSearch_Click(object sender, EventArgs e) { Session["SearchKontakti"] = "1"; }protected void gvKontakti_PreRender(object sender, EventArgs e) { int idKontakt = Convert.ToInt32(Request.QueryString["idk"]); if (Session["SearchKontakti"] == "1") { var kontakti = from k in db.Kontakt select k; int idTipUsera = Convert.ToInt32(rcbTipUsera.SelectedValue); int idTvrtka = Convert.ToInt32(rcbTvrtka.SelectedValue); if (rcbTvrtka.SelectedValue != "0") { kontakti = kontakti.Where(k => k.idFirma == idTvrtka); } if (rcbTipUsera.SelectedValue != "0") { kontakti = kontakti.Where(k => k.idOvlasti == idTipUsera); } if (chkAktivan.Checked == true) { kontakti = kontakti.Where(k => k.Aktivan == true); } else { kontakti = kontakti.Where(k => k.Aktivan == false); } int idAuthKontakt = Convert.ToInt32(Session["authenticatedUI"]); if (idKontakt > 0 && idAuthKontakt == idKontakt) { gvKontakti.DataSource = from k in kontakti where k.idKontakt == idKontakt orderby k.Prezime, k.Ime select new { Tvrtka = k.Firma.Naziv, k.idKontakt, Naziv = k.Ime + " " + k.Prezime, Funkcija = k.Funkcija, k.Ime, k.Prezime, k.Tel1, k.Tel2, k.Mob1, k.Mob2, k.Email1, k.Email2, k.Fax, k.Adresa1, k.Adresa2, k.Adresa3, k.Grad, k.PostanskiBroj, k.Drzava, k.Biljeske, k.Aktivan, k.Username, k.Password }; } else if (idKontakt > 0 && idAuthKontakt != idKontakt) { gvKontakti.DataSource = from k in kontakti where k.idKontakt == idKontakt orderby k.Prezime, k.Ime select new { Tvrtka = k.Firma.Naziv, k.idKontakt, Naziv = k.Ime + " " + k.Prezime, Funkcija = k.Funkcija, k.Ime, k.Prezime, k.Tel1, k.Tel2, k.Mob1, k.Mob2, k.Email1, k.Email2, k.Fax, k.Adresa1, k.Adresa2, k.Adresa3, k.Grad, k.PostanskiBroj, k.Drzava, k.Biljeske, k.Aktivan, k.Username, k.Password }; } else { gvKontakti.DataSource = from k in kontakti orderby k.Prezime, k.Ime select new { Tvrtka = k.Firma.Naziv, k.idKontakt, Naziv = k.Ime + " " + k.Prezime, Funkcija = k.Funkcija, k.Ime, k.Prezime, k.Tel1, k.Tel2, k.Mob1, k.Mob2, k.Email1, k.Email2, k.Fax, k.Adresa1, k.Adresa2, k.Adresa3, k.Grad, k.PostanskiBroj, k.Drzava, k.Biljeske, k.Aktivan, k.Username, k.Password }; } gvKontakti.DataBind(); } }
RadEditor Styles issue:
I am using RadEditorSharePoint
(5.8.11.0) in my SharePoint2010 environment. I am facing this weird issue with
RadEditor styles.
1. Type some text in RadEditor while SharePoint
page is in edit mode.
2. Before applying RadEditor styles to the text I
see following styles:
a. a. Notice the class applied to the DIV: reContentArea, reContentAreaToggle.
b. Also, notice overflow:auto property.
3. Now, select the text in the RadEditor and change the style using RadEditor menu.
4. After changing the styles, following is observed:
Attachment 2
a. Notice now the class applied to DIV. It is “ms-rteStyle-Caption”.
b. Also, overflow:auto property is missing.
5. After this particular operation, if we type extended text in the RadEditor, it overlaps of the other content of the page. (Because overflow property no more exists in styles)
Need your inputs on this issue.
