Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
64 views
I like to add some kind of lines for specific dates in the time line view (see attachment).

Does anyone has an idee on how to accomplish this?

Peter
Telerik team
 answered on 05 Jul 2010
4 answers
150 views
Hi, I'm using RadGrid for inserting and updating data. I have enabled AutoGenerateEditColumns to true. But when I edit data, its not updating the data back. I have a stored procedure to update data in the business layer and from

RadGrid1_ItemUpdated

event i'm calling that function. But control is not going inside  RadGrid1_ItemUpdated event. I'm binding the grid dynamically from oracle database. Any help would be appreciated.
Aspx:

 

<

 

asp:UpdatePanel ID="UpdatePanel1" runat="server">

 

 

 

 

 

<ContentTemplate>

 

 

 

 

 

<telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="True" PageSize="5"

 

 

Width="612px" AutoGenerateEditColumn="True"

 

 

oniteminserted="RadGrid1_ItemInserted" onitemupdated="RadGrid1_ItemUpdated"

 

 

onneeddatasource="RadGrid1_NeedDataSource">

 

 

 

 

 

<PagerStyle AlwaysVisible="True" />

 

<

 

MasterTableView>

 

<

 

RowIndicatorColumn>

 

<

 

HeaderStyle Width="20px"></HeaderStyle>

 

</

 

RowIndicatorColumn>

 

<

 

ExpandCollapseColumn>

 

<

 

HeaderStyle Width="20px"></HeaderStyle>

 

</

 

ExpandCollapseColumn>

 

 

 

 

 

<PagerStyle AlwaysVisible="True" />

 

</

 

MasterTableView>

 

 

 

 

 

<EditItemStyle BackColor="#FFFF66" BorderColor="Black" BorderStyle="Solid" />

 

 

 

 

 

</telerik:RadGrid>

 

 

 

 

 

</ContentTemplate>

 

 

 

 

 

</asp:UpdatePanel>

 


aspx.cs file:

protected

 

void RadGrid1_ItemUpdated(object source, Telerik.Web.UI.GridUpdatedEventArgs e)

 

{

 

if (e.Item is GridEditFormItem && e.Item.IsInEditMode)

 

{

BAL.

BAL balobj = newBAL.BAL();  //Business layer object

 

 

int flag = 0;

 

 

GridEditableItem item = (GridEditableItem)e.Item;

 

 

string cty = item.GetDataKeyValue("city_name").ToString();

 

 

string id = item.GetDataKeyValue("city_id").ToString();

 

 

//calling validation function

 

flag = balobj.validate_cityName(cty);

 

if (flag == 0)

 

{

balobj.New_City_Name = cty;

balobj.City_Id = int.Parse(id);

 

balobj.city_modify();

}

 

else

 

{

Label1.Visible =

true;

 

Label1.Text =

"<script>alert('City name already exists')</script>";

 

}

}

}

Pavlina
Telerik team
 answered on 05 Jul 2010
5 answers
119 views
Hi,
I am trying out ASP.NET Ajax RadControls and have an issue with ajaxifying a specific control on a sub ASCX control.

I have ajaxified the buttons on the main page ok. But no matter what I have tried on the sub ASCX i cannot get the radcombobox to fire the onselectedindexchanged event.

The heirarchy is as follows...
- Default.aspx
    - Content_RegistrationLookup.ascx
        - Sub_VehicleBrowser.ascx
            - RadComboBox_Make (this is the control I wish to ajaxify to update RadComboBox_Model)

So there are two nested ascx controls. I have tried the following...

 

  • Putting this on the Page_Load event of Sub_VehicleBrowser.ascx to add the ajax setting to the main page manager

RadAjaxManager.GetCurrent(Page).AjaxSettings.AddAjaxSetting(RadComboBox_Make, RadComboBox_Model, RadAjaxLoadingPanel1)

 

  • Using a RadAjaxManagerProxy with the same setting as coded above in the Sub_VehicleBrowser.ascx control
  • Wrapping the RadComboBoxes in Panels and using the Panels as the update controls in RadAjaxManager

The entire visual studio 2010 project so far can be downloaded here http://www.ignitioncarparts.co.uk/cpc.zip.

I would be very grateful for any help.

Thanks,
Lee

Tsvetoslav
Telerik team
 answered on 05 Jul 2010
4 answers
125 views
So within my project I have an aspx page with one RadDockZone and three RadDocks within. Inside each RadDock is a web user control containing a TabStrip. Within each tab are two RadGrids. If I only drop the controls on the page and set the bare minimum to get the grids populated, it takes around a minute or so for the page to even appear. This is to be expected with the sheer number of grids that are just loading whether they can be seen (remember, they're in tabs) initially or not.

My idea is that when each web user control loads, it will only populate the RadGrids on the first tab. When a different tab is clicked, it will go out behind the scenes (AJAXily) and load whichever tab's grids was clicked on.

My question is multi-part:
1. Am I on the right track for fast loading? Are there any better ideas?
2. What's the fastest way to load a RadGrid? Client-side WebService? LINQ?
3. Are there any brief examples of this in the code library?

Thank you very much in advance. I hope my question was clear enough.
Yana
Telerik team
 answered on 05 Jul 2010
1 answer
194 views
Hi
all

I am using a Radeditor and Rad upload control in my page.
When the page postback when i click on save button. If there are any back end validations that are not satisfied,
and it returned to same page i see that rad editor is getting freezed and even the rad upload control is not visible.


Thank you
Mani

Rumen
Telerik team
 answered on 05 Jul 2010
6 answers
529 views
In Java Swing or JSF, there is a TreeTable component. Is it possible to implement something similar by integrating RadTreeView and RadGrid?
Sebastian
Telerik team
 answered on 05 Jul 2010
1 answer
89 views
Hello,i have noticed the following problem,which i suppose has nothing to do with the editor,as a product.But i would like to know if there is any solution.
We are using load balancing(between 2 servers) and the editor doesn't load.A lot of javascript errors etc.
I suppose it has to do with the order in which the js files are loaded.
Any ideas please?

Rumen
Telerik team
 answered on 05 Jul 2010
5 answers
150 views
I am updating to the telerik 2010 ajax controls. When I convert a rad window to a telerik window the javascript, when run gives error on page. My code below:

function {
var url = "window1.aspx";
window.radopen(url, "window name");
}

<telerik:RadWindowManager ID="RadWindowManager" runat="server">
<Window>
<telerik:RadWindow ID = "RadWindow1" runat="server" Behaviors="Default" />
</Window>
</telerik:RadWindowManager>

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" EnableOutsideScripts="True">
<AjaxSettings>
............ as was before except changed rad to telerik

Now, when I select my button that calls the javascript the function is called (my alert("hello"); displays as a test) but when I remove the alert command I get an IE error on page. is there something I am doing wrong. Everything works when I use the old rad name space but doesn't when I change it to telerik.

Thanks,

Steve Holdorf
Georgi Tunev
Telerik team
 answered on 05 Jul 2010
13 answers
262 views
After taking the latest 2010Q1.sp1 release we have found the following behavior in our site causing multiple popups to appear.

The Behavior:
  • We have a grid, each row of the grid has a content menu with options. 
  • One of those options brings up a popup ("edit detail of record") type of thing. 
  • The the user closes the popup by hitting the Red X in the upper right.
  • The user picks another row, picks the content menu and again is presented a popup detailing the row.

However, both row 1 and row 2 popups are rendered

We repeat and find that every popup that we open and close, is redisplayed, so soon we have dozen of popups when we go to open just one.

The Code:
Below is the code we have been running that brings up the popup detailing the selected record



 
                        RadWindow wnd = new RadWindow();  
 
                        wnd.NavigateUrl = viewDetails;  
                        wnd.Width = 900;  
                        wnd.Height = 620;  
                        wnd.Top = 120;  
                        wnd.VisibleOnPageLoad = true;  
                        wnd.OnClientShow = "OnClientShow";  
 
                        Master.RadWindowManager.Windows.Add(wnd);    


The Debugging Walk Through:
What we have found, is that the rad window manager is no longer removing the closed windows.  So while debugging the code the RadWindowManager.Windows collection had 0 objects, then 1, then 2, then 3, then 4 ....

And everytime we then run this code, all the past windows are again rendered.

We need the windows to remove themselves from the RadWindowManager when the user closes the window. 

Thank you.
Tim
Georgi Tunev
Telerik team
 answered on 05 Jul 2010
2 answers
115 views
hi

i wanna know how can i get all  the filename  of the files uploaded?

for example i have these

fileinput 1 = file1.txt
fileinput  2 = file2.doc
fileinput 3 = file3.xls

i want to save in session or in a textbox each filename

regards

webster velasco
Genady Sergeev
Telerik team
 answered on 05 Jul 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?