Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
100 views
Hi,
I am facing problem in the RADGRID column alignment. I am using 2013.3.1015.35 version. In firefox it works good but in IE 10 it's not working. In IE 11 it's working good.

Regards,
Rathina
Venelin
Telerik team
 answered on 31 Mar 2014
2 answers
140 views
hello dears, 

When I clicked on the body of page , the RadDropDownTree should not disappear, kindly let me know how I can solve this.
MOHAMMED
Top achievements
Rank 1
 answered on 31 Mar 2014
1 answer
117 views
Hi all,

I developed new application by following http://demos.telerik.com/aspnet-ajax/tabstrip/examples/application-scenarios/wizard/defaultcs.aspx .

All user controls are in the sub-folder and one parent page (which has tabstrip control and mulitpageview control) is in the top folder. I am able to access this application. 
 
I did make use of ValidationGroups.  I did set all the controls in each user control, including the buttons that should trigger validation, to be the same, unique ValidationGroup value.  I've ensured that only the button in the user control will trigger validation for the controls in each user control.

However, I tried to click a button at the user control but was taken to other user control without validation. This validation did not work for me. Please help me with this issue.  The difference between my application and telerik application is only different directory because all user controls and parent page are in the same directory while they are in different directory (sub-folder and top-folder) 

Please let me know as soon as possible.

Thank you very much. 
Shinu
Top achievements
Rank 2
 answered on 31 Mar 2014
1 answer
151 views
Hello,

This is my RadGrid and I have RadButton inside of it, the thing is I want that the RadButton will be disabled for every click on the button.
(there is a button for each row inside of the RadGrid.)

The result that I'm getting for now is the RadButton only disabled one time instead of each row/click.

how can I do it for each click of the user on the button?




<telerik:RadGrid
         ID="rgOfficersToCallIn"
         runat="server"
         AutoGenerateColumns="False"
         AllowPaging="True"
         AllowSorting="True"
         PageSize="17"
         CellSpacing="0" GridLines="None"
         OnSortCommand="rgOfficersToCallIn_SortCommand"
         OnPageIndexChanged="rgOfficerToCallIn_PageIndexChanged"
         EnableHeaderContextFilterMenu="True" 
         Width="1200px"
         Height="640px">
            <ClientSettings EnablePostBackOnRowClick="true">              
                <Selecting AllowRowSelect="True" />
                <Scrolling AllowScroll="true" UseStaticHeaders="True" SaveScrollPosition="true" />
            </ClientSettings>
            <MasterTableView ShowHeadersWhenNoRecords="true" NoMasterRecordsText="No Employees Records to display" GridLines="None" ItemStyle-Height="23px" Font-Size="11px" TableLayout="Auto">
                <PagerStyle Mode="NumericPages" AlwaysVisible="true"></PagerStyle>
                <Columns>             
                    <telerik:GridBoundColumn HeaderText="HR EmployeeID" HeaderStyle-Width="120px" Display="false" DataField="HREmployeeID" FilterControlWidth="40px" ShowFilterIcon="false" SortExpression="HREmployeeID"></telerik:GridBoundColumn>
                    <telerik:GridBoundColumn HeaderText="Employee Number" HeaderStyle-Width="100px" DataField="EmployeeNumber" FilterControlWidth="95px" ShowFilterIcon="false" SortExpression="EmployeeNumber"></telerik:GridBoundColumn>
                    <telerik:GridBoundColumn HeaderText="First Name" HeaderStyle-Width="70px" DataField="FirstName" FilterControlWidth="105px" ShowFilterIcon="false"  SortExpression="FirstName"></telerik:GridBoundColumn>
                    <telerik:GridBoundColumn HeaderText="Last Name" HeaderStyle-Width="70px" DataField="LastName" FilterControlWidth="84px" ShowFilterIcon="false"  SortExpression="LastName"></telerik:GridBoundColumn>
                    <telerik:GridBoundColumn HeaderText="City" HeaderStyle-Width="90px" DataField="City" FilterControlWidth="78px" ShowFilterIcon="false" SortExpression="City"></telerik:GridBoundColumn>
                   <%-- <telerik:GridBoundColumn HeaderText="Guard Card Number" HeaderStyle-Width="110px" DataField="GuardCardNumber" FilterControlWidth="72px" ShowFilterIcon="false" SortExpression="GuardCardNumber"></telerik:GridBoundColumn>                    --%>
                    <telerik:GridDateTimeColumn  HeaderText="Guard Card Expired" HeaderStyle-Width="110px" DataField="GuardCardExpired" FilterControlWidth="63px" ShowFilterIcon="false"></telerik:GridDateTimeColumn>
                   <%-- <telerik:GridBoundColumn HeaderText="Fire Arm Number" HeaderStyle-Width="90px" DataField="FireArmNumber" FilterControlWidth="72px" ShowFilterIcon="false" SortExpression="FireArmNumber"></telerik:GridBoundColumn>                   
                    <telerik:GridDateTimeColumn  HeaderText="Fire Arm Expired" HeaderStyle-Width="90px" DataField="FireArmExpired" FilterControlWidth="63px" ShowFilterIcon="false"></telerik:GridDateTimeColumn>--%>
                    <telerik:GridTemplateColumn HeaderText="On Call" HeaderStyle-Width="80px" AllowFiltering="false" UniqueName="OnCallButton">
                    <ItemTemplate>
                      <telerik:RadButton ID="btnOnCall" runat="server" Text="On Call" CommandName="OnCall" >
                          <Icon PrimaryIconCssClass="rbAdd" PrimaryIconLeft="4" PrimaryIconTop="4"></Icon>
                      </telerik:RadButton>
                    </ItemTemplate>
                    </telerik:GridTemplateColumn>
                </Columns>
            </MasterTableView>
        </telerik:RadGrid>

***************************************VB CODE*********************
  Protected Sub rgOfficersToCallIn_ItemCommand(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles rgOfficersToCallIn.ItemCommand
        Try
            lblMessage.Text = ""
            divMessage.Visible = False            Dim setDate As Date? = rdtpCallIn.SelectedDate.ToString()
            If setDate Is Nothing Then
                Return
            End If
            Dim cellEmployeeID As TableCell = e.Item.Cells(DirectCast(eOfficersCallInColumns.HREmployeeID, Int32))
            If e.CommandName.ToString() = "OnCall" Then
                Dim dba As New DBAccess
                If dba.InsertCallInOfficer(m_SessionID, Convert.ToInt32(cellEmployeeID.Text), setDate) Then
                    If e.Item.Selected = True Then
                        Dim item As GridDataItem = DirectCast(e.Item, GridDataItem)
                        Dim btn As RadButton = DirectCast(item("OnCallButton").FindControl("btnOnCall"), RadButton)
                        btn.Enabled = False
                    End If
                    rgCallIn.Rebind()
                    upCallIn.Update()
                    divMessage.Visible = True
                    lblMessage.Text = "Officer is now on call for " + setDate
                Else
                    rgCallIn.DataSource = New String() {}
                    rgCallIn.DataBind()
                End If
            End If


        Catch ex As Exception
        End Try
    End Sub

Princy
Top achievements
Rank 2
 answered on 31 Mar 2014
2 answers
560 views
how to access the parent table column value in child table when we using the hierarchy of telerik Radgrid.

cs source-

protected void cmpreportgrid_OnItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e)
    {

         if (e.Item is GridDataItem)
        {
            if (e.Item.OwnerTableView.Name == "CompanyListDetails")
            {
                if (e.Item is GridDataItem)
                {
                    GridDataItem item = e.Item as GridDataItem;
                    Viewing view = item.DataItem as Viewing;
                    if (!view.isgroupcontact)
                    {
                       
                        item["ExpandColumn"].Text = "";
                    }
                    
                }  
            }
       else if (e.Item.OwnerTableView.Name == "GroupContact")
            {
                e.Item.OwnerTableView.ParentItem.Expanded=false;//how to get the parent table column here to set the condition for expandcolumn.
            }       
        }
    }
Konstantin Dikov
Telerik team
 answered on 31 Mar 2014
1 answer
118 views
I am attempting to upgrade a .Net web app with Telerik RadControls Q3 2011 to Q3 2013 and have run into skinning issues with the RadGrid.  The browser is also being upgraded from IE8 running in Compatibility View to IE11 in Edge Mode.

​Attached (IE8_RadGrid_Border.jpg) is what the RadGrid used to look like and needs to maintain its appearance.

Attached (IE11_RadGrid_Border.jpg) is what the RadGrid looks like after upgrading the Telerik .dll's and running in IE11. 

The issue is the gray border at the top and bottom of each cell is missing. 

Could this be a sizing issue?

Thanks,

Rob
Venelin
Telerik team
 answered on 31 Mar 2014
5 answers
765 views
Hello folks.

I was looking for a way to export my Telerik Chart image for use in documents and for printing, but didn't find a clean "Telerik solution" to the problem. The chart components features the Save(..) method, allowing us to save the generated image to the web-server. However, this is not what I wanted - I want to serve the image directly to the user as a download without writing it to the filesystem on the server.

Fortunately it is possible to save the image to a MemoryStream, so the following few lines does exactly what I need:

System.IO.MemoryStream ms = new System.IO.MemoryStream();  
this.chart.Save(ms, System.Drawing.Imaging.ImageFormat.Png);  
this.Page.Response.Clear();  
this.Page.Response.ClearHeaders();  
this.Page.Response.AddHeader("Content-disposition""attachment; filename=Chart.png");  
this.Page.Response.AddHeader("Content-type""image/png");  
this.Page.Response.BinaryWrite(ms.ToArray());  
this.Page.Response.End(); 

The browser will now pop up with the download dialog, allowing the user to either open or save the file.

If you want to have the image displayed in the browser, simply comment out the following line:
this.Page.Response.AddHeader("Content-disposition""attachment; filename=Chart.png");

Hopefully this tip will be useful to someone else :)

Telerik team: Wouldn't it be possible to implement the code above in an Export function, allowing less expirenced users to do export without worrying about memory streams, response headers and so on?

Best regards
Jimmy Thomsen
kishan
Top achievements
Rank 1
 answered on 31 Mar 2014
7 answers
136 views
Hi,

The combination of GridCellSelectionMode MultiColumn and UseStaticHeaders does not work, nothing happens onclick. 
Without UseStaticHeaders theres no problem to multiselect columns.
I have generic grid columns, all added programmatically.
Any solutions?

Best Regards
Angel Petrov
Telerik team
 answered on 31 Mar 2014
3 answers
200 views
Hello.

I have a quick question.

Is ther any way to use the Ajax Loading Panel for all Controls on my site that doing a Postback?
I don't want to define all controls in the manager that do a postback.

I just want the ajax loading panel to show up every postback.

Is this possibile?

Thank you for reading.
Daniel
Shinu
Top achievements
Rank 2
 answered on 31 Mar 2014
1 answer
84 views
Dear all,

I am trying to create a raddock control with title bar handle that can be expand/collapse horizontally rather than the vertically like in traditional demo http://demos.telerik.com/aspnet-ajax/dock/examples/overview/defaultcs.aspx

Any brilliant idea to share? Greatly appreciated.

Kind regards,

Jonathan
Shinu
Top achievements
Rank 2
 answered on 31 Mar 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?