Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
142 views
Hello
When i use response.redirect in codebehind the RadAjaxLoadingPanel showing in new window that call redirect
How can i hidden RadAjaxLoadingPanel when call response.redirect
Maria Ilieva
Telerik team
 answered on 11 Dec 2008
3 answers
314 views
Hi,

I have a RadGrid that is grouped by one of the columns.
When i double click a GroupHeader, i want the group to be expanded. I want it to behave in the same way (Client Side) as it is done when i click on (+) image on the left side of the groupHeader.

I have a client event RowDbClick(). When i double click the row i can figure out whether it is clicked on the GroupHeaderItem. After this how can i expand the group?
Pls do help me on this.

Thanks
Daniel
Princy
Top achievements
Rank 2
 answered on 11 Dec 2008
1 answer
99 views
I have a radGrid which has a object source of a table and i am showing all the values through it. There`s a column in that table named 'check' which is NULL ALLOWABLE. I just want to check at runtime whether it is null or has some value. If it has then make another radGrid in that row to value of that, else dont show that null valued column.
I have seen the demos of it but they are pretty complex and have other functionalities as well which is confusing me and not letting me achieve this. Kindly guide me in it through some simple code...I`ll be thankfull to you.
Thankyou Telerik!
:D
Yavor
Telerik team
 answered on 11 Dec 2008
3 answers
132 views
I have two different connection strings that are loaded into SessionState upon successful login. One connection string has the connection from a general database while the other connection string stores the string for the specific, logged-in user.

My inherited class simply returns the Session Data to all of my pages.  I did it this way so that I wouldn't have to copy/paste code into all of my application's pages and if the Session Data does not exist, my user would be forced to log back in.

The problem is, some of the Grids are really screwed up.

Here are some of the cases:
   1) A grid on one page, shows 21 rows of blank lines, but there's NO data in that particular database table. (Screenshot)
   2) Grids on a few other pages, when I click on the InsertCommand button (Inline Edit Mode), I get the textboxes, but blank data is inserted into the database and I get an exception stating that object not set to a reference.  THEN, the Grid doesn't show ANY rows - including the row that says "No records could be found." (Screenshot)

Please note, that everything worked when I was assigning the ConnectionStrings on every single page in the Page_Load event.

It seems that I'm only having a problem when I'm using an edit mode.  On a few of my pages in which I just have a grid that's binding and listing data (no edits), there doesn't seem to be a problem.

Am I missing something in the page cycle or what? I've tried putting the inherited code in the OnLoad, OnPreLoad, OnInit, and OnPreInit events, but all renders the same results.  What's going on?

Here's my code samples:

 
namespace Elevate.DBSchema   
{  
    public class DBStore : System.Web.UI.Page   
    {   
        private string _localConn;   
        private string _userConn;   
 
        public string userConn   
        {  
            get { return _userConn; }   
        }  
 
        public string localConn   
        {  
            get { return _localConn; }   
        }  
   
        protected override void OnLoad(EventArgs e)    
        {  
            if ((Session["userConn"] == null) || (Session["localConn"] == null))   
            {  
                FormsAuthentication.SignOut();   
                Response.Redirect("/login.aspx");   
            }  
            else   
            {   
                _localConn = Session["localConn"].ToString();   
                _userConn = Session["userConn"].ToString();   
            }  
 
            base.OnLoad(e);    
        }  
    }  
}  
 
   
namespace Elevate   
{  
    public partial class WebForm10 : DBSchema.DBStore   
    {  
        protected void loadGroups(object sender, GridNeedDataSourceEventArgs e)   
        {  
            SqlConnection conn = new SqlConnection(userConn);   
            SqlCommand comm = new SqlCommand("SELECT * FROM [elevate_marketing_Groups]", conn);   
            SqlDataReader reader;   
            DataTable dt = new DataTable();   
 
            try   
            {   
                conn.Open();  
                reader = comm.ExecuteReader();  
                dt.Load(reader);  
                reader.Close();  
                RadGrid1.DataSource = dt;  
            }  
            catch (Exception exc)   
            { }  
            finally   
            {   
                conn.Close();  
            }  
        }  
    }  



Thanks,
Joshua

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Pavel
Telerik team
 answered on 11 Dec 2008
1 answer
368 views
How can i prevent that from happening

say for example if someone enters a value like 09321 ( zip code ) the box removes the first 0.. and displays only 9321

thanks in advance
Dimo
Telerik team
 answered on 11 Dec 2008
1 answer
113 views
2008.3.1125.35  VS2008 SP1

Two different behaviors:
If I have AutoPostBackOnFilter set to false, when the user enters a new filter and selects a filter menu, it automatically goes back to page 1.  (expected behavior)

If I have AutoPostBackOnFilter set to true, when the user enters a new filter and selects a filter menu, it stays at the current page number.   (unexpected behavior)

Ideally it should also go back to page 1.    The grid is Ajaxified through RadAjax.

I just resolved this on my own by adding this to ItemCommand.
If e.CommandName = RadGrid.FilterCommandName Then
            e.Item.OwnerTableView.CurrentPageIndex = GridResetPageIndexAction.SetPageIndexToFirst
End If


Yavor
Telerik team
 answered on 11 Dec 2008
1 answer
90 views
I know there are articles about how to bind GridDropDownColumn with SqlDataSource.  However, in my application, I have a data access layer returning a List<> for the GridDropDownColumn.  I am wondering how I can use List<> as the source for the GridDropDownColumn in the Edit mode.  With the following codes that I have, I have nothing shows up in either browse or edit mode.  Thanks,


<telerik:GridDropDownColumn  
    DataField="CategoryId" 
    HeaderText="Category" 
    UniqueName="CategoryId" 
    ListTextField="CategoryName" 
    ListValueField="CategoryId"  /> 


    protected void uxApplicationGrid_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e)  
    {  
        if (e.Item is GridEditableItem && e.Item.IsInEditMode)  
        {  
 
            GridEditableItem editedItem = e.Item as GridEditableItem;  
            GridEditManager editMan = editedItem.EditManager;  
            GridDropDownColumnEditor editor = editMan.GetColumnEditor("CategoryId"as GridDropDownColumnEditor;  
            string selectedValue = editor.SelectedValue;  
            editor.DataSource = CategoryDAL.GetCategorys();  // get List<> back from DAL
            editor.DataBind();  
        }  
    } 
Yavor
Telerik team
 answered on 11 Dec 2008
1 answer
117 views
Hi,
we are evaluating the web chart control for our company. Can we create different chart areas in the same chart with different chart types? If not, how can we align Y axes in length and X axes in height using different charts?

Thanks in advanced
Regards
Giuseppe
Telerik team
 answered on 11 Dec 2008
1 answer
65 views

Hi,

There is a problem in scheduler day view while stretching the appointment which raise "OnClientAppointmentResizeEnd" client side event. If this event is cancelled by setting " eventArgs.set_cancel(true) ", it increases scheduler height and shows vertical scrollbar with stretching the appointment block upto the scheduler height.

Thanks
Venu

Peter
Telerik team
 answered on 11 Dec 2008
1 answer
85 views
Hi all experts,

I am developing a Custome Field in Moss 2007 which intends to use Rad Editor (Moss version) by code. But i can't find out any way to use this control by code.

I am appriciate to all people who can suggest me any idea to solve this problem!

Thank you very much
Cong

Stanimir
Telerik team
 answered on 11 Dec 2008
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?