Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
170 views
Hi 

OnRowDblClick is not firing  when i used OnRowSelected, i need to achieve below

when user selected a row, i need to display information
during double click they can able to edit those information.

if i didn't use OnRowSelected OnRowDblClick is firing. 
Princy
Top achievements
Rank 2
 answered on 05 Jun 2014
1 answer
39 views
HI Team,

  My requirement is showing Grid Header text dynamically from Data base,here is the below code which i am binding the header text statically, here i need to get from data base and bind to it , below is the code and please find the attached screen shot for requirement .

 <telerik:RadGrid ID="frmvwQDOB" runat="server" AllowSorting="True" AutoGenerateColumns="False"
                            DataMember="Firstname" GridLines="None" Width="100%">
                            <MasterTableView AutoGenerateColumns="False" TableLayout="Fixed">
                                <Columns>
                                    <telerik:GridTemplateColumn HeaderText="Incoming Record">
                                        <ItemTemplate>
                                            <div class="row-fluid data-fields gridbackcolor">                                        
                                              <%-- Header Text code --%>
                                                <asp:label runat="server" ID="lblg1Middlecol">
                                                    Middle Name</asp:label>                                                                                        
                                                <asp:label runat="server" ID="lblg1Lastnamecol">
                                                    Last Name</asp:label>                                                                                       
                                                <asp:label runat="server" ID="lblg1DOBcol">
                                                    Date of Birth</asp:label>                                                                                        
                                                <asp:label runat="server" ID="lblg1gradecol">
                                                    Grade</asp:label>                                                                                        
                                                <asp:label runat="server" ID="lblg1Racecol">
                                                    Race Code</asp:label>                                                                                        
                                                <asp:label runat="server" ID="lblg1Gendercol">
                                                    Gender</asp:label>                                            
                                            </div>                                        
                                            <div class="row-fluid data-fields">                                                
                                                    <asp:Label runat="server" ID="lblFirstName" Text='<%# Bind("Firstname") %>'></asp:Label>&nbsp;                                                                                                
                                                    <asp:Label runat="server" ID="lblMiddleName" Text='<%# Bind("Middlename") %>'></asp:Label>&nbsp;                                                                                                
                                                    <asp:Label runat="server" ID="lblLastname" Text='<%# Bind("Lastname") %>'></asp:Label>&nbsp;                                                                                                
                                                    <asp:Label runat="server" ID="lblDob" Text='<%# Bind("DOB") %>'></asp:Label>&nbsp;                                                                                                
                                                    <asp:Label runat="server" ID="lblGrade" Text='<%# Bind("GradeName") %>'></asp:Label>&nbsp;                                                                                                
                                                    <asp:Label runat="server" ID="lblRace" Text='<%# Bind("Race") %>'></asp:Label>&nbsp;                                                                                                
                                                    <asp:Label runat="server" ID="lblGender" Text='<%# Bind("GenderName") %>'></asp:Label>&nbsp;
                                                </div>                                           
                                </Columns>
                            </MasterTableView>
                        </telerik:RadGrid>


Thank you.
 
Princy
Top achievements
Rank 2
 answered on 05 Jun 2014
5 answers
42 views
I upgraded my AJAX to the December, 2012 version for .Net 2010, and now my Telerik Tab Strip errors out when I go to a page with it. I am using an AJAX Update Panel.

Here is the error message and part of my markup. It is a .net 2010 web site on Windows 2008 server and also Windows 2012 server with an older version of AJAX.

System.NullReferenceException:
Object reference not set to an instance of an object.
at Telerik.RadTabStripUtils.RadControl.GetUpdatingUpdatePanel(Control target)
at Telerik.RadTabStripUtils.RadControl.IsInAjaxUpdatePanel(Control target)
at Telerik.RadTabStripUtils.RadControl.Page_PreRenderComplete(Object sender,
EventArgs e)
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint,
Boolean includeStagesAfterAsyncPoint)

<ajax:ToolkitScriptManager ID="ToolkitScriptManager1112" runat="server">
</ajax:ToolkitScriptManager><asp:UpdatePanel id="UpdatePanel111" runat="server" UpdateMode="Always">
      <ContentTemplate>
         <div id="divTabStripAdminIncident" runat="server"
              style="background-color:#FFFFCC; width:100%;"
              visible="false">
            <radTS:RadTabStrip ID="TabStripAdminIncident" runat="server" AutoPostBack="True"
               Font-Bold="True" Skin="WebBlue">
               <Tabs>
                  <radTS:Tab ID="tabAdminEmpInfo" runat="server"
                             Text="Emp Info"
                             Value="AdminEmpInfo.aspx" />
                  <radTS:Tab ID="tabAdminMedicalData" runat="server"
                             Text="Medical Data"
                             Value="AdminMedicalData.aspx" />
                  <radTS:Tab ID="tabAdminInjuryData" runat="server"
                             Text="Injury Data"
                             Value="AdminInjuryData.aspx" />
                  <radTS:Tab ID="tabAdminInjuryDesc" runat="server"
                             Text="Injury Description"
                             Value="AdminInjuryDesc.aspx" />
                  <radTS:Tab ID="tabAdminRiskAssessment" runat="server"
                             Text="Risk Assessment"
                             Value="AdminRiskAssessment.aspx" />
                  <radTS:Tab ID="tabAdminDaysOffRestricted" runat="server"
                             Text="Days Off/Restr."
                             Value="AdminDaysOffRestricted.aspx" />
                  <radTS:Tab ID="tabAdminRootCF" runat="server"
                             Text="Root CF"
                             Value="AdminRootCF.aspx" />
                  <radTS:Tab ID="tabAdminContribCF" runat="server"
                             Text="Contrib CF"
                             Value="AdminContribCF.aspx" />
                  <radTS:Tab ID="tabAdminCorrectiveAction" runat="server"
                             Text="Corrective Actions"
                             Value="AdminCorrectiveAction.aspx" />
                  <radTS:Tab ID="AdminCorrectiveActionContractor" runat="server"
                             Text="Contractor Corrective Actions"
                             Value="AdminCorrectiveActionContractor.aspx" />
                  <radTS:Tab ID="tabAdminRiskAssessmentPotential" runat="server"
                             Text="Risk Assessment Potential"
                             Value="AdminRiskAssessmentPotential.aspx" />
                  <radTS:Tab ID="tabAdminApproval" runat="server"
                             Text="Approvals"
                             Value="AdminApproval.aspx" />
                  <radTS:Tab ID="tabAdminIncidentEMail" runat="server"
                             Text="EMail Incident Report" Visible="false"
                             Value="AdminIncidentEMail.aspx" />
                  <radTS:Tab ID="tabAdminSubmit" runat="server"
                             Text="Submit" Visible="false"
                             Value="AdminSubmit.aspx" />
               </Tabs>
            </radts:RadTabStrip>
         </div>
...
Kostadin
Telerik team
 answered on 05 Jun 2014
1 answer
199 views
I would like to style my group headers slightly different than the subgroup headers. I would also like to style my group footers slightly different than my subgroup footers.

by default, the group and subgroups are styled the exact same and it is hard to differentiate if you are looking at a group or subgroup, especially when looking at the footers.

See the attached picture. Ideally the group header text color would be different than the subgroup header text color. and the group footer bg color would be different from the subgroup footer bg color.

Any help is appreciated. Thanks.

Justin

Konstantin Dikov
Telerik team
 answered on 05 Jun 2014
1 answer
71 views
I've got  one Radgrid and inside it's GridTemplateColumn I've got RAdComboBox

The problem is that all this is inside a user control

<%@ Control Language="C#" AutoEventWireup="true" Inherits="MvcBeaWeb.GridLanguageView" CodeFile="GridLanguageView.ascx.cs" %>
<%@ Import Namespace="MvcBeaWeb" %>
<%@ Register Assembly="Telerik.Web.UI" TagPrefix="telerik" Namespace="Telerik.Web.UI" %>


  
    <telerik:RadScriptManager
        ID="RadScriptManager1"   
        runat="server"   
      >
    </telerik:RadScriptManager>
  
  
        
            <telerik:RadGrid ID="RadGridLang" runat="server" AutoGenerateColumns="False"  EnableEmbeddedSkins="False"  RegisterWithScriptManager=false 
                 DataTextField="Descr" DataValueField="LanImg"
                Height="100%" Width="120px" AppendDataBoundItems="true" CellSpacing="0" GridLines="None" OnLoad="RadGridLang_Load">
                <MasterTableView>
                    <Columns>
                        <telerik:GridTemplateColumn DataField="LanCd">
                            <ItemTemplate>
                                <img src="<%#DataBinder.Eval(Container.DataItem, "LanImg")%>" alt="ASP.NET hosting" />
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn DataField="LanCd">
                            <ItemTemplate>
                            <telerik:RadComboBox ID="RadComboBoxLang" runat="server"   EnableLoadOnDemand="true"  EnableEventValidation="true" AllowCustomText="true"   AppendDataBoundItems="true">
                               
                                 
                            </telerik:RadComboBox>
                          
                                           
                              
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                    </Columns>
                </MasterTableView>
            </telerik:RadGrid>
                                  ---------------------------------------------------------------------------
                                                 Myquestion is can someone help me step by step how can I add dybnamically in my .cs code of my user control   an ItemTemplate to my radcombobox which should be an anchor element <a href="" >descr </a>
The innerHtml (descr)  I should get from my list which should be the datasource for my radcombobox;; 

I saw this example:   http://www.telerik.com/help/aspnet-ajax/combobox-templates-adding.html but as my radcombobox is in user control I can find it in Page_Init event


      
Shinu
Top achievements
Rank 2
 answered on 05 Jun 2014
3 answers
107 views
I was notified that code (ASP.Net) that has not been touched in months was now broken. We are using the Scheduler to handle the initiation of commands being sent to devices on a regular basis. Up until today, this was working just fine. I brought up the project and ran it in the VS 2012 debugger. Sure enough, when I tried to open the context menu for the appointment, the debugger intercepted a null reference in the javascript file RadContextMenuScripts.js at line 188. this._getContextMenuElement() returns null. I further tested it on Chrome and found the same behavior.

One interesting point is that the TimeSlotContextMenu works just fine.

The definition of the AppointmentContextMenu is:
<AppointmentContextMenus>
<telerik:RadSchedulerContextMenu runat="server" ID="AppointmentContextMenu">
<Items>
<telerik:RadMenuItem Text="Delete" Value="CommandDelete" />
<telerik:RadMenuItem Text="Execution Summary" Value="Summary" />
<telerik:RadMenuItem Text="View Commands" Value="Commands" />
</Items>
</telerik:RadSchedulerContextMenu>
</AppointmentContextMenus>

When the menu is opened, the following code is executed:

function RadScheduler1_AppointmentContextMenu( sender, args )
{
SelectedAppointment = args.get_appointment();
SelectedDate.val( SelectedAppointment.get_start().format( "MM/dd/yyyy" ) );
AppointmentContextMenu.show( args.get_domEvent() );
}

I traced from the last line and the crash happens when the menu tries to show itself.
If you would like to view what is happening, let me know and we can get that set-up.
Boyan Dimitrov
Telerik team
 answered on 05 Jun 2014
5 answers
136 views
A problem that we cannot explain or work around.  Often when our end users right click on a table to edit some table properties, text formatting is completely changed, like a whole new style is applied, even when no actual changes were made in the properties dialogue, just by launching it and clicking OK.  We found that the table was being changed, and a lot of TH were appearing.  We then narrowed it down to the Heading columns field in the properties dialogue was defaulting to 3 and was being applied to the table when OK was clicked.  We did not program any accessible features, and do not want this.  Attached is a print screen of the Heading Columns field with a mysterious 3 in it, that we think is then being applied to the table.

How can we stop this, or programmatically access this field to keep it at 0.

Thank you.
Ianko
Telerik team
 answered on 05 Jun 2014
1 answer
88 views
hello,

I have radgrid with multi levels grouping,

<GroupByExpressions>
      <telerik:GridGroupByExpression>
         <GroupByFields>
              <telerik:GridGroupByField FieldName="STORE_ID" />
          </GroupByFields>
          <SelectFields>
              <telerik:GridGroupByField FieldName="STORE_NAME" FieldAlias="STORE_NAME" HeaderValueSeparator=""/>
          </SelectFields>
      </telerik:GridGroupByExpression>
      <telerik:GridGroupByExpression>
             <GroupByFields>
              <telerik:GridGroupByField FieldName="PROVIDER_ID" />
          </GroupByFields>
          <SelectFields >
               <telerik:GridGroupByField FieldName="PROVIDER_NAME" FieldAlias="PROVIDER_NAME" HeaderValueSeparator=""/>
          </SelectFields>
          <GroupByFields></GroupByFields>
      </telerik:GridGroupByExpression>
            </GroupByExpressions>

grouping works very well, but i want to add a template header group foreach one to create a checkbox column (for each row, and group ).


how to achieve that ??
Eyup
Telerik team
 answered on 05 Jun 2014
8 answers
397 views
Hi,

I am so stuck in finding out how can i configure the datetimecolumn in edit mode. Situation is I have to enter time in minutes in the edit mode: HH:mm (24hrs time) so user may enter time say 59mins --> 00:59. I am using GridDateTimeColumn. It is displaying the time correctly in the grid because I am using the DataFormatString:
<tel:GridDateTimeColumn Datafield="MyTime" ...UniqueName="MyTime"  ... DataFormatString="{0:HH:mm}"... PickerType="TimeOnly" />
But when I edit any row in the grid the MyTime column displays the time : 12:59 AM which is quite confusing.

If I use a RadTimePicker outside the grid the I can setup the dateinput view as:
<tel:RadTimePicker ... >
  <DateInput runat="server" DateFormat="HH:mm" DisplayDateFormat="HH:mm" />
</tel:RadTimePicker>

I also tried to setup the properties of datatime control in ItemDataBound but it is not applying. Is there any thing like DateInput.... in GridDateTimeColumn, so that we can set the options (DateInput,No popup button etc) in Edit / insert mode.

Any help will be so much appreciated.

Cheers, Ali

Angel Petrov
Telerik team
 answered on 05 Jun 2014
3 answers
163 views
Hi,
We have a radgrid which have mastertable and detailtables and we would like to have a gray background starting from extreme left. We managed doing for mastertable header by using below css

.rgRow .rgExpandCol
       {
         background-color:Gainsboro !important;
         
       } 

Please help us so that we can achieve the same effect for detailtable headers.
Please find the attached image.
Venelin
Telerik team
 answered on 05 Jun 2014
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?