Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
81 views

Can we create our own radcontrol template, or edit exist one?

Thanks

Gilberto
Missing User
 answered on 02 Apr 2009
2 answers
362 views
Hello,

I have the following issue. I have a radgrid (for ASP.NET AJAX) which has many detail tables - a whole multilevel hierarchy. I go and ad a new entry to one of the detail tables - the adding is taking place in a RadWindow which calls my "ADD" page. When the radwindow closes I need to refresh that detail table which I just updated.

But I need the whole hierarchy to stay open.

 I tried envoking __doPostback on the update panel within which the RadGrid is placed, but it seems that each detail table has its own dynamically added update panel and thus I can't postback it at will. Or can I?

For I found the way to call rebind() on the table in question, only it doesn't reflect on the page for it's not refreshed...

Is there a solution for my problem. Even if it takes to reload the grid or the whole page - i don't care as long as I can track back to the table I was starting with and have it open with the newly added value...

Thanks a lot!
Alexei
Top achievements
Rank 1
 answered on 02 Apr 2009
3 answers
300 views
Hi,

I’m upgrading our solution from the classic controls to the Ajax.Net controls and have a problem with the following scenario:
On one page, I have several user controls which each have a grid that I want to refresh individually, from a js call.
With the old controls, I would just enable Ajax for the grid and then do Ajax requests like this
window['<%=grid.ClientID%>'].AjaxRequest('<%=this.UniqueID%>', args); 

Now, I only have one Ajax manager, so in the user control I get a reference and then subscribe to the AjaxRequest event. To get the grid to refresh I have to add ajax settings.
RadAjaxManager manager = RadAjaxManager.GetCurrent(Page); 
manager.AjaxRequest += manager_AjaxRequest; 
manager.AjaxSettings.AddAjaxSetting(manager, grid); 

This works fine, in the manager_AjaxRequest function I check the argument and only do something if it is the right request.
But since I added the grid to the AjaxSettings it will get updated on the client every time, even if it doesn’t have to. So if I only want grid A to upgrade how do I prevent Grid B from updating as well? Both subscribe to the same AjaxRequest event and both need to have AjaxSettings.
A workout I found is using a hidden button and then using the ajaxRequestWithTarget to pretend the button was causing the update, but there must be a better way to do it.
Any help on this would be appreciated.
Cheers
Sebastian
Telerik team
 answered on 02 Apr 2009
1 answer
150 views
I need to change font size and font color in RadUpload control. I can change skin, but it has no effect. Whatever I do in skin, control is always the same. I also tried to put some of those classes (from skin) in my css file with !important to override. But control is still the same. I can't figure out why it cannot be changed.
Veselin Vasilev
Telerik team
 answered on 02 Apr 2009
1 answer
93 views

Hi,

I am using RadGrid with inline insert/edit option.
Here i am using radgrid edit mode as EditMode="PopUp".
I am showing two date in grid as 'StartTime' and 'Endtime'.
In Edit mode i using RadDateTimePicker for 'Starttime' and 'EndTime' field.

Here I want to set the 'EndDate' same as "StartDate' , when 'StartDate' get selected in Editmode.


Thanks,
Sebastian
Telerik team
 answered on 02 Apr 2009
3 answers
133 views
Hi,

   I have two RadGrids. Grid1 is populated with fields and has edit column. On row click of Grid1 i have to populate fileds for Grid2. Everything is going fine. But the problem is on edit (command column) column click control was not directed to edit form but it was directed to rowclick event.
 
  When i click on edit it should be directed to edit form and when i click on other columns Grid2 should populate. Any one give me an idea please.

On row click i am writing this event :
protected void RadGrid1_ItemCommand(object source, GridCommandEventArgs e)
        {
            if (e.CommandName == "RowClick" && e.Item is GridDataItem && i == 1)
            {
                GridEditableItem editedItem = e.Item as GridEditableItem;
                int workFlowStepId = Convert.ToInt32(editedItem.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["WorkFlowStepId"]);

                RadGrid2.Visible = true;
                RadGrid2.DataSource = WorkFlowProxy.GetWorkFlowStepDeliverables(workFlowStepId);
                RadGrid2.DataBind();
            }
        }


Thanks
Nagarjun S.
nagarjun
Top achievements
Rank 1
 answered on 02 Apr 2009
1 answer
59 views
Can I export a schedule appointment to Novell Groupwise using RadScheduler?

Thanks,

David
Atanas Korchev
Telerik team
 answered on 02 Apr 2009
1 answer
103 views
How come my grid view header doesn't expand fully to 100% in IE 7 but works fine in FIrefox?
Shinu
Top achievements
Rank 2
 answered on 02 Apr 2009
6 answers
152 views
Well before I put up the questions, thanks a lot to telerik teams and members, you people rocks..

I am having 2 problems

1. I need to make interactions between my RadWindows.
Suppose I am having a treeview and now I drag and dropped 3 or 4 radwindows in my div or zone. Now whenever I change some thing in one of my window then other radwindows should reflect the changes as per 1st one. Is that any possible way to track those things?

2. Track Reload event in RadWindows.
I need to track the Reload event of RadWindow. what exactly I want to achive is this. Suppose I dragged and dropped radwindow in my zone, I given the link as www.telerik.com, suppose I click reload button in top right corner is their any chances that I redirect the page to www.google.com i.e at load of radwindow (i.e. whenever I am dragging and dropping the radwindows ) it should open www.telerik.com but after hitting reload button it will redirect to www.google.com. Is this possible to do?

Reply awaited.
Thanks in advance!!!
Arindam Roy
Arindam
Top achievements
Rank 1
 answered on 02 Apr 2009
2 answers
97 views
i face aproblem when i try to make tree view bind from object data source
here it is my class

public

class treeViewClass

 {

 

 

#region

Variables

 

 

int _FiledId;

 

 

string _Value;

 

 

int? _ParentId;

 

 

string _FieldText;

 

 

string _FieldURL;

 

 

#endregion

#region

Properties

 

 

public int FiledId

{

 

get { return _FiledId; }

 

set { _FiledId = value; }

 

 }

 

public int? ParentId

 

 {

 

get { return _ParentId; }

 

 

set { _ParentId = value; }

 

 }

 

public string FieldText

 

 {

 

get { return _FieldText; }

 

 

set { _FieldText = value; }

 

 }

 

public string FieldURL

 

 {

 

get { return _FieldURL; }

 

 

set { _FieldURL = value; }

 

 }

 

public string Value

 

 {

 

get { return _Value; }

 

 

set { _Value = value; }

 

 }

 

#endregion

#region

Methods

 

 

public static List<treeViewClass> BuildTree()

{

 

List<treeViewClass> treeList = new List<treeViewClass>();

 

 

treeViewClass tree = new treeViewClass();

tree.FiledId = 1;

tree.ParentId =

null;

 

 tree.FieldText =

"E-Mail Sites";

 

 tree.FieldURL =

"";

 

 tree.Value =

"";

 

 treeList.Add(tree);

tree =

new treeViewClass();

 

 tree.FiledId = 4;

tree.ParentId = 1;

tree.FieldText =

"Yahoo";

 

 tree.FieldURL =

"http://www.yahoo.com";

 

 tree.Value =

"Yahoo";

 

 treeList.Add(tree);

tree =

new treeViewClass();

 

 tree.FiledId = 4;

tree.ParentId = 1;

tree.FieldText =

"Google";

 

 tree.FieldURL =

"http://www.Gmail.com";

 

 tree.Value =

"GMail";

 

 treeList.Add(tree);

 

tree =

new treeViewClass();

 

 tree.FiledId = 2;

tree.ParentId =

null;

 

 tree.FieldText =

"Search Sites";

 

 tree.FieldURL =

"";

 

 tree.Value =

"";

 

 treeList.Add(tree);

tree =

new treeViewClass();

 

 tree.FiledId = 5;

tree.ParentId = 2;

tree.FieldText =

"Google";

 

 tree.FieldURL =

"http://www.Google.com";

 

 tree.Value =

"GMail";

 

 treeList.Add(tree);

tree =

new treeViewClass();

 

 tree.FiledId = 6;

tree.ParentId = 2;

tree.FieldText =

"Ask It";

 

 tree.FieldURL =

"http://www.askit.com";

 

 tree.Value =

"AskiIt";

 

 treeList.Add(tree);

tree.FiledId = 3;

tree.ParentId =

null;

 

 tree.FieldText =

"Funny Sites";

 

 tree.FieldURL =

"";

 

 tree.Value =

"";

 

 tree =

new treeViewClass();

 

 tree.FiledId = 7;

tree.ParentId = 3;

tree.FieldText =

"Mini Clip";

 

 tree.FieldURL =

"http://www.MINICLIP.com";

 

 tree.Value =

"MINI";

 

 treeList.Add(tree);

tree =

new treeViewClass();

 

 tree.FiledId = 8;

tree.ParentId = 3;

tree.FieldText =

"Yalla Kora";

 

 tree.FieldURL =

"http://www.YallaKora.com";

 

 tree.Value =

"Kora";

 

 treeList.Add(tree);

 

 

return treeList;

 

}

 

#endregion

 

}

when i use object data source Like The Following  

 

 

 

<telerik:RadTreeView ID="RadTreeView1" Runat="server" DataFieldID="FiledId" 

 

DataFieldParentID="ParentId" DataNavigateUrlField="FieldURL"

 

 

DataSourceID="ObjectDataSource1" DataTextField="FieldText"

 

 

DataValueField="Value" Skin="Web20">

 

 <

CollapseAnimation Type="OutQuint" Duration="100"></CollapseAnimation>

 

 <

ExpandAnimation Duration="100"></ExpandAnimation>

 

 

</telerik:RadTreeView>
 

 

<asp:ObjectDataSource ID="ObjectDataSource1" runat="server"  

 

SelectMethod="BuildTree" TypeName="treeViewClass"></asp:ObjectDataSource>

the tree not appear in the write way Like This

all appear like Parent Node

Please Help me
Or i will become acrazy MAN

 

 

 

 

Veselin Vasilev
Telerik team
 answered on 02 Apr 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?