Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
159 views
I have a nested RadGrid set up for In place editing.  For simplicity there is an order header and order detail.  The detail has editing capability and I can make it work but I need to update the order header after the detail is updated.  So in the detail itemCommand I do the updates manually and then do a databind() on the header which properly updates the header but leaves the detail record in edit mode.  If I remove the databind() then the detail record exits edit mode as desired but the header is not updated.   Regardless of the databind the data is being updated in the database.

I have seen many threads regarding
- making sure e.canceled is not being set to true
- allowAutomaticUpdates is set to false

Is there a way after I do a databind() on the header to close the edit mode on the nested detail record? 

Any and all help is appreciated
Joel R
Top achievements
Rank 1
 answered on 06 Nov 2009
1 answer
115 views
Hi,

I am dynamically creating columns(GridBoundColumn and GridNumericColumn). There are nearly 15-16 columns. So have added scroll bars to the Grid to avoid Page scroll bar. I got the Scroll bar for the grid but at the same time I am getting extra space after the Grid which results horizontal scroll bar to the page. Because of this entire layout has been changed.

My ASPX Code:

<telerik:RadGrid ID="RadGrid1" runat="server" Width="650px" BorderColor="#698AC0" 
                                                        BorderWidth="2px" BorderStyle="Solid" Skin="Vista" GridLines="Both" HeaderStyle-Font-Names="Verdana" 
                                                        HeaderStyle-Font-Size="9px" HeaderStyle-HorizontalAlign="Center" ItemStyle-Font-Size="9px" 
                                                        AutoGenerateColumns="false" AlternatingItemStyle-Font-Names="Verdana" AllowFilteringByColumn="True" 
                                                        CommandItemStyle-Width="50px" 
                                                        OnPreRender="RadGrid1_PreRender" OnNeedDataSource="RadGrid1_NeedDataSource" 
                                                        AllowSorting= "true" AlternatingItemStyle-Font-Size="9px" ShowFooter="true"
                                                        <ItemStyle Font-Names="Verdana" Font-Size="9px"></ItemStyle> 
                                                        <FilterItemStyle Font-Names="Verdana" Font-Size="9px" /> 
                                                        <MasterTableView  TableLayout="Auto" Width="650px"/> 
                                                        <ClientSettings> 
                                                            <Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="true"/> 
                                                        </ClientSettings>  
                                                    </telerik:RadGrid> 




My Code Behind :

protected void RadGrid1_NeedDataSource(object source, GridNeedDataSourceEventArgs e) 
        {    
            DataSet RebateData = GetMSRebateDS(); 
            if (RadGrid1.Columns.Count == 0) 
            { 
                if (RebateData.Tables.Count > 0) 
                { 
                    foreach (DataColumn Column in RebateData.Tables[0].Columns) 
                    { 
                        ColList.Add(Column.ColumnName); 
                    } 
                } 
                PrepareGridColumns(ColList); 
            } 
             
            RadGrid1.DataSource = RebateData; 
        } 
 
 
 
 
private void PrepareGridColumns(List<string> ColList) 
        { 
            foreach (string Column in ColList) 
            { 
                if (Column == "PartnerName"
                { 
                    GridBoundColumn BoundCol = new GridBoundColumn(); 
                    RadGrid1.MasterTableView.Columns.Add(BoundCol); 
                    BoundCol.UniqueName = Column; 
                    BoundCol.HeaderText = Column; 
                    BoundCol.DataField = Column; 
                    BoundCol.HeaderStyle.Width = Unit.Pixel(70); 
                    BoundCol.FilterControlWidth = Unit.Pixel(40); 
                    BoundCol.SortExpression = Column;   
                    BoundCol.AllowFiltering = true
                } 
                else 
                { 
                    GridNumericColumn BoundNumCol = new GridNumericColumn(); 
                    RadGrid1.MasterTableView.Columns.Add(BoundNumCol); 
                    BoundNumCol.UniqueName = Column; 
                    BoundNumCol.HeaderText = Column; 
                    BoundNumCol.DataField = Column; 
                    BoundNumCol.HeaderStyle.Width = Unit.Pixel(70); 
                    BoundNumCol.FilterControlWidth = Unit.Pixel(40); 
                    BoundNumCol.SortExpression = Column;   
                    BoundNumCol.AllowFiltering = true
                } 
            } 
 
        } 


Help me to resolve this issue.

Thanks,
Malli


Pavlina
Telerik team
 answered on 06 Nov 2009
1 answer
60 views
Hello,

In new Q3.09
When exporting not only data to Excel I get strange empty grey buttons for the export buttons.
Refresh appear as a link ???
Seems a bug.

CS
Daniel
Telerik team
 answered on 06 Nov 2009
2 answers
108 views
Hello,

I'm trying to understand how JQuery licensing works for commercial products, specially for Telerik applications and applications using RadControls for ASP.NET AJAX set of controls.

From JQuery License statement I understand one can choose either MIT or GPL Licenses when using the library.

  1. Does it mean Telerik uses JQuery library under MIT license to make free commercial use of the library without inheriting GPL license considerations?
  2. Should JQuery licensing be a concern to RadControls users?

Thanks ahead for helping me to figure this out,

Best regards,

Maria
Maria
Top achievements
Rank 1
 answered on 06 Nov 2009
1 answer
147 views
How can I rewrite the below?

 //protected void UploadButton_Click(object sender, EventArgs e)
        //{

        //    //get the image file that was posted (binary format)
        //    if (FileUpload1.PostedFile == null || FileUpload1.PostedFile.FileName == "")
        //    {
        //        lblResult.Text = "Please Select the file";
        //    }
        //    else
        //    {
        //        try
        //        {
        //            if (FileUpload1.HasFile)
        //            {
        //                Int32 length = FileUpload1.PostedFile.ContentLength;

        //                Byte[] theImage = new Byte[length];
        //                Bitmap image = ResizeImage(FileUpload1.PostedFile.InputStream, 300, 300);
        //                // Initialize the stream to read the uploaded file.
        //                System.IO.Stream myStream = FileUpload1.FileContent;

        //                theImage = BmpToBytes_MemStream(image);


        //                // Read the file into the byte array.
        //                myStream.Read(theImage, 0, length);


        //                string fileName = FileUpload1.FileName.ToString(); //get the file name of the posted image
        //                string type = FileUpload1.PostedFile.ContentType; //get the type of the posted image

        //                //Call the method to execute Insertion of data to the Database
        //                ExecuteInsert(theImage, type, length, fileName); //Big change here using the FileUpload.FileBytes property!
        //                lblResult.Text = "";
        //                lblResult.Text = "<br>";
        //                lblResult.Text += "File Content Type: " +
        //                 FileUpload1.PostedFile.ContentType + "<br>";
        //                lblResult.Text += "File Size: " +
        //                 FileUpload1.PostedFile.ContentLength + "kb<br>";
        //                lblResult.Text += "File Name: " +
        //                 FileUpload1.PostedFile.FileName + "<br>";

        //                lblResult.Text += "Saved Successfully!";
        //                //GridView1.DataBind();

        //            }
        //        }
        //        catch (Exception Ex)
        //        {
        //            lblResult.Text += "Error: <br>" + Ex.Message;
        //        }

        //    }
        //}
Veselin Vasilev
Telerik team
 answered on 06 Nov 2009
3 answers
253 views
Hi,

The indentation of the detail tables by radgrid is too much for my scree real estate. Is there a way of reducing it ?

I know I can increase the indetation as follows:

<radG:GridTableView DataSourceID="SqlDataSource2" CssClass="detailTable">

 .detailTable      {        margin-left:40px !important;      } 

Thanks,
Pavan.
pavan pemmaraju
Top achievements
Rank 1
 answered on 06 Nov 2009
3 answers
109 views
I just ran the install/Upgrade for the newest release Q3.2009 of the Rad Ajax Tools. I noticed that when I add a control Telerik is not referenced. I have to manually create the line below:

 

<%

@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>


Is there an issue with the newest release?

Thanks

 

Sebastian
Telerik team
 answered on 06 Nov 2009
3 answers
128 views
Is it possible to export to excel with the "sum" formula instead of just writing out the sum as text in a excel cell?
Daniel
Telerik team
 answered on 06 Nov 2009
4 answers
267 views
Is there a way to add the OnRequestStart handler using javascript?  It seems most of the Telerik controls have this functionality for their client-side events but I cannot find any documentation for this case.

I want to add the handler in javascript because I want to scope the handler to my object.

I have tried to accomplish this in code behind with an anonymous wrapper function, something like this:

RadAjaxManager.GetCurrent(Page).ClientEvents.OnRequestStart = "function() {myObject.handler.apply(myObject, arguments);}";

But this either chokes on parsing or ajax ceases to work but throws no error.

Any help would be much appreciated.

Thanks.

Chris



Chris Dalessandri
Top achievements
Rank 1
 answered on 06 Nov 2009
1 answer
125 views
Hello Telerik,


I am trying to integrate some Open Source Sofware using JQuery and, as all my MaterPages load Telerik AjaxManager+Tooltip Manager+ some other radControls, my question is: is there a risk that JQuery be loaded two times in each page.

(The source I am integrating uses DNA library with DN.JQuery.)

I have checked the page code using IE8 dev tools and this is enough unclear for prophans that I have been unable to solve this question.


My second question is more license related: JQuery is copyrighted John Resig dual license MIT and GPL: does this mean we could use all this in a commercial product ?


Thanks for Telerik advice.
CS
Ivo
Telerik team
 answered on 06 Nov 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?