Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
90 views
Hiya,

We have a strange situation here with RadGrid. We are working under very specific instructions on how to display data with this grid that we have to conform to. One of those requirements is that all rows be in edit mode all the time - the user control edit form never closes for any row. (There are only about 2 dozen rows at any given time).

So.. currently when the update/insert button is pressed either:

A. Nothing appears to happen if there is no loading panel associated with the RadAjaxManager.
B. The whole grid (all rows) become locked and the loading panel graphic shows while the update/insert is taking place. 

What I would like to do is 2 fold:

A. As soon as any data on the user control is changed, a "Changes Pending..." label is visible. Thats easy.

B. When the update/insert button is clicked, a "Saving..." label is visible, and when the save is done, that goes away. 

The problem I am finding is that even tho the codebehind on the main ASPX form (in the grid itemcommand method) is able to change the user control's objects, it only does so after the save and not during/before - making it not very dynamic. 

My first thought then is the move the update/insert code out of the radgrid's itemcommand method and in to the user control's codebehind instead, and control a label with a nested ajaxmanager from there. 

I have a feeling I am missing something... so I thought I would post here just to make sure :)

If anyone has any ideas, please share! 

Thanks much!


Dave
Kostadin
Telerik team
 answered on 23 Sep 2013
5 answers
352 views
In our application we have functionality that when user double click on any row of Rad-grid then that row become in editable mode. so now we have requirement that when user double click on a specific column of that row then after coming in editable mode that control must be auto focused.
So i need the value of cell on which it is double clicked to set the focus on that control when that row comes in editable mode. So is there any event of Rad-grid which provides this functionality.

Any suggestion will be helpful.

In my attached image if i double click on row's RateType column then the RateType Drop Down which comes in editable mode must be auto focused.
Konstantin Dikov
Telerik team
 answered on 23 Sep 2013
1 answer
262 views
Hello, I would like to display in RadBinaryImage  the image loaded in RadAsyncUpload. and temporarily stored in App_Data. 
How can I do?
thanks.
Hristo Valyavicharski
Telerik team
 answered on 23 Sep 2013
5 answers
274 views
i am making a page where i need some validation that StartDate should be less than the EndDate and i m using telerik:GridDateTimeColumn. Please tell me hoe can i compare these two values from telerik:GridDateTimeColumn.
its ergent please.....:-/
Can anyone please help me in this regard......
Princy
Top achievements
Rank 2
 answered on 23 Sep 2013
1 answer
57 views
I have a radsceduler bound to a wcf service. I am inserting an appointment from client code as advanced insert form. There how can I get all the resource type names?

Thanks in advance for any help
Henry
Princy
Top achievements
Rank 2
 answered on 23 Sep 2013
1 answer
1.2K+ views

Hello folks,
 I Have problem like these ..In rad-grid  ..i  Have 20 Column above ....I am Put The allow scroll bar is true ..rad grid  increased ..too wide
  I want to give option to user when ever The User click on "Column  " Link Button I want to hide That Column ..showing remaining column as
it is..But here I got some problem ..I  am not aware of how to use column index based on "Click on Column ". These code I am used to get Column
Index but  unfortunately ..I  am not getting the Value ..
protected void RadGrid1_ItemCommand(object sender, Telerik.Web.UI.GridCommandEventArgs e)
   {
       if (e.CommandName == "hideCol")
       {
           // Add the column index to hide to the hiddenColumnIndexes list
           hiddenColumnIndexes.Add(e.Item.ItemIndex);
           SetupShowHideColumns();
       }
 
       
   }

e.Item.ItemIndex ,I  am Getting "-1" value Can help here to Getting The correct Column Index ..Form user  click on  Column ....
The Following Picture Shows .."-" Symbol in Column Text Prefix ..so When user Click On "-" Button ..We Need to Hide that Column ..but here  "I am not Know How get Column Index" raised By Event Column .



 
protected void RadGrid1_ItemCreated(object sender, Telerik.Web.UI.GridItemEventArgs e)
  {
      // For the header row add a link button to each header
      // cell which can execute a row command
       
      if (e.Item.ItemType==GridItemType.Header)
      {
          // Loop through each cell of the header row
          for (int columnIndex = 0; columnIndex < e.Item.Cells.Count; columnIndex++)
          {
              LinkButton hideLink = new LinkButton();
              hideLink.CommandName = "hideCol";
              hideLink.CommandArgument = columnIndex.ToString();
              hideLink.Text = "-";
              hideLink.CssClass = "gvHideColLink";
              hideLink.Attributes.Add("title", "Hide Column");
 
              // Add the "Hide Column" LinkButton to the header cell
              e.Item.Cells[columnIndex].Controls.AddAt(0, hideLink);
 
              // If there is column header text then
              // add it back to the header cell as a label
              if (e.Item.Cells[columnIndex].Text.Length > 0)
              {
                  Label columnTextLabel = new Label();
                  columnTextLabel.Text = e.Item.Cells[columnIndex].Text;
                  e.Item.Cells[columnIndex].Controls.Add(columnTextLabel);
              }
          }
      }
 
      // Hide the column indexes which have been stored in hiddenColumnIndexes
      foreach (int columnIndex in hiddenColumnIndexes)
          if (columnIndex < e.Item.Cells.Count)
              e.Item.Cells[columnIndex].Visible = false;
  }

The Below to Code to Bind the Data And Hide That Column Code .



Thanks
Reply me Any One.

 


Princy
Top achievements
Rank 2
 answered on 23 Sep 2013
4 answers
712 views

Hello.  I’m trying to use a RadDatePicker and a RadTimePicker to pick a date and time separately and then combine the two into a variable (JavaScript).  The issue I’m having is that when I choose a date from the date popup of the RadDatePicker, it defaults to a time of 12:00am (00:00:00).  And when I choose a time from the time popup of the RadTimePicker, it defaults to the current date.  How can I combine the date and time that I choose without using a RadDateTimePicker?

 

Thank in advance.

Shinu
Top achievements
Rank 2
 answered on 23 Sep 2013
1 answer
102 views
Hi
I am using the sharepoint project using the Telerik control. 
after using this rad control(i.e combo box) I get the following error.

Error 1 The type 'System.Web.UI.IScriptControl' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. D:\..\..\..\VisualWebPart1.ascx.g.cs 40 54

have any idea, how to solve this.


Genady Sergeev
Telerik team
 answered on 23 Sep 2013
1 answer
76 views
Hi,
Am using Telerik 2011. When I groupby as "Date,reource" timeslots are not selected in week view.
If I groupby as "resource" it works fine. (In Day view both cases are work fine)

Please let me know the solution as soon as possible.

Thanks,
Prasanna.
Plamen
Telerik team
 answered on 23 Sep 2013
2 answers
69 views
I am using Telerik in ASP.NET 4.0. Is there is any client side event which triggered when the edit or insert form show? I need to perform some action in that event. pageLoad is not executing.
Princy
Top achievements
Rank 2
 answered on 23 Sep 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?