Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
126 views
Hi
I am Using RadGrid and I have set radgrid properties from code.
 that is if more then 5 records are added to the radgrid the scroll will be enable.

Now that is working fine but suppose i have 5 records and I delete one record
Empty space for that record comes. simillary if i delete more records the grid area remains fixed for that 5 records and empty gray area exists.

Your response will be a great help.
Veli
Telerik team
 answered on 14 Sep 2008
1 answer
154 views
When we try to set the AutoPostBackOnFilter on a GridDateTimeColumn the grid will do a post back but it loses the selected date and does not seem to filter.  Has anyone else experienced this?
Veli
Telerik team
 answered on 14 Sep 2008
1 answer
111 views
Hello,

I have a page that consists of a Splitter control (vertical split).  On the left hand side is a RadGrid.  When you click on a row on that grid, it then loads the right hand side of the splitter.

On the right hand side is a bunch of information pertaining to the row clicked on the left hand side.  We group information in the right side using 'Sections'.  Within sections, grids can be contained.

My problem is that the grid width exceeds the sections width.  How can I get the Grid to resize so that I will not have a horizontal scrollbar?
Veli
Telerik team
 answered on 14 Sep 2008
1 answer
262 views
I couldn't find this anywhere, but is it possible to import an Excel file into a RadGrid? What I intended was allowing users to import an Excel file from the web, that would populate a RadGrid, then they can make changes they want in EditMode, then they can click on a button to save- which in the code-behind I would take the datasource and insert them into an SQL table. Has anyone encountered something like this?
Vladimir
Top achievements
Rank 1
 answered on 14 Sep 2008
3 answers
144 views
Firstly sorrry my broken english
I have  a big problem, my web only has one page, in this page i have a table with 3 rows, one cell in the first row, two cells in the second and one cell in the third row. In the first cell in the second row i have a menu (panel bar) when i click ion a option omenu, soy a usercontrol in the second cell of the second row. One of the usercontrol has a rad grid, i am testing the control but when i try paging or order or grouping the grid has not anything, when i delete the radajaxmanger of the page and try to do something with the grid this one disapear.
the same but the radgrid in a aspx work fine.
what's matter????

thank you!!!
Vladimir
Top achievements
Rank 1
 answered on 14 Sep 2008
0 answers
149 views
I have used the example that you have under Dynamic RadPageView to create a form with tabs for different languages. The languages are dynamic so i do not know what languages the user is going to add to the system and they also all have the same
fields so i am using the same control for each tab but just giving the control a different name. I do not know the controls name (well i do but it is not created yet so i can not figure out a way to get the info in text boxes and put them into the database. Any idea's?

Below is the code i am using to create the tabs and call the control 1 to 100 times.
The create controls called
English_page_userControl
or
Spanish_page_userControl
on the fly

ublic partial class StoreCategoriesEdit2 : System.Web.UI.Page 
    //initalize the Security 
    public static string Security_level = ""
 
    protected void Page_Load(object sender, EventArgs e) 
    { 
         
        //check to make sure that we are allowed to see this page 
        Security_level = AdminSecurity.Page_Security("users"); 
        if (Security_level == "" || Security_level == "N"
        { 
             
            Messaging.ErrMsg("You Do Not Have Rights To View This Page."); 
        } 
 
        if (!IsPostBack) 
        { 
                string MySql = "Select FrontEndLanguageId,FrontEndLanguageName " 
                     + "From SystemFrontEndLanguage " 
                     + "Order By FrontEndLanguageIsDefualt Desc"
                DataSet rs = DataAccess.ExecuteSqlWithResults(MySql); 
                foreach (DataRow row in rs.Tables[0].Rows) 
                { 
                   AddTab(row["FrontEndLanguageName"].ToString()); 
                } 
                rs.Dispose(); 
                 
            
                MySql = "SELECT a.CategoriesId, b.CategoryLanguageDescription " 
                    + "FROM (StoreCategories AS a " 
                    + "INNER JOIN StoreCategoryLanguage AS b " 
                    + "ON a.CategoriesId = b.CategoriesId) " 
                    + "INNER JOIN SystemFrontEndLanguage AS c " 
                    + "ON b.FrontEndLanguageId = c.FrontEndLanguageId " 
                    + "WHERE (((c.FrontEndLanguageIsDefualt)=\"Y\"))"
               rs = DataAccess.ExecuteSqlWithResults(MySql); 
                if (rs.Tables[0].Rows.Count != 0 ) 
                { 
                    CategoriesParentIdDropDownList.DataSource = rs; 
                    CategoriesParentIdDropDownList.DataValueField = "CategoriesId"
                    CategoriesParentIdDropDownList.DataTextField = "CategoryLanguageDescription"
                    CategoriesParentIdDropDownList.DataBind(); 
                } 
                else 
                { 
                    CategoriesParentIdDropDownList.Visible = false
                } 
                rs.Dispose(); 
                
        } 
    } 
 
    private void AddTab(string tabName) 
    { 
        RadTab tab = new RadTab(); 
        tab.Text = tabName; 
        tab.PageViewID = tabName + "_page"
        RadTabStrip1.Tabs.Add(tab); 
        RadPageView pageView = new RadPageView(); 
        pageView.ID = tabName + "_page"
 
        RadMultiPage1.PageViews.Add(pageView); 
    } 
 
    protected void RadMultiPage1_PageViewCreated(object sender, RadMultiPageEventArgs e) 
    { 
        string userControlName = "Controls/CategoriesLanguages.ascx"
        Control userControl = Page.LoadControl(userControlName); 
        userControl.ID = e.PageView.ID + "_userControl";  
 
 
        e.PageView.Controls.Add(userControl); 
         
    } 
 


 
chris
Top achievements
Rank 1
 asked on 14 Sep 2008
2 answers
89 views
Hi,

I use a customadvancedtemplate, in the user-control the are a panel, but the cssclass there aren't, i have more warning -> The class or CssClass value is not defined
I have modifiy the control position into a panel -> schedulerdefaulform.ascx, but if insert a table tb tr is not possibile, the design view is white, can't modify a position control into a panel??

example ->

<label>Subject</label>
<asp:texbox id="SubjectText" runat="server" Style="margin: 0.8em opt 0pt 50px; width: 400px" Text="<%# Eval ("Subject") </asp:textbox>

When i cancel -> Style="margin: 0.8em opt 0pt 50px; width: 400px"

The Design view in visualstudio is white, e can't view a page into visualstudio, but only a code source...


Rubihno
Top achievements
Rank 1
 answered on 14 Sep 2008
1 answer
138 views
I have a radMenu and radEditor in one page. When I open the hyperlink manager from the radEditor, the linkManager is under the radMenu. How can I change the z-index for the dialog so it will be top of the menu?
Scott
Top achievements
Rank 2
 answered on 14 Sep 2008
2 answers
198 views
Let's say I have two rows in my grid.  They have 8 columns, 1 column returns no data, actually a null value.  When I group on that column the rows get duplicated, so there are two rows in each grouping for a total of four rows.

I can do a case statement in my SQL and assign a value to the null column which removes the duplicate when grouped. 

But this should not be a SQL issue and I thought you should know that this is happening in your Grid when Grouping on a null column.
Mike
Top achievements
Rank 1
 answered on 13 Sep 2008
8 answers
492 views
I am using the following in the RadGrid nested withing the MasterTable and Columns tags.

<telerik:GridClientSelectColumn UniqueName="ClientSelectColumn" /> 

I also have a button above my grid to submit the form/grid to the code behind and update the checked rows.  Right now I am unable to access the checked rows.

How do I get the values of the checked rows in the code behind using an asp:Button? 

<asp:Button ID="ButtonAssignUsers" CssClass="emabtn"  OnClick="ButtonAssign_Click" CausesValidation="false" Width="225px" Text="Assign Users &raquo;" 
                                         runat="server" /> 

protected void ButtonAssign_Click(object sender, EventArgs e)  
  {      
    // What goes here so I can access the checked checkbox values?  
  } 
Mike
Top achievements
Rank 1
 answered on 13 Sep 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?