Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
144 views
Please help me how to set styles like text-alignment,font-family,font-size etc.. for group by fields while exporting to PDF from RAD GRID.
Radha
Top achievements
Rank 1
 answered on 06 Dec 2012
6 answers
147 views
Hi,

We are using telerik radgrid inside a user control.Inside radajaxmanager_ajaxrequest we are binding the values for the Telerik grid.
But the issue is,we are not able to see the grid inside radajaxmanager_ajaxrequest but we are getting inside page load.But the ajaxloadingpanel is loaded properly.

is that anything specific for user control when comes to AJAX?

Appreciate the quick response to this.
Eyup
Telerik team
 answered on 06 Dec 2012
1 answer
112 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
105 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
308 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
96 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
35 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
55 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
94 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
99 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?