Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
162 views
Hello,

I hope someone can help me with my issues I've got.
First of all I'll try to explain what I've got.

I've got a Telerik RadGrid built into a WebPart. This radgrid has a SharePoint list as a datasource. At the moment there is no need to edit or delete any items from the sharepoint list via the RadGrid. I was able to set paging on and some filter methods.

Now my goal is to have the same RadGrid in the SharePoint WebPart, but now AJAX-enabled.
Especially the paging should be handled with AJAX. I think I've read about every article on this website and just can't seem to find any good documentation how to ajax-enable a telerik radgrid.

I've read this article
http://www.telerik.com/help/aspnet-ajax/create-ajax-enabled-sharepoint-webpart-radcontrols.html
and was able to get this timer update to work.  I just can't seem to find a way how to enable my RadGrid for AJAX.

It seems that all the information out there is based on web applications with a designer mode.

I've also tried the Telerik SharePoint demo (http://sharepoint.telerik.com/Pages/default.aspx) and analyzed the code, but it seems that this too is not built into a webpart.

I hope you can help me with this issue. And I gave enough information about my problem.
Thanks in advance for helping me

Paul



Yavor
Telerik team
 answered on 07 Dec 2009
3 answers
117 views
Hi all,

How can I set the HeaderText based on a Property instead of hardcode it?

If I e.g. has property in my cs-file called "EnglishHeader" like this:

public string EnglishHeader 
    get 
    { 
        return "My english header"; 
    } 

And want to get it in the aspx-file something like:

<telerik:GridBoundColumn DataField="OrderNumber" HeaderText="<%= EnglishHeader %>" /> 

Best regards,
Kenneth
Princy
Top achievements
Rank 2
 answered on 07 Dec 2009
3 answers
263 views
Hi Team,

I am using 2009 version of Telerik dll. We have minimum height provision for the
RadDockZone , and we can set it by MinHeight property.

In my application, I want whenever I am resizing any Dock control its height should be set to minimum "100px".

For Example:
In I am expanding any Dock control, then I am removing its height property so that it will be exanded to the contents height. This works fine when content is large.
But Conside the case where dock contains only 1 line. In the case height is set the auto i.e. very less pixel.
I tried access height in DockInit event its is giving null as we are removing height while expanding.

Do we have any provision of setting height to some minimum valye?

 

Pero
Telerik team
 answered on 07 Dec 2009
1 answer
111 views
I am trying to overcome the cross domain issue. Could you tell if it is possible to use the Window control to open up google, then search for a web site and go to it, then once I close the window, pass the URL back to the calling page.
Georgi Tunev
Telerik team
 answered on 07 Dec 2009
1 answer
121 views
Hi,

I am using the radgrid control with row/column resize turned on. When the grid is rendered on screen i could see an empty column getting added(As the very first column).

On pre_render event though i am not abe to get a handle to this column, since i would like to put some data in this first column.

Is there way by which either i could hide this first columnt getting created or put value into that column.

(e.Item as GridDataItem)[(RadGrid1.MasterTableView.AutoGeneratedColumns[0] as GridBoundColumn).UniqueName] on item created event gives me the columns i had inserted in the dataset and associated to grid.

Any help would be appreciated.

Thanks
Rohith
Pavlina
Telerik team
 answered on 07 Dec 2009
2 answers
94 views
Hello,

         I am using NestedRadGrid in my application.
         The MasterTableGrid is bound inside NeedDataSource event.
         Also, the NestedRadGrid is bound on the the RadGrid1_DetailTableDataBind() Event.

         I am getting data from the database, in which I have one column COMPLETE/INCOMPLETE.
         So, I want to mark that column text as BLUE when COMPLETE & RED when INCOMPLETE in NestedRadGrid.


        Please reply me as Soon as Possible,




Thanks,
Kunal Govani
       
kunal patel
Top achievements
Rank 1
 answered on 07 Dec 2009
15 answers
205 views
I'm sorry. Something is wrong with my internet connection I've posted thread few times.
Yavor
Telerik team
 answered on 07 Dec 2009
1 answer
120 views
how can i change text and tool tip of editor?
i wanna change text of something for example when mouse over some object like Bold show thing that i wanna.
how can i do ?

tnx guys
Martin
Telerik team
 answered on 07 Dec 2009
1 answer
79 views
Hi all
I has trying to addColumns Dinamycally to a RadGrid
Here is the Code Snippet
 protected void Page_Load(object sender, EventArgs e) 
        { 
            if (!IsPostBack) 
            { 
                // SET GRID VIEW 
                setGridEvoColumns(RadGridEvoStats); 
            } 
        } 
 
public void setGridEvoColumns(RadGrid Grid,ArrayList years, DataTable Source) 
        { 
 
            GridBoundColumn boundColumn; 
            GridTemplateColumn gtc; 
            StatsColumn sc; 
            StatsColumnHeader sch; 
 
 
            boundColumn = new GridBoundColumn(); 
            Grid.MasterTableView.Columns.Add(boundColumn); 
            boundColumn.HeaderText = "Country"
            boundColumn.DataField = "Country"
            boundColumn.UniqueName = "Country"
 
 
 
            string sufix = ""
            foreach (string year in years) 
            { 
                sufix = "_" + year; 
 
                gtc = new GridTemplateColumn(); 
                sc = new StatsColumn(); 
                sch = new StatsColumnHeader(); 
                 
                Grid.MasterTableView.Columns.Add(gtc); 
                 
                gtc.HeaderTemplate = sch
                gtc.ItemTemplate = sc
                 
            } 
        } 

I create a custom Header and ItemTemplate to the GridTemplateColumn

The Problem is when there are a PostBack on Page the TemplateColumns are cleared (lost their header values as Item values), but bound columns mantain theirs values and Headers.
I'm using NeedDataSource Event to Bound The Grid Also.

I Have already read this Article but it does not have an example with TemplateColumn.

Can anyone help me with this?

Thanks In Advance


Vlad
Telerik team
 answered on 07 Dec 2009
1 answer
137 views
Hi All,
I found that when I put a custom user control(I call it Parent User Control below) between <NestedViewTemplate ></NestedViewTemplate >.
And the Parent User Control also have another User Control(I call it Children User Control). The Children User Control has some script code between <RadCodeBlock ></RadCodeBlock >. But when the RadGrid renders, I found that the Children User Control's script code between <RadCodeBlock ></RadCodeBlock > can't be loaded? Could anyone tell me how to solve this problem? Thank you in advance.

My Code:

......
<
NestedViewTemplate > 
       <Test:TaskControl ID="TaskControlMain" runat="server" /> 
</NestedViewTemplate>
........

Parent User Conrol "TaskControl.ascx":

<DIV>
<Test:flowAssignee ID="Assignee" runat="server" />
<DIV>
 

Children User Control "flowAssignee.ascx":

<DIV> 
<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server"
    <script type="text/javascript"
         function checkAssignee() 
         { 
            alert("2323") 
         }  
</script> 
</telerik:RadCodeBlock> 
<div> 
    <telerik:RadTextBox ID="Relationship" runat="server" onblur="checkAssignee" Width="200" /> 
</div> 
 
 
Vlad
Telerik team
 answered on 07 Dec 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?