Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
160 views
Hi, everybody! I have a problem when I load data to DataGrid. I have a web page and a RadFormDecorator, when I click a button in RadFormDecorator, I want data in RadFormDecorator will update to database and update in DataGrid. I call Response.Redirect("MyWeb.aspx") but DataGrid in MyWeb can't update. My code:

protected void Page_Load(object sender, EventArgs e)
        {       
            if (!Page.IsPostBack)
            {
                 
                 
                SqlDataAdapter da = new SqlDataAdapter();
                ds = new DataSet();
                DataTable dt = new DataTable();
                SqlConnection conn = new SqlConnection(connectionString);
                SqlCommand cmd = new SqlCommand();
           
                conn.Open();
 
            
                try
                {                   
                    cmd = conn.CreateCommand();
                    cmd.CommandType = CommandType.StoredProcedure;
                  
                    cmd.CommandText = "MyStored";                 
                    da.SelectCommand = cmd;
                    ds.Tables.Clear();
                    ds.Clear();
                    ds.AcceptChanges();
                    da.Fill(ds);
                    Session.Clear();                   
                    Session.Add("Source", ds);
                    radgrid.DataSource = null;
                    radgrid.DataSource = ds.Tables[0];
                    radgrid.DataBind();                                      
                     
                }
                catch
                {
                }
                conn.Close();

            }
        }

When I call Response.Redirect("MyWeb.aspx"), dataset changed but Radgrid not changed? Thanks!
         

Pham
Top achievements
Rank 1
 answered on 10 Aug 2011
1 answer
84 views
Hi, I would like to ask about which event is fired when user select a file to upload in RadAsyncUpload. 
The scenario is that, when user browse to select a file, an event will be triggered to extract the filename that user has  just been selected and display that filename in a TextBox.Text.

Thanks

Lamk
Dimitar Terziev
Telerik team
 answered on 10 Aug 2011
1 answer
166 views
Hi,
I'am test the radgrid component. I set the "allow filter" option to true and this enable a filter for each column in the datagrid.
When I change a filter value, the radgrid apply filter and reload the rows in the grid.

It's possible use a typical search form, that interacts with the filter on the radgrid?
It's possible to custom the radgrid to avoid reload every time a filter is change. I like somethin like a command button "apply filters" which apply filters once time (it's to avoid several reloads)

Note: I saw the RadFilter, but I don't want a dynamic filter. I want only a few fixed search fields.

Thanks so much and sorry for my english.
Regards
Shinu
Top achievements
Rank 2
 answered on 10 Aug 2011
5 answers
236 views
Hello All,

            I am developing a web part in SharePoint using wspbuilder project. I have MOSS 2007 installed in my machine. I am having an aspx page in my project which in a nutshell a setting page for controlling the web part. I have used telerik's controls like RadDropDown, RadFormDecorator,etc in that page.

          I know that in order to make the ajax controls work in sharepoint, we need to do some tweaks in the web.config of the web application. I have achieved that programmatically in the receiver class of my SharePoint Feature. So, the appropriate entries would be added in the web.config of my web application once I activate the feature in my site.

          Nevertheless, the ajax controls which are used both in my web part and the aspx page are functioning in an undesirable manner. The drop down is not dropping down at all if I click the down arrow and also the Skin which I have applied for the entire page using 'RadFormDecorator' isn't getting applied at all. Even I have given the script manager at the top of my form tag. I am not able to perceive where am going wrong. Any help rendered would be of great use.
Craig
Top achievements
Rank 1
 answered on 10 Aug 2011
1 answer
80 views
Hi,
I am using tabstrip with scrolling but still the last tab comes to new line (not always). I attached the screenshot, is there any way to avoid this?
Kate
Telerik team
 answered on 10 Aug 2011
2 answers
251 views
  I am not having any luck getting AJAX library to install.  It appears to be updating Visual Studio 2008 and displaies an error:

        There is a problem with this Windows Installer package.  A progrm run as part of the setup did not finish as expected.

  It then finishes with

        Telerik RadControls Setup Wizard ended prematurely because of an error. ...

  I am running on a 64bit Win 7 and executing msiexec from withing a cmd prompt Run as Administrator.

  I see a lot of similar install problems in the forums, but they all appear to be different scenarios.  I am attaching the msiexec log file [I would be if it was allowed!!].

Thanks
Andrey
Telerik team
 answered on 10 Aug 2011
1 answer
111 views
Hi!

I have a datetimepicker installed in my project. I had to set it to where that the available dates (The dates that can be selected) should always be only days starting from today with the time that can be selected also starting from right now. So I set the MinDate to DateTime.Now.

How can i set it to where it will allow displaying dates older than datetime.now but will only allow dates after DateTime.Now to be entered in the datetime.picker.

Any suggestions and solutions are much appreciated.

Thanks
Mira
Telerik team
 answered on 10 Aug 2011
5 answers
432 views
I have one application deployed on two servers. If I start the application from the first server, then I see month names in English, and if I start the same application from the another server, then I see month names in German. What settings and where should I configure to see Month in a specific language?
Sebastian
Telerik team
 answered on 10 Aug 2011
1 answer
75 views

Hi

How can we have navigation like on the left on this page http://www.gordonramsay.com/thesavoygrill/theatre/Pre_theatre where navigation items have different attributes even when they are not selected or hovered over?

Thanks

Regards

Kate
Telerik team
 answered on 10 Aug 2011
1 answer
40 views
Hello,
 My Goal: To use the default AlternatingItemStyle. To evaluate each grid row, if that grid rows Order column = PreviousRow's Order column, then set the CurrentRows.BackColor = PreviousRows.Backcolor.

My Problem seems to be, that the BackColor doesn't exist in the RadGrid_ItemDataBound() event.
I don't want to set my own AlternatingItemStyle in a .CSS for this, because My Whole Site is managed via Telerik Skins, and if I want to chagne the skin, i don't want to have to change this AlternatingStyle to match.

How can I capture what the Color is?

My Code:

 

 

//Changing the backcolor so that rows w/ the same order number show the same color
if (e.Item is GridDataItem && e.Item is GridTableRow)
{
    int rowNumber =  e.Item.DataSetIndex;
      
    if (rowNumber >= 1)
    {
        GridDataItem previousRow = RadGrid1.Items[rowNumber - 1];
        GridDataItem currentRow = (GridDataItem)e.Item;
        string prevMilestoneOrder = previousRow["Order"].Text;
        //Set current row back color to previous row back color if they have the same order
        if (prevMilestoneOrder.Equals(currentRow["Order"].Text))
            currentRow.BackColor = previousRow.BackColor;              //<------- previousRow.BackColor does not exist yet
    }
}

 

 


Tsvetina
Telerik team
 answered on 10 Aug 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?