Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
168 views

Good afternoon, I believe we have a bug in the Rad Grid.

I have the following code to display a grid with a date field formatted a {0:d}. Being in Australia this begins correctly in d/MM/yyyy format, but as soon as you scroll (the scond click does it) the format changes to MM/dd/yyyy (american date format). Setting virtualization to false cures it. Setting the format explicitly cures it, but as we have an international application I don't want to do that. There are no OnScroll events on the page or server that I have added. Any ideas?

 

<telerik:RadGrid ID="dgSessions" runat="server"  AutoGenerateColumns="false"
            AllowSorting="true" GroupingEnabled="false" 
            EnableHeaderContextMenu="true" AllowPaging="true" PageSize="1000" OnNeedDataSource="dgSessions_NeedDataSource">
                
            <MasterTableView TableLayout="Auto">
                <Columns>
                     <telerik:GridDateTimeColumn UniqueName="SessionKey" HeaderText="" DataField="SessionKey" DataFormatString="<a target='_blank' href='SessionDetails.aspx?sessionkey={0}'>View</a>" ReadOnly="True" ShowSortIcon="False" ShowFilterIcon="False">
                    </telerik:GridDateTimeColumn>

 

                    <telerik:GridDateTimeColumn UniqueName="Date" HeaderText="Date" DataField="StartTime" DataFormatString="{0:d}" ReadOnly="True" >
                    </telerik:GridDateTimeColumn>

 

                    <telerik:GridBoundColumn UniqueName="StartTime" HeaderText="Start" DataField="StartTime" DataFormatString="{0:HH:mm}" ReadOnly="True" AllowFiltering="False" ShowSortIcon="False" ShowFilterIcon="False">
                    </telerik:GridBoundColumn>
                   
                </Columns>
            </MasterTableView>
            <ClientSettings ReorderColumnsOnClient="true" AllowColumnsReorder="true" ColumnsReorderMethod="Reorder">
                <Virtualization EnableVirtualization="True" InitiallyCachedItemsCount="20000"
                    LoadingPanelID="RadAjaxLoadingPanel1" ItemsPerView="20"/>
                <Scrolling AllowScroll="true" UseStaticHeaders="true" />
                <Resizing AllowColumnResize="True" EnableRealTimeResize="True" ResizeGridOnColumnResize="False" AllowResizeToFit="True"></Resizing>
                <ClientEvents OnGridCreated="GridCreated" />
            </ClientSettings>
            <PagerStyle Mode="NextPrevNumericAndAdvanced"></PagerStyle>

        </telerik:RadGrid>

Mary
Top achievements
Rank 1
 answered on 09 Oct 2018
1 answer
162 views

I use a RadAutoCompleteBox with DataScouceID set inside an InsertItemTemplate of a RadGrid. When clicking on add-record button i got a 'DataSource not set' exception. I have to use the OnDataSourceSelect function to manually control the amount of data. It seems that the databounding has to be earlier. I tried to set the DataSource in the ItemCreate event on the RadGrid, and do not use the DataScouceID property. But in this case, I got an ReadOnlyDataSource in the OnDataSourceSelect event passed and the solution provided below does not work any more. 

Could you please tell me what to do in order to keep the function txtSciMapUser_DataSourceSelect as it is?

Thanks a lot.

 

protected void txtSciMapUser_DataSourceSelect(object sender, AutoCompleteBoxDataSourceSelectEventArgs e)
{
    SqlDataSource source = (SqlDataSource)e.DataSource;
    RadAutoCompleteBox autoCompleteBox = (RadAutoCompleteBox)sender;
 
    string filterString = e.FilterString;
    string likeCondition = string.Format("'{0}{1}%'", autoCompleteBox.Filter == RadAutoCompleteFilter.Contains ? "%" : "", filterString);
 
    source.SelectCommand = "SELECT TOP 100 * FROM sm_user WHERE [" + autoCompleteBox.DataTextField + "] LIKE " + likeCondition;
}
Marin Bratanov
Telerik team
 answered on 09 Oct 2018
1 answer
415 views

Hi

I am a trying to export radgrid to excel.

My Export settings are as follows

<ExportSettings FileName="Reports" ExportOnlyData="true" IgnorePaging="true" OpenInNewWindow="true" Excel-Format="Html"></ExportSettings>

I am setting border below in 

protected void RadGrid1_HTMLExporting(object sender, GridHTMLExportingEventArgs e)
{
            e.Styles.Append("th { border:solid 0.1pt #CCCCCC; }");

}

 

I am able to export with border. But my Group Column was separated as 2 cell in output. 

I have attached 2 images (expected results vs error_output)

Please help!!!

 

 

 

Marin Bratanov
Telerik team
 answered on 09 Oct 2018
2 answers
237 views
I am trying to build a server side binding application where I have the customer (green marker) and suppliers (red marker) and I can't seem to get the markers to get set differently.  I would like to use the push pins from the custom markers on the client side datasource but I can not seem to get it figured out.  Any help would be appreciated.
Peter Milchev
Telerik team
 answered on 09 Oct 2018
7 answers
269 views

I'm applying MailMerge example mentioned here in our system

I added code related to custom dropdown only, to test insertion

After selection an option, I just get a title window, like shown in screenshot_1.png attached
here's what shown in debugger, as shown in debugger.png attached. Reading values seems working fine, but the insertion itself doesn't happen, instead that message only shows.
 

Please advise!
Thank you
Rumen
Telerik team
 answered on 09 Oct 2018
1 answer
229 views
I'm using the radWizard and on one step, the users enter a bank routing number and an account number.  I have a database table that holds all the valid routing numbers and I would like to validate that what the user entered in a radtextbox is an actual value in the table.  Is there a way to call server-side validation before I navigate to the next step in the wizard?
Peter Milchev
Telerik team
 answered on 09 Oct 2018
1 answer
303 views
I am trying to add some custom controls to the Rad Spreadsheet toolbar, like text box, button etc.. How can i do this. 
Peter Milchev
Telerik team
 answered on 09 Oct 2018
1 answer
247 views
I have a radgrid and two footer items are an aggregate sum. The grid is fine in alignment, but when exported to pdf the total aggregate somehow moves a columnover.
I have tried adding a dummy column at the end. Tried adding a style to align left, tried adding left margin. Whatever was possible I did. I am starting to think that this a Telerik issue. Please compare two images below.
Tsvetomir
Telerik team
 answered on 09 Oct 2018
2 answers
1.4K+ views
I just need validation on my rad textbox . Only alllow only number with $ and decimal point. Textbox inside radgrid template column

example $ 123.33 or $ 12342.00.

Thanks

Cameron
Top achievements
Rank 1
 answered on 09 Oct 2018
2 answers
99 views
RadNavigation and RadTabStrip work fine in Visual Studio when test using IE11. After publishing and implementing on Web Server, IE only shows links for the navigation and the tabs will not work. Chrome works fine. Testing on the web server with IE11 also works fine. Have to use IE11, can't use Edge either.
Kenneth
Top achievements
Rank 1
 answered on 08 Oct 2018
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?