Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
88 views

I have an odd problem on the zooming on Stock Chart, the X Axis becomes corrupt.

When I zoom it sorts itself out.

If just plot the points with a default Layout it is OK unzoomed.

I am doing this for both types:

var xAxis = chart.PlotArea.XAxis;

xAxis.Step = Convert.ToDecimal(xAxis.Items.Count * 0.10);
xAxis.BaseUnitStep = Convert.ToInt32(xAxis.Step);
xAxis.BaseUnit = DateTimeBaseUnit.Minutes;
xAxis.EnableBaseUnitStepAuto = false;

Please see attached images.

Rick
Top achievements
Rank 1
 answered on 24 Aug 2016
1 answer
630 views

Hi,

I need to click on some link in my rad grid.

I have 2 like per row.

on each link im using the following code till i get an answer:

<telerik:GridHyperLinkColumn   
     UniqueName ="LinkRpt"
     DataTextFormatString="S/N {0} "
     DataTextField="UsrSN"
     DataNavigateUrlFields="CaseID"
     DataNavigateUrlFormatString="~/Site/mypage.aspx?var={0}"
     HeaderText="Repport link" >
</telerik:GridHyperLinkColumn>

 

As you can see im using " Request.QueryString["var"] ".
But i want the var to be in Session. Because this 'var' is a sensitive data.

I know how to put things in session. Session["field1"] = "value1";

But  i can't do that with a GridHyperLinkColum because there is no OnClick event.
Its the same for the GridButtonColumn.
So i guess i have to use GridTemplateColumn with a RadButtonin it.

<telerik:GridTemplateColumn >
    <ItemTemplate>
        <telerik:RadButton
            ID="RadButton1"
            runat="server"
            Text="See Repport."
            OnClick="RadButton1_Click" >
        </telerik:RadButton>
    </ItemTemplate>
</telerik:GridTemplateColumn>

In this RadButton1_Click, what should i do to get the CaseID of the row clicked.

How do i navigate to my "~/Site/mypage.aspx" ?
if i use Javascript:

function OnClientClicking(button, args) {
                window.location = button.get_navigateUrl();
                args.set_cancel(true);
            }

with the OnClientClicking how do i set things in session ?

 

Any suggestion will be appreciated.

Regards,
Pierre.

 

 

 

Eyup
Telerik team
 answered on 24 Aug 2016
2 answers
214 views

I have a RadGrid up and running, and have added GridImageColumn. It works well. However, not all rows have an associated image. How would I setup a default image that would display in those instances? 

 

<telerik:GridImageColumn DataType="System.String" DataImageUrlFields="PartFamily"
  DataImageUrlFormatString="images/family-images/{0}.png" AlternateText="Family Image" DataAlternateTextField="PartFamily"
  ImageAlign="Middle" ImageHeight="75px" ImageWidth="75px"  HeaderText="Image Column"
  
</telerik:GridImageColumn>

Matt
Top achievements
Rank 1
 answered on 23 Aug 2016
1 answer
155 views
Instead of asking for single or multiple entries why not simply have a property called selectamount and enter the amount of selections that can be selected. This way we can restrict selections to the amount we need. Multiple is way to vague and single can be set to 1.
Ivan Danchev
Telerik team
 answered on 23 Aug 2016
6 answers
437 views
Hi Everybody,

I have downloaded the latest version(2011.2.915.35) trial of telerik.

When i create an event in rad scheduler by default its creating the event as recurring event,
i don't want to create events as recurring event.


and also while deleting  and editing its showing an confirmation popup 

For edit its asking "Editing a recurring appointment" with two options "Edit only this occurence" & "Edit the series"

Have attached the screen shot as well.

i don't want this confirmation window.

Anyone please give me suggestions to remove this confirmation window and to change creating appointment as recurring by default.

Thank You
Francisco
Top achievements
Rank 1
 answered on 23 Aug 2016
3 answers
275 views
my code below.
no loading is shown - I have min time = 14 seconds
no alert is ever called
my grid I create and bind with code behind.

why is the loading panel not showing? what am I missing
is there a way for me to explicit call the show loading?
function requestStart(sender, eventArgs) {
    alert('Request start initiated by: ' + eventArgs.get_eventTarget());
}
<telerik:RadAjaxLoadingPanel runat="server" ID="LoadingPanel1" MinDisplayTime="14000"  Skin="Default" Modal="true">
<asp:Label ID="Label2" runat="server" ForeColor="Red">Loading... </asp:Label>
<asp:Image ID="Image1" runat="server" Width="224px" Height="48px" ImageUrl="/colors.png"></asp:Image>
</telerik:RadAjaxLoadingPanel>
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
<ClientEvents OnRequestStart="requestStart" />
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="gv">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="gv" LoadingPanelID="LoadingPanel1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>
<telerik:RadGrid RenderMode="Lightweight" ID="gv" runat="server" AutoGenerateColumns="false" CellSpacing="1" EnableViewState="true" />
Viktor Tachev
Telerik team
 answered on 23 Aug 2016
1 answer
127 views

Until recently I was exporting to Excel using ExcelML format.  The GridEditCommandColumn was not exported (ExportOnlyData is set to true).
I am now exporting using XLSX format.  Since then, the GridEditCommandColumn is exported along with data.
I would expect the same behaviour (no edit column). 

Is it a bug ? 
Is there an option to hide GridEditCommandColumn when exporting to xlsx ?

<telerik:RadButton ID="ButtonExportExcelML" runat="server" Text="Export to ExcelML" OnClick="ButtonExportExcelML_Click" />   
<telerik:RadButton ID="ButtonExportXLSX" runat="server" Text="Export to XLSX" OnClick="ButtonExportXLSX_Click" />   
<telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="true" ExportSettings-ExportOnlyData="true" OnNeedDataSource="RadGrid1_NeedDataSource">
    <MasterTableView>
        <Columns>
            <telerik:GridEditCommandColumn ButtonType="ImageButton" />
        </Columns>
    </MasterTableView>
</telerik:RadGrid>

protected void RadGrid1_NeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
{
    RadGrid1.DataSource = new List<int> { 1,2,3,4,5,6};
}
 
protected void ButtonExportExcelML_Click(object sender, EventArgs e)
{
    RadGrid1.ExportSettings.FileName = "TestExcelML";
    RadGrid1.ExportSettings.Excel.Format = GridExcelExportFormat.ExcelML;
    RadGrid1.ExportToExcel();
}
 
protected void ButtonExportXLSX_Click(object sender, EventArgs e)
{
    RadGrid1.ExportSettings.FileName = "TestXlsx";
    RadGrid1.ExportSettings.Excel.Format = GridExcelExportFormat.Xlsx;
    RadGrid1.ExportToExcel();
}
Viktor Tachev
Telerik team
 answered on 23 Aug 2016
3 answers
117 views
Hi,

Does RadGrid has built-in Database Pagination in addition to the standard Grid UI Pagination?

For example:

In RadGrid standard Page UI Pagination, if you have page size of 25, when the data source is bound then the whole dataset (e.g. 500 member records) is retrieved from the database, but only renders the first 25 records. When the user clicks to go to page 2 the query is run to get the 500 records again and the telerik control will then render the next batch of 25 records in order. Does RadGrid has built-in Database Pagination in addition to the standard Grid UI Pagination that can limit the records retrieved from the database to, say 100 records rather than retrieving 500 records?
Viktor Tachev
Telerik team
 answered on 23 Aug 2016
3 answers
623 views
Hi,

Does RadGrid has built-in Database Pagination in addition to the standard Grid UI Pagination?

For example:

In RadGrid standard Page UI Pagination, if you have page size of 25, when the data source is bound then the whole dataset (e.g. 500 member records) is retrieved from the database, but only renders the first 25 records. When the user clicks to go to page 2 the query is run to get the 500 records again and the telerik control will then render the next batch of 25 records in order. Does RadGrid has built-in Database Pagination in addition to the standard Grid UI Pagination that can limit the records retrieved from the database to, say 100 records rather than retrieving 500 records?
Viktor Tachev
Telerik team
 answered on 23 Aug 2016
30 answers
544 views
I have successfully been able to hide items from the context menu.  Is it possible to remove the separator bars that also appear in the menu?  Also I am struggling to be able to add my own items.  I have seen the examples in c#, however these do not translate well to vb.  Below is the code I am using to hide the items.  It would be much appreciated if someone could show me how to add new items.  Once added I would also need to know how to capture the fired event when the menu item is clicked.

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
 
        AddHandler RadGrid1.HeaderContextMenu.ItemCreated, AddressOf Me.HeaderContextMenu_ItemCreated
 
     ...
End Sub
 
Private Sub HeaderContextMenu_ItemCreated(ByVal sender As Object, ByVal e As RadMenuEventArgs)
        Select Case (e.Item.Text)
            Case "Clear Sorting"
                e.Item.Visible = False
            Case "Sort Ascending"
                e.Item.Visible = False
            Case "Sort Descending"
                e.Item.Visible = False
        End Select
End Sub
Jon
Top achievements
Rank 1
 answered on 23 Aug 2016
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?