Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
161 views
Hi,
We have a requirement as follows:

1. We have a WCF service which fetches data from the database.
2. We are using IEnumerable Collection (custom class with properties) object to bind to the Visual Web Part GridView.
3. We want to replace this Gridview with Telerik Rad Grid.
4. The Data collection object need to be displayed in hierarchy.
Eg;
a. WCF Service Method -> GetAll_Employees();
b. public class Employees
{
public int ID;
public string Name;
public string Address;
public int ReportToID;
}
c. The WCF Service returns the IEnumberable<Employees> object to the WebPArt UI.
d. The employee details should be displayed with the Reporting Officer details and the employees reporting to the person as the child collection.
eg;      Reetha    India
                 Geetha    India
                  Meena     India
            Jaya K        India
here Reetha and Jaya K are the employees at the root node and Geetha and Meena are the employees reporting to Reetha , so shown as child. The relation is the ReportToID property in the Employees class.
 
How we can display this in the RadGrid with child and parent and also with an IEnumerable Collection object returned from the WCF as binding data source. Also this need to be done in a Custom Visual Webpart in SP 2010.

Thanks in advance.
Veena R

Tsvetoslav
Telerik team
 answered on 07 Feb 2012
1 answer
68 views
I am using two buttons exactly as shown at your page. Also the code is same. I have one asp server label control also on my page. In the
following function, my custom code won't execute:

protected
void RadAjaxManager1_AjaxRequest(object sender, Telerik.Web.UI.AjaxRequestEventArgs e) { lblstatus.Text="Text is changed"; RadAjaxManager1.Alert("AjaxRequest raised from the " + e.Argument); }

The label text is not getting changed.

HELP!!!!!!!!
Mira
Telerik team
 answered on 07 Feb 2012
2 answers
77 views
This is my radedtor code.  when I enter this content : "İÖÜÇŞĞ ! + = . ; :"
result is : %3cspan style%3d%22font-family%3a arial%3b font-size%3a 13px%3b%22%3e%3cstrong%3eİÖÜÇŞĞ %21 %2b %3d . %3b %3a%3c/strong%3e%22 %3c/span%3e
how can fix this? I double checked all pages and config files. tryed many combination of content filters. what is wrong?

Editor Code :
Input : "İÖÜÇŞĞ ! + = . ; :"
Telerik.Web.UI.RadEditor RadControlWrite = new Telerik.Web.UI.RadEditor();
            RadControlWrite.ContentFilters = EditorFilters.DefaultFilters;
            RadControlWrite.DisableFilter(EditorFilters.ConvertCharactersToEntities);
            RadControlWrite.Width = 450;
            RadControlWrite.Height = 150;
            RadControlWrite.AutoResizeHeight = true;
            RadControlWrite.ToolsFile = "~/Manage/ResourceToolbar.xml";
            RadControlWrite.CssFiles.Clear();
            RadControlWrite.CssFiles.Add(new EditorCssFile("~/App_Themes/" + ConfigurationManager.AppSettings["Default_Theme"].ToString() + "/typography.css"));
            RadControlWrite.ToolbarMode = Telerik.Web.UI.EditorToolbarMode.Default;
            RadControlWrite.EditModes = EditModes.All;
            RadControlWrite.ID = "RadEditor" + IDCount.ToString();
            if (Object.Equals(SecondRadControl, null)) { SecondRadControl = RadControlWrite; } else { RadControlWrite.ToolProviderID = SecondRadControl.ID; }
 
            // Custom Translater Tool -----------------
            EditorToolGroup RadControlToolGroup = new EditorToolGroup();
            EditorDropDown TranslateDropDown = new EditorDropDown("TranslateTool");
            TranslateDropDown.Items.Add(new EditorDropDownItem("Türkçe","tr"));
            TranslateDropDown.Items.Add(new EditorDropDownItem("English","en"));
            RadControlToolGroup.Tools.Add(TranslateDropDown);
            RadControlWrite.Tools.Add(RadControlToolGroup);
 
            phResourceEditor.Controls.Add(RadControlWrite);

Saving Function
Output :   

Request.Form[string.Format("ctl00$ManageMasterContent$RadEditor{0}", IDCount)].ToString() 

"%3cspan style%3d%22font-family%3a arial%3b font-size%3a 13px%3b%22%3e%3cstrong%3eİÖÜÇŞĞ %21 %2b %3d . %3b %3a%3c/strong%3e%22 %3c/span%3e" string
int IDCount = 1;
foreach (System.Collections.Generic.KeyValuePair<string, string> ResourceDictionaryEntry in ResourceItems)
{
    RW.AddResource(ResourceDictionaryEntry.Key.ToString(), Request.Form[string.Format("ctl00$ManageMasterContent$RadEditor{0}", IDCount)].ToString() /** Important : if masterpage chanced this value can be null **/ );
    IDCount++;
}


Rumen
Telerik team
 answered on 07 Feb 2012
0 answers
113 views
Hello,

I have a RadGrid with different Tabs, here is the code for it.

<telerik:RadTabStrip ID="tabStrips" runat="server" MultiPageID="rmpStrips" >
        <Tabs>
            <telerik:RadTab></telerik:RadTab>
            <telerik:RadTab></telerik:RadTab>
            <telerik:RadTab></telerik:RadTab>
            <telerik:RadTab></telerik:RadTab>
        </Tabs>
</telerik:RadTabStrip>

I want to also have filters, for each radgrid in the tabs. Is it possible? if yes, how?

I appreciate your response.

Thanks,
Saquib

Saquib
Top achievements
Rank 1
 asked on 07 Feb 2012
1 answer
84 views

Hi -- I have a RadComboBox on parent page.  When I click a button on the page, it opens up a Popup.  The Popup builds a string and populates a TextBox with it.  When user closes the Popup, I want this string to be added to the RadComboBox on the parent page.  I can't seem to be able to pass this string to the parent page.  If I use a TextBox instead of RadComboBox, I can update it from the client code on OnClientClose event but there doesn't seem to be a way to access RadBoxComboItems in client code.

I tried using the code posted in some demos such as "var comboboxItem = new Telerik.Web.UI.RadComboBoxItem()".
But even though I have "<%@ Register Assembly='Telerik.Web.UI' Namespace='Telerik.Web.UI' TagPrefix='telerik' %>, it complains that "Telerik" is not defined.  We are using Telerik Rad controls version "Q1-2010". 

If we cannot create RadComboBoxItem in client code using this method described in the demo for this verison of telerik, is there any other way to do what I am trying to do?

Thanks
Sandhia
Ivana
Telerik team
 answered on 07 Feb 2012
1 answer
70 views
Hi

We have the radscheduler running in a webpart in Sharepoint 2010
http://dcsite.activclient.com/Pages/Events-Calendar.aspx

however after navigating through a month or two none of the links work anymore?

kind

Plamen
Telerik team
 answered on 07 Feb 2012
3 answers
68 views
How can I select rows in RadGrid through the up / down arrows?Sorry for bad english .. Help ... 
Tsvetoslav
Telerik team
 answered on 07 Feb 2012
0 answers
55 views
Hello,

I use a third party tool (NPOI) with RadGrid to export both rows and charts (images) into Excel. When user clicks to a button it exports the populated data in RadGrid1 which is only Page1. I need to export all the pages in this RadGrid, not only the page RadGrid has been populated. (I can direct connect datatable to NPOI but in this case RadGrid1 related functions like Filtering, Sorting won't work so this is not a solution)

So, how can I export all the pages in a RadGrid but not only the populated page into Excel? I don't use Telerik export method...Any Ideas?

Thank you,
Ervin

ervin
Top achievements
Rank 1
 asked on 07 Feb 2012
1 answer
79 views
Hello,

I have a RadGrid that I'm binding dynamically with different data table based on the choice customer makes but when I "enable" the ViewStateMode of the RadGrid to maintain the filter value, paging messes up.

If I am on page 3 of RadGrid with DataTable "A" then when the datasource of RadGrid is changed to Data Table "B" it shows page 3 instead of page 1. Also, the forward buttons of the pager changes the page but numeric button 2 stays highlighted even if I have clicked 7 times..

Please help!

Best Regards,
Effat
Tsvetoslav
Telerik team
 answered on 07 Feb 2012
4 answers
252 views

CommandItemDisplay

="Bottom" property adds the  "Add new record" and "Refresh" button by default.

But my requirement is want to display only the Refresh button.
The Add New Record Text and Image is not required.

How can i accomplish this??

Kindly help me...

Tsvetoslav
Telerik team
 answered on 07 Feb 2012
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?