Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
234 views
Hi;
Please help on the issue below.
How can I specify only 2 columns on the radtimepicker.

That is when the timeview loads it is limited to 08:00 to 17:00, with 30 mins interval and there are only 2 columns. One having the hourly values and the other having the half hourly values e.g 08:00 on one side and 08:30 on the other side, next row, 09:00 and 09:30...
Thank you!
swad
Princy
Top achievements
Rank 2
 answered on 15 May 2012
1 answer
82 views
I have a hierarchical grid updating data using item command. The first grid is working like a charm, but there is issue with updation of the child grid. I guess the update command is the same for both the parent and the child grid. But it is not working. Please help me with updating data in hierarchical grid.
Thanks in advance
savyo
Shinu
Top achievements
Rank 2
 answered on 15 May 2012
1 answer
57 views
Hi,

A column of my rad grid view has a drop down filter with the following items:

Apple
Orange
Apple;Orange

I am able to filter the items successfully on selecting either Apple or Orange. But the if i select Apple;Orange, I get the error.
I assume that this error is due to the presence of the semi colon between apple and orange. If I remove the semi colon, then it is working fine.

Error:
Line: 6
Error: Sys.WebForms.PageRequestManagerServerErrorException: Index was 
outside the bounds of the array.

Is there any way to accomodate the semi colon.

Regards,
Shashank 
Shashank
Top achievements
Rank 1
 answered on 15 May 2012
4 answers
147 views
Hi all,

Does anyone have any suggestions on how can I remove the empty bar at the top of the RadProgress box?
See attached image.

Thanks in advance
Rich
RichJ
Top achievements
Rank 1
 answered on 14 May 2012
1 answer
116 views
Hello,

I wanted to use RadSocialShare but I could not find it in the ToolBox in Visual Studio 2010. I am currently using version. 2011.2.915.40. Thank you for your help.
Louie
Top achievements
Rank 1
 answered on 14 May 2012
2 answers
1.5K+ views
I have a radgrid, and want to make the row height as small as possible so that I can fit many rows in a small space.  My RadGrid is inside of a user control, and in the user control's page load event, I have the following code:

rgMain.HeaderStyle.Height = Unit.Pixel(10);
rgMain.ItemStyle.Height = Unit.Pixel(10);
rgMain.AlternatingItemStyle.Height = Unit.Pixel(10);
rgMain.CellPadding = 0;
rgMain.CellSpacing = 0;

However, the grid rows are always 27 pixels tall, no matter what values I specify for the Height properties or CellPadding and CellSpacing.
Jayd
Top achievements
Rank 1
 answered on 14 May 2012
1 answer
225 views

RadGrid Control: disabling drag and drop column is not working. User can pick the column and while dragging somewhere, following error comes

“

Unable to download.

Unspecified error

“

I have read the following link.

http://www.telerik.com/community/forums/aspnet/grid/disable-drag-and-drop.aspx


I have set the following properties in code behind and design view as well and both are not working.


telRadGrid.ClientSettings.AllowRowsDragDrop =
False

telRadGrid.ClientSettings.ReorderColumnsOnClient = False

telRadGrid.ClientSettings.AllowDragToGroup = False


<
ClientSettings AllowColumnsReorder="false" AllowDragToGroup="false" ReorderColumnsOnClient="false">

                <Resizing AllowColumnResize="false" />

</ClientSettings>

Richard
Top achievements
Rank 1
 answered on 14 May 2012
2 answers
122 views
Hi. I have a rad rotator which shows some images and when the user click the image it shows the detail in a form view. It all appears to work however when I click the edit button the change event is fired but the form does not change into edit mode? The code is in a usercontrol. I'm sure I'm doing something really stupid, but cant see what :-( 

<asp:FormView ID="frmDetail" runat="server" DataKeyNames="C_n_Id" OnItemUpdated="FormView_ItemUpdated"
        OnItemCommand="FormView_ItemCommand" DefaultMode="ReadOnly">
            <ItemTemplate>
                <table style="padding:10px;">
                    <tbody style="vertical-align: top;">
                        <tr>
                            <td width="80px">
                                <img src='<%#  HttpUtility.UrlDecode(String.Format("{0}/_N{1}_small.png", HttpUtility.UrlEncode(Eval("C_s_ImageUrl").ToString()), Eval("C_n_Id"))) %>'
                                    width="64px" height="64px" class="RotatorImage" />
                            </td>
                            <td>
                                <asp:Label ID="lblDescription" runat="server" Text='<%# Bind("C_s_Description") %>'
                                    EnableTheming="true" />
                            </td>
                        </tr>
                    </tbody>
                </table>
                <br />
                <b>Name:</b>
                <asp:Label ID="ProductNameLabel" runat="server" Text='<%# Bind("C_s_Name") %>' EnableTheming="true" /><br />
                <b>Description:</b>
                <br />
                <asp:Button ID="EditButton" Text="Edit" CommandName="Edit" runat="server" />
                 <asp:Button ID="Button1" Text="Insert" CommandName="Insert" runat="server" />
            </ItemTemplate>
            <EditItemTemplate>
                <asp:Label runat="server" ID="lblTest" Text="Edit" />
                 <asp:TextBox ID="lblDescription2" runat="server" Text='<%# Bind("C_s_Description") %>' />
            </EditItemTemplate>
            <InsertItemTemplate>
                <asp:Label runat="server" ID="lblTest" Text="Insert" />
            </InsertItemTemplate>
        </asp:FormView>

Code behind, data is being bound in code behind using entity model;

private Int64 LastID
       {
           get
           {
               return Convert.ToInt64(ViewState["LastID"]);
           }
           set
           {
               ViewState["LastID"] = value;
           }
       }
 
       protected void FormView_ItemUpdated(Object sender, FormViewUpdatedEventArgs e)
       {
           this.frmDetail.DataBind();
       }
 
       protected void FormView_ItemCommand(object sender, FormViewCommandEventArgs e)
       {
           switch (e.CommandName)
           {
               case "Edit":
                   this.frmDetail.ChangeMode(FormViewMode.Edit);
                   
                   break;
           }
       }
 
       protected void Page_Load(object sender, EventArgs e)
       {         
           this.RebindRotator();        
       }
 
       private void RebindRotator()
       {          
           thumbRotator.DataSource = DbContext.tblAccountNotifications.OrderBy(t=>t.C_s_Name);
           thumbRotator.DataBind();
       }
 
       protected void BindForm()
       {
           this.frmDetail.DataSource = DbContext.tblAccountNotifications.Where(t => t.C_n_Id == this.LastID);
           this.frmDetail.DataBind();
       }
       protected void GetSubscription(object sender, RadRotatorEventArgs e)
       {
           RadRotator rotator = sender as RadRotator;
           rotator.InitialItemIndex = e.Item.Index;// Persist the index
 
           this.LastID = Convert.ToInt64(((Label)e.Item.FindControl("lblId")).Text);
           this.BindForm();          
 
       }
plusHR
Top achievements
Rank 1
 answered on 14 May 2012
1 answer
464 views
I have a column ID, I used DataType="System.Int64" but when sorting, still shows:

 

1,102,11,2,25,3,

I like it to sort 1,2,3,11,25,102 like number and filter like number when using less then...

Thanks!
Pavlina
Telerik team
 answered on 14 May 2012
1 answer
107 views
I have  made a dynamic grid and now i want to update my sp from the values in textbox in radgrid
how can i do that ..
when i try to access the value it alwas gives me the old value .
How can i get the new value ?
 public void Update_OnbuttnClick(object sender, EventArgs e)
        {
               double total;
                string id;

               for (int OuterCol = 1; OuterCol < gridCntrl.Columns.Count; OuterCol++)
                  {
                      GridTemplateColumn templateColumn = new GridTemplateColumn();
                      //string templateColumnName = ds.Tables[0].Columns[OuterCol].ColumnName;

                for (int inner = 1; inner < gridCntrl.Items.Count; inner++)
                {

                    total = double.Parse((gridCntrl.Items[OuterCol].FindControl("xyz") as RadNumericTextBox).Value.ToString());
                    id = (gridCntrl.Items[OuterCol].FindControl("Petroleum") as RadNumericTextBox).Text.ToString();

                }



            }




        }
Pavlina
Telerik team
 answered on 14 May 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?