Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
314 views
Hi,

The keyboard command (Ctrl+V) for 'paste' does not work in Internet Explorer 11.
And neither do any of the paste tools from the editor toolbar.

And the keyboard command Ctrl+X for 'cut' works correctly, but Ctrl+C for 'copy' does nothing. 
And the Cut/Copy tools in the toolbar don't work either. 

This is reproducable in the editor demo at http://demos.telerik.com/aspnet-ajax/editor/examples/overview/defaultcs.aspx

What's wrong?

Best regards, Marja
Marja
Top achievements
Rank 1
 answered on 10 Mar 2014
3 answers
69 views
Hello

We are working on adding images to a RadLighbox.  The images are all related to a single service ticket, but each note has it's own images directory.  

We are adding the images by looking through the images located and adding them.

 foreach (FileInfo image in images)
 {
        lightBoxItem = new RadLightBoxItem();
        lightBoxItem.ImageUrl = String.Format("{0}/{1}", pixPath, image.Name);
        lightBoxItem.Title = image.Name;
        RadLightBox1.Items.Add(lightBoxItem);                       
 }

Now, in the databind of the notes grid, we have thumnails for each image.  We wrap a hyperlink around each thumnail and wire it up to the image in the lightbox to be opened by a js call  (i = the index of the image


 HyperLink hlnkImage = new HyperLink();
                                    hlnkImage.ID = "hlnkImage" + i.ToString();
                                    hlnkImage.SkinID = "hlnkImage";
                                    hlnkImage.ImageUrl = String.Format("{0}/Thumbnails/{1}", pixPath, image.Name);
                                    hlnkImage.ToolTip = image.Name;
                                    hlnkImage.Attributes.Add("onclick", String.Format("OpenRadLigthBox('{0}'); return false", i));

                                    divImageContainer.Controls.Add(hlnkImage);
                                    divInner.Controls.Add(divImageContainer);
                                    divOuter.Controls.Add(divInner);

This all works as expected EXCEPT.  If we click on the hyperlink that corresponds to the first image (index 0), the image opens in the lightbox, but when we try to page, it errors out and the lightbox is then frozen.  If we open any other image first, all works well, even the first image after paging to it.
Here is the js error

0x800a138f - JavaScript runtime error: Unable to get property '_get_hasTemplate' of undefined or null reference

Lastly here is the declarative ligthbox in the ascx page

<telerik:RadLightBox ID="RadLightBox1" runat="server" Modal="true" AppendDataBoundItems="true" RenderMode="Lightweight" LoopItems="true">
    <ClientSettings AllowKeyboardNavigation="true" NavigationMode="Button" ShowItemsCounter="false">
        <AnimationSettings HideAnimation="Resize" NextAnimation="Resize" PrevAnimation="Resize" ShowAnimation="Resize" />
    </ClientSettings>
</telerik:RadLightBox>
Daniel
Top achievements
Rank 1
 answered on 10 Mar 2014
1 answer
83 views
Hello,

I have noticed that in IE9 there is a cell rendering issue for some scenarios. I have attached an image with the mentioned.

Note :

1) Use OLAP connection with pivot grid.
2) create a selection which has only one row grouping and aggregation.
3) Row grouped field attribute must have long text.
4) vertical scrolls should appear in the specified scenario.
5) Scroll down in the grid to see the issue.

Regards,
Yohan
Vasil
Telerik team
 answered on 10 Mar 2014
2 answers
205 views
Hi,

I am trying to hide the header text of a column but I cannot do it. I am using the auto create of gridview columns:

     <Columns>
                <telerik:GridBoundColumn DataField="Description" HeaderText="Description" />
                <telerik:GridBoundColumn DataField="Quantity" HeaderText="Quantity"  />
                <telerik:GridBoundColumn DataField="UnitPrice" HeaderText="UnitPrice"  />
               </telerik:GridBoundColumn>

I would like to hide the label of Unit Price in insert mode. I managed to hide the column in insert mode using the following code:
               
    GridEditableItem totalItem = e.Item as GridEditableItem;
                    TextBox totalTextBox = vatItem["UnitPrice"].Controls[0] as TextBox;
                    totalTextBox.Visible = false;

How can I hide the label of UnitPrice? I tried the following:

grvDetails.MasterTableView.GetColumn("Discount").EditFormHeaderTextFormat = "";

without any success....Any suggestions?
leo
Top achievements
Rank 1
 answered on 10 Mar 2014
1 answer
129 views
ASP.NET SiteMapDataSource requires to have a root node to define the navigation structure. If bind to radTreeView as is (e.g. to render a side menu) it will render the root menu item and then all other items as children. See http://demos.telerik.com/aspnet-ajax/treeview/examples/programming/declarativedatasources/defaultcs.aspx

I wonder how to skip the root item and display everything from the level 1 to have multiple top-level nodes?
Shinu
Top achievements
Rank 2
 answered on 10 Mar 2014
1 answer
608 views
I am using telerik radgrid in my .net aspx page. I want to implement
custom pagination. But for this i don't have the total record count
initially. Want to get more data from server when user clicks on the
next page link after reaching the last page.

Example: if initially only 10 records are displayed on 1st page. If i
click "Next" link it should fetch next set of data.

But issue is: "Next" button do not fire OnCommand or OnItemCommand
events, if there are no more next pages.

So the question is how to handle pagination when total number of records
is not knows initially?
Which radgrid event to handle to get "Next" button click event
irrespective of whether grid is already displaying last page or not.
Konstantin Dikov
Telerik team
 answered on 10 Mar 2014
1 answer
135 views
I use Radgrid hierarchy with 3 level grid.
also I use "<ClientEvents OnCommand="OnClientCommand" />" for show modal window at AddNew Button Click :

function OnClientCommand(sender, eventArgs) {
   var cmdName = eventArgs.get_commandName();
   if (cmdName == "InitInsert") {
       eventArgs.set_cancel(true);
       ShowCreateForm();
   }
}

when I want to read details ItemIndex with "RadGrid_ItemCommand" return 0 !??!?!?
and when remove tag "<ClientEvents OnCommand="OnClientCommand" />"  then work fine! why ????
please help me, thanks.
Shinu
Top achievements
Rank 2
 answered on 10 Mar 2014
2 answers
333 views
public RadGrid Grid = new RadGrid();
private RadTextBox txtbox = new RadTextBox();
 
protected override void CreateChildControls()
{
txtbox.TextChanged += new EventHandler(txtbox_TextChanged);
 
Controls.Add(txtbox);
Controls.Add(Grid);
txtbox.AutoPostBack = true;
txtbox.Attributes.Add("onkeyup","SendTextBox():");
 
}
 
protected override void OnPreRender(EventArgs e)
{
ClientScriptManager cs = Page.ClientScript;

cs.RegisterStartupScript(this.GetType(), "SendTextBox", "setTimeout('__doPostBack(\'" + txtbox.ID + "\',\'\')', 0);", true);
base.OnPreRender(e);
}
 
protected void txtbox_TextChanged(object sender, EventArgs e)
{
// code for searching in grid
Grid.Rebind();
}


when i write in txtbox ...txtbox_textChanged event is not fired ..Please Help
Mayank
Top achievements
Rank 1
 answered on 10 Mar 2014
1 answer
141 views

Hello Telerik,

Please see this code here:.

01.Dim HBH_Chart As New RadHtmlChart
02.        HBH_Chart.ID = "HBH_Chart"
03.        HBH_Chart.Width = Unit.Pixel(500)
04.        HBH_Chart.Height = Unit.Pixel(500)
05.        HBH_Chart.Legend.Appearance.Position = HtmlChart.ChartLegendPosition.Right
06. 
07.        Dim HBHSeries As New PieSeries
08.        HBHSeries.Name = "HBH1"
09.        HBHSeries.TooltipsAppearance.DataFormatString = "{0}"
10.        HBHSeries.LabelsAppearance.Visible = True
11. 
12.        For Each row As DataRow In dataSet.Rows
13.            Dim item As New SeriesItem
14.            item.YValue = row.Field(Of Integer)("AantalClienten")
15.            item.Name = row.Field(Of String)("Naam")
16.            item.BackgroundColor = System.Drawing.ColorTranslator.FromHtml(row.Field(Of String)("Kleur"))
17.        Next
18. 
19.        HBH_Chart.PlotArea.Series.Clear()
20.        HBH_Chart.PlotArea.Series.Add(HBHSeries)
21.        HBH_Chart.PlotArea.XAxis.DataLabelsField = "Naam"
22.        HBH_Chart.PlotArea.YAxis.LabelsAppearance.DataFormatString = "{0}"
23. 
24.        HtmlChartHolder.Controls.Clear()
25.        HtmlChartHolder.Controls.Add(HBH_Chart)

I try to create a PieChart dynamically. But the only thing that I see is that it takes up it's space in the page (i.e. the placeholder is filled). But the actual chart is not visible. It's see as a white rectangle. What am I missing here?

Thanks a lot for your answer,

Best regards,
Francois





Stamo Gochev
Telerik team
 answered on 10 Mar 2014
8 answers
1.9K+ views
Hi,

I am new to telerik. Now i am using telerik trial version.
I have once scenario.
> Grid contains 10 rows
> One column is template column, which contain a link button
> While click on the link, i need to open a popup, like model window. The model window should show some details about the clicked records.
> Data displayed in the model window based on the arguments received from the link button

Kindly suggest how can i implement this. Which control can i use for getting this feature.

All my bindings are dynamic and i cannot set any datasource in the design.

I need the feature almost similar to hierarchical data grid. Where can get the more details about the real implementation. In the "step-by-step" tutorial it is not much explenatory and datasource is set in the markup itself.
Princy
Top achievements
Rank 2
 answered on 10 Mar 2014
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?