Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
145 views
Hi,
you can have a scheduler in asp net timeline grouping as there is in winform?
I have to create a schedule of rooms in a hotel.
If you can do you can tell me where I can see some examples?

thanks
Princy
Top achievements
Rank 2
 answered on 06 Dec 2012
1 answer
124 views
How to validate Height and Width of selected File in RadAsyncUpload at Client end only?
Kate
Telerik team
 answered on 06 Dec 2012
12 answers
349 views
I read this page, and I wrote the program.
But "args.get_progressData().RadUpload.RequestSize" is undefined.
Please teach the correction method.

<rad:RadScriptManager ID="RadScriptManager1" runat="server">  
</rad:RadScriptManager> 
 
<script type="text/javascript" > 
    if (!progressArea.confirmed &&  
       args.get_progressData().RadUpload.RequestSize > 1000000)  
   {  
     if (confirm("The total size of the selected files" +  
                 " is more than the limit." +  
                 " Do you want to cancel the upload?"))  
     {  
        progressArea.cancelRequest();  
     }  
     else  
     {  
        progressArea.confirmed = "confirmed";  
     }  
   }  
</script> 
 
<rad:RadProgressManager ID="RadProgressManager1" runat="server" /> 
<rad:RadUpload ID="rupDocTempFile" runat="server" Skin="Telerik"></rad:RadUpload> 
<rad:RadProgressArea ID="RadProgressArea1" runat="server" OnClientProgressUpdating="checkUploadedFilesSize">  
</rad:RadProgressArea> 
 
<asp:Button ID="btnSave" runat="server" Text="SAVE" OnClick="btnSave_Click" AccessKey="v" ToolTip="Save(v)" /> 
Plamen
Telerik team
 answered on 06 Dec 2012
2 answers
112 views
Hello,

I am using radgrid,
I want creat edit popup form (EditFormSettings) dynamically in aspx.cs, not at design time in aspx.
My datasource is dynamic.I am created columns at runtime.

Please suggest me any solution.

Regards,
Amit.
Eyup
Telerik team
 answered on 06 Dec 2012
3 answers
90 views
Hi,
I would like to know if use of GridDragDropColumn is 508 compliant?
If not, I would appreciate if you can suggest the alternate way.
Manisha

Marin
Telerik team
 answered on 06 Dec 2012
1 answer
66 views
Hi,

I want to create my own expand/collapse functionallity for rad grid.
I have a GridImageButton column inside my grid with "+" button, and I want to chane it to "-" when the row is already expanded.
I tried to do it "OnItemCommand" event, but it doesn't fire.

Here is my code:

I create the grid inside a place holder on server side:

RadGrid grid = new RadGrid();

GridReport.ItemCommand += new GridCommandEventHandler(this.grid_ItemCommand);

GridPlaceHolder.Controls.Add(grid);


private void GridReport_ItemCommand(object source, GridCommandEventArgs e)

{

        if (e.CommandName == "Information")

         { 

                if (e.Item is GridDataItem)

                 {

                        GridColumnCollection gridColumns = e.Item.OwnerTableView.Columns;

                        GridDataItem myGridItem = (GridDataItem)e.Item;

 

                        if (gridColumns.FindByUniqueNameSafe("Information") != null)

                         {

                                ImageButton myRuleImageButton = (ImageButton)myGridItem["Information"].Controls[0];

                                 myRuleImageButton.ImageUrl =  "~/Images/Icons/collapse.png";

                         }

                 }

         }

}

 

private void GridReport_ItemDataBound(object sender, GridItemEventArgs e)

{

         if (e.Item is GridDataItem)

         {

                GridDataItem myGridItem = (GridDataItem)e.Item;

                if (gridColumns.FindByUniqueNameSafe("Information") != null)

                 {

 

                        ImageButton myRuleImageButton = (ImageButton)myGridItem["Information"].Controls[0];

                        myRuleImageButton.OnClientClick = String.Format("Click(" + myGridItem.ItemIndex + "); return true;");

                 }
        }

}

Column Creation:

buttonColumn = new GridButtonColumn();

buttonColumn.ItemStyle.BorderWidth = Unit.Pixel(0);

buttonColumn.CommandName = "Information";

buttonColumn.UniqueName = "Information";

buttonColumn.ButtonType = GridButtonColumnType.ImageButton;

buttonColumn.ImageUrl = "~/Images/Icons/expand.png";

buttonColumn.HeaderStyle.Width = Unit.Pixel(20);

buttonColumn.Resizable = false;

buttonColumn.Reorderable = false;

buttonColumn.Visible = true;

GridReport.MasterTableView.Columns.Add(buttonColumn);


     

Thanks!

Maria Ilieva
Telerik team
 answered on 06 Dec 2012
1 answer
134 views
Hi,

I want to bind telerik scheduler for  7 weekdays only with events, do not have datasource with date, just have time and day.

i have some events for each weekday that i want bind, i have time and day(like monday, tuesday,etc) that i want to bind with weekview of telerik scheduler.

see attached screen for my issue.

can anyone suggest how can i achieve this ?

Please help me quick.

Thank you.
Princy
Top achievements
Rank 2
 answered on 06 Dec 2012
1 answer
114 views
How do I clear the contents of a GridDropDownColumn (RadComboBox) which is bound to a EntityDataSource? 

The following code changes the data source of a cascading drop-down, but doesn't clear the contents of the RadComboBox - possibly because it's bound to the the EntityDataSource... (I hope to avoid doing a UNION NULL on the EntityDataSource).

protected void rgUnits_ItemCreated(object sender, GridItemEventArgs e)
       {
           GridEditableItem item = e.Item as GridEditableItem;
            
           if (item != null &&
               item.IsInEditMode &&
               item.OwnerTableView.DataSourceID != DataSourceIDUnitItem) // Parent Row
           {
               RadComboBox combo = (RadComboBox)item["EquipmentType"].Controls[0];
               combo.AllowCustomText = true;
               combo.AutoPostBack = true;
               combo.SelectedIndexChanged += combo_SelectedIndexChanged;
           }
       }
 
       void combo_SelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e)
       {
           GridEditableItem editedItem = (sender as RadComboBox).NamingContainer as GridEditableItem;
 
           int equipmentTypeID = 0;
           if (int.TryParse(((RadComboBox)editedItem["EquipmentType"].Controls[0]).SelectedValue, out equipmentTypeID))
           {
               EquipmentDescriptionDataSource.Where = string.Format(EquipmentDescriptionFilter, equipmentTypeID);
 
               RadComboBox rcbEquipmentDescription = ((RadComboBox)editedItem["EquipmentDescription"].Controls[0]);               
               rcbEquipmentDescription.DataBind();
               rcbEquipmentDescription.ClearSelection();
               rcbEquipmentDescription.Text = string.Empty;
           }
       }


Any thoughts?
Peter
Top achievements
Rank 1
 answered on 06 Dec 2012
1 answer
95 views

I have a Telerik Grid contains a template column, this column holds a RadGridList and receives its data from StringCollection, this means that I have a column with multiple values.

I'm trying to filter this column using a combobox, I can filter such columns but with only single data, but how to filter a column contains multiple data represented by StringCollection?

I Usually use this way to filter columns

<telerik:GridBoundColumn DataField="ExperienceLevel" HeaderButtonType="TextButton" HeaderText="Experience Level" SortExpression="ExperienceLevel" UniqueName="ExperienceLevel">
                      <FilterTemplate>
                          <telerik:RadComboBox ID="RadComboBoxExperienceLevel" runat="server" AppendDataBoundItems="true" DataSourceID="SqlDataSourceExperienceLevel" DataTextField="englishName" DataValueField="ExperienceLevelID" DropDownWidth="150" OnClientSelectedIndexChanged="ExperienceLevelIndexChanged" SelectedValue='<%# ((GridItem)Container).OwnerTableView.GetColumn("ExperienceLevel").CurrentFilterValue %>' Width="100">
                              <Items>
                                  <telerik:RadComboBoxItem Text="All" Value="" />
                              </Items>
                          </telerik:RadComboBox>
                          <telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">
                              <script type="text/javascript">
 
                                  function ExperienceLevelIndexChanged(sender, args) {
                                      var tableView = $find("<%# ((GridItem)Container).OwnerTableView.ClientID %>");
                                      tableView.filter("ExperienceLevel", args.get_item().get_value(), "EqualTo");
                                  }
                              </script>
                          </telerik:RadScriptBlock>
                      </FilterTemplate>
                  </telerik:GridBoundColumn>
Daniel
Telerik team
 answered on 06 Dec 2012
1 answer
50 views

Team Telerik,

 

I think I have discovered a bug.

Recreation Steps:

 

  1. Ensure that AJAX is turned OFF.
  2. In any given RadGrid, create two or more GridNumericColumns.
  3. Drag a GridNumericColumnEditor to the design surface and configure it however you want.
  4. Set all of the GridNumericColumns in the RadGrid to use the GridNumericColumnEditor above as their "ColumnEditorID" property.
  5. Run the form and try to insert a new record. You'll get an error that says "The property is outside the range of valid values".

 

Background:

 

I am building a page that uses several numeric columns that should all be formatted in exactly the same way. So logically, I drag one GridNumericColumnEditor to the design surface, set its properties there, and then set all of the GridNumericColumns that should be formatted that way to use that column editor. Obviously, this doesn't work, even though you can do this with other ColumnEditors for other column types.

Workaround:

Use a different GridNumericColumnEditor for each of the GridNumericColumns - even if they're all to be formatted in exactly the same way. Clearly, this isn't very efficient, but it'll have to do for now until you guys can address this.

Telerik Version: 2012.3.1016.40 (2012 Q3)

Thanks in advance for your kind attention to this matter - and keep up the great work, you guys.

Regards,
Jonathan

Andrey
Telerik team
 answered on 06 Dec 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?