Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
119 views
I have a grid connected to an Access DB.  I am moving the website to a shared environment.  The new shared environment are virtual websites, so they are subfolders of another website on the server.  After I got the permissions set and the RestoreOriginalRenderDelegate set to false on the page, things aren't working.  The grid appears, but if I try to edit a record, the ajax progress bar appears, then goes away and nothing happens.  Any suggestions on what to look at?  I have no idea where to even start.  It all works perfectly on the original server.  If I can get some guidance, I can dig in to it and post code as necessary.
Iana Tsolova
Telerik team
 answered on 14 Jun 2011
5 answers
751 views

Hi All,

 

I'm using Telerik Grid and binded an XML through dataset. I've a autyo generate edit coulmn.

 When I press edit, I get a text box with exisitng value and update, cancel button. After typing new value whren i press am not getting the new value in the grid. Can any one help on this. I'm using updatecommand event,but no use so far. Here is my code

 

 Hashtable newValues = new Hashtable();
            ((GridEditableItem)e.Item).ExtractValues(newValues);

            GridEditableItem editItem = (GridEditableItem)e.Item;
            GridEditableItem editedItem = e.Item as GridEditableItem;
            GridEditManager editMan = editedItem.EditManager;

            var obj = editItem.GetDataKeyValue("ConnectionString");

            //TextBox txt = e.Item.FindControl("txtValue") as TextBox;
            //if (txt != null)
            //{
            //    string s = txt.Text;
            //}
            ds.Tables["add"].Rows[editItem.DataSetIndex][1] = "XXXXX";
            //radDisplay.DataSource = ds.Tables["add"];
            radDisplay.Rebind();
            StringWriter sw = new StringWriter();
            ds.WriteXml(sw);
            Session["decryptesXMLString"] = sw.ToString();

sohaib
Top achievements
Rank 1
 answered on 14 Jun 2011
1 answer
77 views
 
In GridButtonColumn on delete command ,
 I want to customise the popwindow as to change the title of the window & style of buttons.
I used the Code below but no idea for customization . Please find  the screen shot and have a look
<telerik:GridButtonColumn UniqueName="DeleteColumn" Text="Delete" CommandName="Delete"
     ButtonType="ImageButton" ImageUrl="~/Images/Delete.gif"
                 ConfirmText="Do you want to delete template?" ConfirmTitle="Delete Template" />

Thanks
Jaichand
Jayesh Goyani
Top achievements
Rank 2
 answered on 14 Jun 2011
5 answers
154 views
Whilst adding various RAD controls to my application I have come across quite a few cases where because I have altered default styling of certain HTML tags the RAD controls do not appear correctly. I would expect that the RAD controls would override the default styling in these cases.

Some examples of this are:

TD: Any padding or borders are not overriden in RAD Editor and the dialogs do not appear correctly.

LI: if a background image is applied many RAD controls do not look correct, eg. tree view, editor tool bar and dialogs.

To get around this I simply need to put various fixes in my CSS file, eg:

 

.RadComboBoxDropDown ul li, .rtsLI, .reEditorModes li, .rtLI, .rmItem, .rwControlButtons li
{
    background-image: none;
}
.RadWindow TD
{
    border: 0;
    padding:0;
}

But this is a nuisance to have to add these fixes everytime I notice an issue. I would expect that all RAD controls would override all CSS values and I think this should be fixed.

Bozhidar
Telerik team
 answered on 14 Jun 2011
1 answer
89 views
Hi,

I am using GridButtonColumn to delete a row from the RadGrid. It prompts the user as OK/Cancel. Is there any way to change that to Yes/No. 

TIA,
Uday M
Shinu
Top achievements
Rank 2
 answered on 14 Jun 2011
1 answer
244 views
HI,

I have a radGrid + TextBox + Button.

1. Now,  click to Button for search data.

2. If Textbox value is empty then Grid show all data correct and Event Grid PageIndexChanged is ok.

3. If Textbox value is not empty then Grid show "Condition data" correct.

4. When Textbox value is empty, i bind data to grid by click button search, grid show data correct. Now,  I change index page  grid (ex: page 3..) and enter value to textbox and click to button search --> RadGrid displays "No records to display" when the records exist.

I worked with RadGrid 2009 Q1 and bind data to Grid simple bind.!

Please help me  .!
Princy
Top achievements
Rank 2
 answered on 14 Jun 2011
4 answers
254 views
In RadGrid1_ItemCreated How to get commandname value or delete button value

Very Urgent


Thanks,
Mohamed.
mohamed
Top achievements
Rank 1
 answered on 14 Jun 2011
1 answer
78 views
Hello,

I'm programmatically creating some columns in the Page_Load event (if not postback).  When I create these columns, I'm setting the width, such as:

protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            GridBoundColumn boundColumn = new GridBoundColumn();
            boundColumn.HeaderStyle.Width = new Unit(100, UnitType.Pixel);
            boundColumn.ItemStyle.Width = new Unit(100, UnitType.Pixel);
            boundColumn.ItemStyle.CssClass = "noWrapEllipsis";
            rgCool.MasterTableView.Columns.Add(boundColumn);
}
}


On the initial page load, everything is fine.  However, when an ajax call happens, such as on paging, the columns are still present in the grid, but their width setting is gone (I verified the TD elements have no width when rendered to the browser).

On the demo site is shows a grid persisting column widths across postbacks (or ajax calls).  How can I do this with programmatically created columns?  Should their properties be saved in viewstate just like when the columns are defined in the markup?
Tony
Top achievements
Rank 1
 answered on 14 Jun 2011
3 answers
126 views
Hi,

I have a problem with radgrid export command item buttons. My setup is as follows;

I have a user control within a sharepoint web part. In that user control are multiple rad grids (some housed within child user controls). Each radgrid sits within an ASP.NET update panel. Initially my issue was that while these grids were within an ASP.NET update panel, the export buttons would not work, which was fine as I understood why.

To solve this I added an event handler for the OnItemCreated event of each radgrid. Below is the code for the event handler;

protected void rgv_ItemCreated(object sender, GridItemEventArgs e)
        {
            if (e.Item is GridCommandItem)
            {
                Button btncmd = (e.Item as GridCommandItem).FindControl("ExportToExcelButton") as Button;
                if (btncmd != null) { RadScriptManager.GetCurrent(this.Page).RegisterPostBackControl(btncmd); }
  
                btncmd = (e.Item as GridCommandItem).FindControl("ExportToWordButton") as Button;
                if (btncmd != null) { RadScriptManager.GetCurrent(this.Page).RegisterPostBackControl(btncmd); }
  
                btncmd = (e.Item as GridCommandItem).FindControl("ExportToCsvButton") as Button;
                if (btncmd != null) { RadScriptManager.GetCurrent(this.Page).RegisterPostBackControl(btncmd); }
            }
        }

While testing this code change outside of SharePoint (standard asp.net website under IIS7), this worked just fine, I could export to excel as intended, and everything else within the update panel was still working correctly with respect to ajax.

As soon as I published this out to my sharepoint environment (SharePoint 2010 SP1) to test, I ran into an issue. Export to excel still worked just fine, but after using any of the export buttons to download a document, I could no longer interact with the application, in that nothing on the web part would post back anymore (I have a number of rad combo boxes, toolbars etc both within the update panels and outside of the update panels).

I used the same markup for a rad script manager in both the non sharepoint test website and in the sharepoint masterpage of the site hosting the web part.

<telerik:RadScriptManager id="ScriptManager" runat="server" EnablePageMethods="false" EnablePartialRendering="true" EnableScriptGlobalization="false" EnableScriptLocalization="true" ScriptMode="Release"/>

Do you have any ideas why this might be? Or potential work arounds? At the moment its not feasible to change from the current method of using ASP.NET update panels to telerik ajax controls without significant reworking of the application (which is quite large). So any work arounds would be much appreciated.

Thanks
BizData
Top achievements
Rank 1
 answered on 14 Jun 2011
4 answers
192 views
Hello ,
i want to hide "today" link in control .
any ideas ?
Karam
Top achievements
Rank 2
 answered on 13 Jun 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?