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

I have a scenario where I want the user to be able to type in the number of hours to allocate to a task on the Calendar. To do this I have created a textbox to enter the data into using:

Protected Sub RadCalendar1_DayRender(ByVal sender As Object, ByVal e As Telerik.Web.UI.Calendar.DayRenderEventArgs) Handles RadCalendar1.DayRender
    Dim label As New Label()
    label.Text = e.Day.[Date].Day.ToString()
    e.Cell.Controls.Add(label)
    Dim dayOfWeek As String = e.Day.[Date].DayOfWeek.ToString()
    If dayOfWeek <> "Saturday" And dayOfWeek <> "Sunday" Then
        Dim txtBox As New TextBox()
        txtBox.Text = "xx" 'Will be read from database
        e.Cell.Controls.Add(txtBox)
    End If
End Sub

The question I have now is how to I read all the days of the Calendar, get the contents of each textBox and do something with it? I would like to do this server side.

I've spent some time with the documentation without finding anything that fits the bill.

David Penny
Angel Petrov
Telerik team
 answered on 15 Aug 2013
3 answers
528 views
I have RadGrid getting data from client side.  I found that ItemStyle-HorizontalAlign="Center" was ignored (i.e. always left aligned)

        <telerik:RadGrid ID="grdModule" runat="server" AutoGenerateColumns="False" CellSpacing="0"
            GridLines="None" OnNeedDataSource="grdModule_NeedDataSource" AllowMultiRowSelection="true"
            AllowFilteringByColumn="True" OnItemCreated="grdModule_ItemCreated" AllowSorting="True"
            ShowFooter="true">
            <ClientSettings>
                <Selecting AllowRowSelect="true" />
                <ClientEvents OnRowSelected="grdModule_RowSelected" OnRowDeselected="grdModule_RowDeselected"
                    OnRowDataBound="grdModule_RowDataBound" OnCommand="grdModule_Command" />
                <Scrolling AllowScroll="true" UseStaticHeaders="true" ScrollHeight="400px" />
            </ClientSettings>
            <MasterTableView TableLayout="Auto" DataKeyNames="Id" ClientDataKeyNames="Id">
                <Columns>
                    <telerik:GridClientSelectColumn UniqueName="colSelect" HeaderStyle-Width="30px">
                    </telerik:GridClientSelectColumn>
                    <telerik:GridBoundColumn UniqueName="PinCount" DataField="PinCount" HeaderText="Pin Count"
                        DataFormatString="{0:N0}pin" DataType="System.Int32" SortExpression="PinCount"
                        HeaderStyle-HorizontalAlign="Left" HeaderStyle-Width="60px" ItemStyle-HorizontalAlign="Center">
                        <FilterTemplate>
                            <telerik:RadDropDownList ID="ddlPinCount" runat="server" ClientIDMode="Static" DataTextField="Value"
                                DataValueField="Key" Width="50px" OnClientSelectedIndexChanged="dropdownChanged">
                            </telerik:RadDropDownList>
                        </FilterTemplate>
                    </telerik:GridBoundColumn>
                    <telerik:GridTemplateColumn UniqueName="Depth" DataField="Depth" HeaderText="Depth"
                        HeaderStyle-HorizontalAlign="Center" HeaderStyle-Width="68px">
                        <ClientItemTemplate>
                            #=formatDepth(Depth)#
                        </ClientItemTemplate>
                        <FilterTemplate>
                            <telerik:RadDropDownList ID="ddlDepth" runat="server" ClientIDMode="Static" DataTextField="Value"
                                DataValueField="Key" Width="60px" OnClientSelectedIndexChanged="dropdownChanged">
                            </telerik:RadDropDownList>
                        </FilterTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridBoundColumn UniqueName="DataWidth" DataField="DataWidth" HeaderText="Datawidth"
                        HeaderStyle-HorizontalAlign="Center" HeaderStyle-Width="110px">
                        <FilterTemplate>
                            <telerik:RadDropDownList ID="ddlDataWidth" runat="server" ClientIDMode="Static" DataTextField="Value"
                                DataValueField="Key" Width="105px" OnClientSelectedIndexChanged="dropdownChanged">
                            </telerik:RadDropDownList>
                        </FilterTemplate>
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn UniqueName="Voltage" DataField="Voltage" HeaderText="Voltage"
                        HeaderStyle-HorizontalAlign="Center" HeaderStyle-Width="100px">
                        <FilterTemplate>
                            <telerik:RadDropDownList ID="ddlVoltage" runat="server" ClientIDMode="Static" DataTextField="Value"
                                DataValueField="Key" Width="90px" OnClientSelectedIndexChanged="dropdownChanged">
                            </telerik:RadDropDownList>
                        </FilterTemplate>
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn UniqueName="Speed" DataField="Speed" HeaderText="Speed"
                        HeaderStyle-HorizontalAlign="Center" HeaderStyle-Width="160px">
                        <FilterTemplate>
                            <telerik:RadDropDownList ID="ddlSpeed" runat="server" ClientIDMode="Static" DataTextField="Value"
                                DataValueField="Key" Width="150px" OnClientSelectedIndexChanged="dropdownChanged">
                            </telerik:RadDropDownList>
                        </FilterTemplate>
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn UniqueName="DRAMCount" DataField="DRAMCount" HeaderText="# DRAMs"
                        DataFormatString="{0:N0}" HeaderStyle-HorizontalAlign="Center" HeaderStyle-Width="60px">
                        <FilterTemplate>
                            <telerik:RadDropDownList ID="ddlDRAMCount" runat="server" ClientIDMode="Static" DataTextField="Value"
                                DataValueField="Key" Width="55px" OnClientSelectedIndexChanged="dropdownChanged">
                            </telerik:RadDropDownList>
                        </FilterTemplate>
                        <ItemStyle HorizontalAlign="Center" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn UniqueName="DRAMOrg" DataField="DRAMOrg" HeaderText="DRAM Org"
                        HeaderStyle-HorizontalAlign="Center" HeaderStyle-Width="150px" ItemStyle-HorizontalAlign="Center">
                        <FilterTemplate>
                            <telerik:RadDropDownList ID="ddlDRAMOrg" runat="server" ClientIDMode="Static" DataTextField="Value"
                                DataValueField="Key" Width="140px" OnClientSelectedIndexChanged="dropdownChanged">
                            </telerik:RadDropDownList>
                        </FilterTemplate>
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn UniqueName="Rank" DataField="Rank" HeaderText="# ranks"
                        HeaderStyle-HorizontalAlign="Center" HeaderStyle-Width="55px">
                        <FilterTemplate>
                            <telerik:RadDropDownList ID="ddlRank" runat="server" ClientIDMode="Static" DataTextField="Value"
                                DataValueField="Key" Width="40px" OnClientSelectedIndexChanged="dropdownChanged">
                            </telerik:RadDropDownList>
                        </FilterTemplate>
                        <ItemStyle HorizontalAlign="Center" />
                    </telerik:GridBoundColumn>
                    <telerik:GridTemplateColumn UniqueName="Height" DataField="Height" HeaderText="Module height"
                        HeaderStyle-HorizontalAlign="Center" HeaderStyle-Width="130px">
                        <ClientItemTemplate>
                            #=formatHeight(Height)#
                        </ClientItemTemplate>
                        <FilterTemplate>
                            <telerik:RadDropDownList ID="ddlHeight" runat="server" ClientIDMode="Static" DataTextField="Value"
                                DataValueField="Key" Width="120px" OnClientSelectedIndexChanged="dropdownChanged">
                            </telerik:RadDropDownList>
                        </FilterTemplate>
                    </telerik:GridTemplateColumn>
                </Columns>
            </MasterTableView>
        </telerik:RadGrid>

I am using ASP.NET 4 and Telerik 2013.1.417.  Any idea?
Venelin
Telerik team
 answered on 15 Aug 2013
1 answer
242 views

In my login page, i use radtextbox as passord input box and radtoolbar button as [Login] button.

it works fine if user input password and  then click [Login] button by mouse.

but it had problem that if user input password and then press [ENTER]. it cannot capture the event and then login. 

the password will disappear and remain login page after press [ENTER].

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="IntranetPassword.aspx.vb" Inherits="Remuneration_IntranetPassword" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head id="Head1" runat="server">
</head>
<body >
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
      
     <TABLE BORDER=0 bgcolor="#FFFFFF" width="386" height="300">
         <tr>
            
            <TD width="400" height="42"
              <p align="justify">
              <p align="justify">
                  <asp:Label ID="lbDescription" runat="server" Text="This page is STRICTLY CONFIDENTIAL. Please input your intranet password again to validate your credential."></asp:Label>
                                         
              </TD>
          </TR>
            
          <TR bgcolor="#99CCFF"
            <TD height="1" width="400"> <FONT style="font-weight: bold; font-size: medium; color: #800000"></FONT>Please Enter Your Intranet Password </TD>
          </TR>
          <TR>
            <TD width="449" height="228" nowrap> 
              <div id="Layer1" style="position:absolute; width:184; height:191; z-index:1; left: 51; top: 204; background-image: url('../Images/login.gif'); border: 1px none #000000; background-repeat: no-repeat;"
                <table height="48" >
                  <tr>
                    <td height="42" width="167" nowrap colspan="2"> </td>
                  </tr>
                   
                  <tr>
                    <td width="167" height="1" nowrap colspan="2"
                        
                    </td>
                  </tr>
   
<tr>
                    <td width="167" height="9" colspan="2" nowrap> 
                      <div align="left"><b><br /><font size="2">   Intranet Password</font></b><font size="2">
                        </font
  
                      </div>
                      </td>    
                  </tr>
   
                <tr>
                    <td width="167" nowrap height="1" colspan="2"
       
                      <p align="right"
                      <telerik:RadTextBox ID="dfPassword" runat="server" Width="150px" TextMode="Password">
                   
                </telerik:RadTextBox>
                  <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="* Required" ControlToValidate="dfPassword"></asp:RequiredFieldValidator>
                    
                    </td>    
                  </tr>
                <tr>
                    <td width="62" height="31"></td>
                    <td width="109" height="31" nowrap> 
    <telerik:RadToolBar ID="RadToolBar1" runat="server" Width="56px" AutoPostBack="true" OnButtonClick="RadToolBar1_ButtonClick">
        <Items>
            <telerik:RadToolBarButton Value="Save" Text="LOGIN" Width="40px" CommandName="DefaultButton">
            </telerik:RadToolBarButton>
            
        </Items>
    </telerik:RadToolBar>
           <asp:PlaceHolder runat="server" ID="ph_javascript">
<script type="text/javascript">
    function onEnter(e) {
        if (e.keyCode == 13) {
            window["<%=RadToolBar1.ClientID%>"].GetButtonByCommand("DefaultButton").EventClick(e);
        }
    }
  
    if (document.attachEvent) {
        document.attachEvent("onkeyup", onEnter);
    }
    else if (document.addEventListener) {
        document.addEventListener("keyup", onEnter, false);
    }
</script>
    </asp:PlaceHolder>
                      </td></tr>
                </table>
  
                  
                </div>
           </TD>
          </TR>
      <tr>
      <td>
                            
      </td>
      </tr>
          </TABLE>
  
  
    </form>
</body>
</html>

Code Behind:

Imports Telerik.Web.UI
  
Partial Class Remuneration_IntranetPassword
    Inherits System.Web.UI.Page
  
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)
  
    End Sub
  
    Protected Sub RadToolBar1_ButtonClick(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadToolBarEventArgs) Handles RadToolBar1.ButtonClick
  
        If e.Item.Value = "Save" Then
            Dim dc As New dcHRISDataContext
  
            Dim rec = (From d In dc.UserDBs Where d.SID = GetProfile() Select d).FirstOrDefault
            If Not IsNothing(rec) Then
                If rec.Password = dfPassword.Text Then
  
  
                xxxxxxx
  
                End If
  
            End If
            lbDescription.Text = "The intranet password is incorrect."
            lbDescription.ForeColor = Drawing.Color.Red
        End If
  
    End Sub
  
  
End Class



Kate
Telerik team
 answered on 15 Aug 2013
10 answers
234 views
Hi,

Following error is happening:
Unhandled exception at line 108, column 1 in http://aspnet-scripts.telerikstatic.com/ajaxz/2012.3.1308/Ajax/Ajax.js
0x800a138f - JavaScript runtime error: Unable to get property 'id' of undefined or null reference...
In Ajax.js dynamic file
if(this.Type=="Telerik.Web.UI.RadAjaxManager"){if(e.get_postBackElement()!=this.get_element()){var h=this._updatePanels.split(",");
if(Array.contains(h,e.get_postBackElement().id))

I have 
<asp:Panel ID="divMain" runat="server" CssClass="maincenterDiv" ClientIDMode="Static">
<asp:RadioButtonList ID="rbType" runat="server" RepeatDirection="Horizontal" 
AutoPostBack="True" OnSelectedIndexChanged="rbTrip_SelectedIndexChanged" RepeatLayout="Flow">
<asp:ListItem Value="One"> One Way </asp:ListItem>
<asp:ListItem Value="Two" Selected="True"> Two Way </asp:ListItem>
</asp:RadioButtonList>
<telerik:RadComboBox ID="RadCBDestination" runat="server" ShowDropDownOnTextboxClick="false">
<Items>
<telerik:RadComboBoxItem runat="server" Text="Australia (AUS)" Value="AUS" />
<telerik:RadComboBoxItem runat="server" Text="ASIA (ASIA)" Value="ASIA" />
</Items>
</telerik:RadComboBox>
<telerik:RadDatePicker ID="radStartDate" runat="server" Culture="en-AU" 
HiddenInputTitleAttibute="Visually hidden input created for functionality purposes." 
WrapperTableSummary="Table holding date picker control for selection of dates." Skin="Metro">
<ClientEvents OnDateSelected="radStartDate_OnDateSelected" />
</telerik:RadDatePicker>
<asp:Panel ID="pnlUpdate" CssClass="rowSection" runat="server">
<telerik:RadDatePicker ID="radEndDate" runat="server">
</telerik:RadDatePicker>
</asp:Panel>
<telerik:RadAjaxManager ID="RADAM" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="rbType">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="pnlUpdate" UpdatePanelRenderMode="Inline" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="btnSearch">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="divMain" LoadingPanelID="RADAJPanelBooking" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    <telerik:RadAjaxLoadingPanel runat="server" Skin="MetroTouch" ID="RADAJPanelBooking" 
ClientIDMode="Static"
        Style="top0left0positionabsoluteheight100%width100%" IsSticky="True">
    </telerik:RadAjaxLoadingPanel>
<asp:Button ID="btnSearch" CssClass="roundbutton" runat="server" AlternateText="Search" 
OnClick="btnSearch_Click" />
</asp:Panel>
<telerik:RadCodeBlock ID="radcode" runat="server">
    <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
    <script type="text/javascript" id="telerikClientEvents">        
        function radStartDate_OnDateSelected(sender, args) {
            var RADEndDate = $find("<%=radEndDate.ClientID%>");
            var date = sender.get_selectedDate();
            var retDate = RADEndDate.get_selectedDate();             
                     RADEndDate.set_selectedDate(date);
                     RADEndDate.set_minDate(date);
}                 
             
        }
        function RequestStart(sender, eventArgs) {
            var eventTarget = eventArgs.get_eventTarget();
            if (eventTarget.indexOf("btnSearch") != -1) {
                eventArgs.set_enableAjax(false);
            }
        }
    </script>      
</telerik:RadCodeBlock>


This is happening only if radio button rbType has Selected="true".
If we click radiobutton first and fill the form and click search it is showing loading panel.
But If we don't click radiobutton and fill the form and click search it is giving error.

So I would assume some id is not set in the first load. It is giving error.
And when post back happened i.e after clicking radio button the id got loaded and  it is working.

How to solve this?

Best Regards,
Damodar
Maria Ilieva
Telerik team
 answered on 15 Aug 2013
2 answers
226 views
I am trying to upload files to a folder and have been foloowing the examples online, but always get the following error.  It uploads a funky fiel name to the tempfolder then trys to find the file and upload, what is strange is that if more than 1 file it finds all but the last one and then erros out.  Dont get this one.

telerik:RadAsyncUpload ID="RadUpload" runat="server" Width="260px" AllowedFileExtensions="pdf, docx, doc, xfdl" MultipleFileSelection="Automatic"
TargetFolder="~/Uploads" TemporaryFolder="~/Uptemp"></telerik:RadAsyncUpload>
 
 
 
 'Upload all the files to a permanent location
            For Each file As UploadedFile In attachments.UploadedFiles
                Dim TargetFolder As String = attachments.TargetFolder
                file.SaveAs(TargetFolder & "Name " & file.GetName.ToString)
 
                sql = "Insert PriorServiceUpload (intPriorServiceId, strUrl) VALUES (" & PriorId & ", '" & file.FileName & "')"
 
                insertUpdateDelete(sql)
            Next


Could not find file 'C:\inetpub\wwwroot\Recruiting\Uptemp\fpgummmw.syg'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
 
Exception Details: System.IO.FileNotFoundException: Could not find file 'C:\inetpub\wwwroot\Recruiting\Uptemp\fpgummmw.syg'.
 
Source Error:
 
Line 54:             For Each file As UploadedFile In attachments.UploadedFiles
Line 55:                 Dim TargetFolder As String = attachments.TargetFolder
Line 56:                 file.SaveAs(TargetFolder & "Name " & file.GetName.ToString)
Kevin
Top achievements
Rank 1
 answered on 15 Aug 2013
0 answers
131 views
This has been solved.


Felipe Casanova
Top achievements
Rank 1
 asked on 15 Aug 2013
1 answer
138 views
hi,
I updated my telerik dll's with new one's.Then after i observed rad combo box styles are changed,
Please find the attachment...
Updated dll's are listed below.

1.Telerik.Web.Design.dll
2.Telerik.Web.UI.Skins.dll
3.Telerik.Web.UI.dll
Magdalena
Telerik team
 answered on 15 Aug 2013
1 answer
117 views
My combobox filter only works the first time it is selected.
I am using the same user control on the page multiple times so I need a unique javascript function name

<telerik:RadGrid ID="grvProjectSummary" runat="server"
    AllowAutomaticDeletes="True" AllowFilteringByColumn="True" AllowPaging="True"
    AllowSorting="True" AutoGenerateColumns="False" CellSpacing="0"
    CssClass="eGrantsGroupBox" GridLines="None"
    PageSize="25" Skin="Office2010Blue" Width="100%">
    <HeaderStyle CssClass="eGrantsGridHeader" />
    <ItemStyle CssClass="eGrantsTableRow" />
    <AlternatingItemStyle CssClass="eGrantsTableAltRow" />
    <GroupingSettings CaseSensitive="false" />
    <MasterTableView CommandItemDisplay="Bottom" DataKeyNames="GrantProjectPK, AgencyFK"
        ShowHeadersWhenNoRecords="true" TableLayout="Fixed">
        <CommandItemSettings ExportToPdfText="Export to PDF"
            ShowAddNewRecordButton="False" ShowExportToCsvButton="True"
            ShowExportToExcelButton="True" ShowExportToPdfButton="True"
            ShowExportToWordButton="True" ShowRefreshButton="True" />
        <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
        </RowIndicatorColumn>
        <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
        </ExpandCollapseColumn>
        <Columns>

            <telerik:GridNumericColumn Aggregate="Count" AllowFiltering="False"
                DataField="GrantProjectPK" DecimalDigits="2"
                FilterControlAltText="Filter GrantProjectPKColumn column" HeaderText="&nbsp;"
                ReadOnly="True" ShowFilterIcon="False" SortExpression="GrantProjectPK"
                UniqueName="GrantProjectPKColumn">
                <HeaderStyle Width="40px" />
                <ItemStyle HorizontalAlign="Left" VerticalAlign="Top" Width="40px" />
            </telerik:GridNumericColumn>

            <telerik:GridBoundColumn AutoPostBackOnFilter="true" Visible="true"
                CurrentFilterFunction="Contains" DataField="AgencyName"
                FilterControlWidth="100px" HeaderText="Agency/LEA" ShowFilterIcon="true"
                SortExpression="AgencyName"
                UniqueName="AgencyNameColumn">
                <HeaderStyle HorizontalAlign="Left" Width="180px" />
                <ItemStyle HorizontalAlign="Left" VerticalAlign="Top" Width="180px" />
            </telerik:GridBoundColumn>

            <telerik:GridBoundColumn AutoPostBackOnFilter="true" Visible="false"
                CurrentFilterFunction="Contains" DataField="GrantProgramTypeTitle"
                FilterControlWidth="60px" HeaderText="Program Title" ShowFilterIcon="true"
                SortExpression="GrantProgramTypeTitle"
                UniqueName="GrantProgramTypeTitleColumn">
                <HeaderStyle HorizontalAlign="Left" Width="180px" />
                <ItemStyle HorizontalAlign="Left" VerticalAlign="Top" Width="180px" />
            </telerik:GridBoundColumn>

            <telerik:GridBoundColumn UniqueName="columnAUNumber" AutoPostBackOnFilter="true"
                ReadOnly="true" CurrentFilterFunction="Contains" DataField="AUNumber" HeaderText="AUN"
                ShowFilterIcon="true" SortExpression="AUNumber" FilterControlWidth="60px">
                <HeaderStyle Width="100px"></HeaderStyle>
                <ItemStyle Width="100px" HorizontalAlign="Left" />
            </telerik:GridBoundColumn>

            <telerik:GridTemplateColumn DataField="StepName" HeaderText="Workflow Step" UniqueName="StepName" SortExpression="StepName">
                <HeaderStyle HorizontalAlign="Left" Width="120px" />
                <ItemStyle HorizontalAlign="Left" VerticalAlign="Top" Width="120px" />
                <FilterTemplate>
                    <telerik:RadComboBox ID="rcmbStepFilter" DataSourceID="SqlDataSource3" Width="110px" Skin="Office2010Blue"
                        DataTextField="StepName"
                        DataValueField="StepName" AppendDataBoundItems="true"
                        SelectedValue='<%# TryCast(Container, GridItem).OwnerTableView.GetColumn("StepName").CurrentFilterValue%>'
                        runat="server">
                        <Items>
                            <telerik:RadComboBoxItem />
                        </Items>
                    </telerik:RadComboBox>
                    <telerik:RadScriptBlock ID="RadScriptBlock2" runat="server">
                        <script type="text/javascript">
                            function SelectedIndexChanged_<%= ClientID %>(sender, args) {
                                var tableView = $find("<%# TryCast(Container, GridItem).OwnerTableView.ClientID %>");
                                tableView.filter("StepName", args.get_item().get_value(), "EqualTo");
                            }
                        </script>
                    </telerik:RadScriptBlock>
                </FilterTemplate>
                <ItemTemplate>
                    <%# Eval("StepName")%>
                </ItemTemplate>
            </telerik:GridTemplateColumn>

            <telerik:GridDateTimeColumn UniqueName="columnSubmitDate"
                DataField="SubmitDate.date" HeaderText="Submit Date" FilterControlWidth="80px"
                SortExpression="SubmitDate.date" DataType="System.DateTime" DataFormatString="{0:MM/dd/yyyy}"
                ShowFilterIcon="true" CurrentFilterFunction="EqualTo">
                <HeaderStyle HorizontalAlign="Left" Width="120px" />
                <ItemStyle HorizontalAlign="Left" VerticalAlign="Top" Width="120px" />
            </telerik:GridDateTimeColumn>
                        
            <telerik:GridBoundColumn AutoPostBackOnFilter="true"
                CurrentFilterFunction="Contains" DataField="LastName" AllowFiltering="false"
                FilterControlWidth="60px" EmptyDataText="Unassigned"
                HeaderText="Assigned To" ShowFilterIcon="false" SortExpression="LastName"
                UniqueName="AssignedToColumn">
                <HeaderStyle HorizontalAlign="Left" Width="100px" />
                <ItemStyle HorizontalAlign="Left" VerticalAlign="Top" Width="100px" />
            </telerik:GridBoundColumn>

            <telerik:GridButtonColumn UniqueName="SelectCommandColumnNoAjax"
                ButtonType="ImageButton" Text="Assign Reviewers"
                ImageUrl="~/images/users_add.png"
                CommandArgument="" CommandName="AssignUsers"
                ItemStyle-HorizontalAlign="Center">
                <HeaderStyle Width="40px"></HeaderStyle>
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="40px"></ItemStyle>
            </telerik:GridButtonColumn>

            <telerik:GridButtonColumn ButtonType="ImageButton" CommandArgument=""
                CommandName="SEL" ImageUrl="~/images/select_program_sm.gif" Text="View Program"
                UniqueName="SelectCommandColumn">
                <HeaderStyle Width="40px" />
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="40px" />
            </telerik:GridButtonColumn>

            <telerik:GridButtonColumn ButtonType="ImageButton" CommandArgument=""
                CommandName="REVIEW" ImageUrl="~/images/review.png" Text="Review"
                UniqueName="ReviewCommandColumn">
                <HeaderStyle Width="40px" />
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="40px" />
            </telerik:GridButtonColumn>

            <telerik:GridNumericColumn Aggregate="Count" AllowFiltering="False"
                DataField="ProjectStatusWorkflowRouteStepPK"
                HeaderText="&nbsp;" ReadOnly="True" ShowFilterIcon="False" Visible="False"
                UniqueName="ProjectStatusWorkflowRouteStepPKColumn">
                <HeaderStyle Width="40px" />
                <ItemStyle HorizontalAlign="Left" VerticalAlign="Top" Width="40px" />
            </telerik:GridNumericColumn>

        </Columns>
    </MasterTableView>
    <ClientSettings>
        <Resizing AllowColumnResize="True" />
    </ClientSettings>
    <FilterMenu EnableEmbeddedSkins="False" EnableImageSprites="False">
    </FilterMenu>
    <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default"
        EnableEmbeddedSkins="False">
    </HeaderContextMenu>
</telerik:RadGrid>

    Private Sub SetFilterComboScript()
        For Each filterItem As GridFilteringItem In grvProjectSummary.MasterTableView.GetItems(GridItemType.FilteringItem)
            Dim rcmbStepFilter As RadComboBox = DirectCast(filterItem.FindControl("rcmbStepFilter"), RadComboBox)
            rcmbStepFilter.OnClientSelectedIndexChanged = "SelectedIndexChanged_" + Me.ClientID
        Next
    End Sub

    Private Sub grvProjectSummary_NeedDataSource(sender As Object, e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles grvProjectSummary.NeedDataSource
        _ProjectWorkflowRouteType = ViewState("ProjectWorkflowRouteType")
        Dim myFilter As Integer = ViewState("myFilter")
        Dim GrantProgramFK As Integer = CInt(ddlGrantPrograms.SelectedValue)
        Dim UserFK As Integer = CInt(Session(eGrantsConst_Session.USER_LOGIN_ID))
        If HttpContext.Current.User.IsInRole(eGrantsConst_Role.BUREAU_REVIEW_MANAGER) Then
            If ddlReviewers.SelectedValue > 0 Then
                UserFK = ddlReviewers.SelectedValue
            End If
        End If
        grvProjectSummary.DataSource = BLL.BusObjects.ReviewBO.GetReviewWorkQueuProjectsByBureauFKGrantProgramYearFKRouteTypeFKUserFK(Session(eGrantsConst_Session.SELECTED_PROGRAM_YEAR), _
                                                                                                                                        CInt(Session(eGrantsConst_Session.SELECTED_BUREAU_ID)), _
                                                                                                                                        CInt(Session(eGrantsConst_Session.SELECTED_PROGRAM_YEAR_ID)), _
                                                                                                                                        _ProjectWorkflowRouteType, _
                                                                                                                                        UserFK, _
                                                                                                                                        GrantProgramFK, _
                                                                                                                                        myFilter)
        SetFilterComboScript()
    End Sub
Don
Top achievements
Rank 1
 answered on 15 Aug 2013
1 answer
155 views
Hi,

I have been an avid Telerik user for about 7 years now and am having a problem that I have never experienced before. I recently upgraded a website from .net 4.0 to .net 4.5 as well as pointed my site at the "bin45" versions of the RadControls dll's. Problem is, now when I publish my app it publishes the bin40 dll, even though it clearly shows in my project that I have the bin45 dll. I have checked the properties of the dll and viewed the path stored in the skin's refresh file -- all is pointing to "45". I am at a loss. I am now in the maddening situation where I have to remember to manually copy the bin45 version of the skins dll over evertime I publish. Help!
Andrey
Telerik team
 answered on 15 Aug 2013
3 answers
116 views
Hi

I'm a new user to Telerik's grid. My company is right now in a process to switch to Telerik's products, since our current supplier has ended support of their grid.

In our current grid we have a function that we use a lot - to be able to click a cell for edit one cell (like this): http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/editondblclick/defaultvb.aspx and after entering a value press Enter to update the grid and the data behind - similar to this: http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/editondblclick/defaultvb.aspx. Some places we even do it in a hierarchical grid: http://demos.telerik.com/aspnet-ajax/grid/examples/programming/detailtabledatabind/defaultvb.aspx.

I've made the open cell on double click in a hierarchical grid - but I can't seem the make it update using Enter - is this possible ??

Kind regards

Jan Vennike
Angel Petrov
Telerik team
 answered on 15 Aug 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?