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

Could you please let me know how to accomplish simple drag and place row in the same grid,  

  <ClientSettings AllowRowsDragDrop="true" AllowColumnsReorder="true" ReorderColumnsOnClient="true">
            <ClientEvents OnRowContextMenu="RowContextMenu" />
                  
            <Selecting AllowRowSelect="true" EnableDragToSelectRows="false" />
              <Scrolling AllowScroll="true" UseStaticHeaders="true"></Scrolling>

Do i have to maintain any list in codebehind for this? Please let  me know
Shinu
Top achievements
Rank 2
 answered on 22 Apr 2014
1 answer
115 views
Hello, I am working with vb .net and within an existing project that uses telerik, i imported some user controls.

My hope is to convert existing controls to rad controls, however when adding a rad button...or any control..
I get the following error

"The Controls collection cannot be modified because the control contains code blocks"

steps i have taken to try to correct issue are as follows.
1.  I changed <%= to <#=
2.  wrapped JavaScript around a RadCodeBlock
3. Attempted a radscriptmanger but i already have one declared so error occurs. 

I do not know what to try at this point.
As expressed this is an existing project, the only thing that might be a curveball is.
This imported code is called from a radwindow and is created as a modal window.
Within the aspx page, are the user controls that i am attempting to replace existing with telerik.

When a radwindow is open, do i lose anything that i must declare again?
As expressed it is aware of the script manager. 

What could i be missing? At wits end.

Thank you



Princy
Top achievements
Rank 2
 answered on 22 Apr 2014
9 answers
377 views
Hi Telerik user,

I have tried to implement export to excel functionality in radgrid but encounter issue with filename setting.
From the file download window after I fire exportToExcel() function from javascript:
When I click on open, the filename is not shown correctly (It shows page name instead of filename) but
When I click on save and put the file in a folder and then open the file, it shows correct filename.

I have tried to put filename as a parameter to exportToExcel(filename) but it is still showing incorrect filename.

Here is my code snippet:

<script type="text/javascript" language="javascript">  
    function Export() {  
        var masterTable = $find('RadGrid1').get_masterTableView();  
        if (masterTable != null)  
            masterTable.exportToExcel();  
    }  
</script> 
 
        <telerik:RadGrid ID="RadGrid1" ShowStatusBar="True" Height="360px" 
            runat="server" AutoGenerateColumns="False" AllowSorting="false"   
            GridLines="None" ShowFooter="false" EnableDrag="false" 
            OnNeedDataSource="RadGrid1_NeedDataSource" ExportSettings-FileName="NostroTransfer" 
            OnItemDataBound="RadGrid1_ItemDataBound"> 

Please share if you have ever encountered this issue.

Regards,
Canfield
Daniel
Telerik team
 answered on 22 Apr 2014
5 answers
94 views
hey every one
i am using web http://demos.telerik.com/aspnet-ajax/webmail problem is that if net connection not availble the whole website has been crashed . In an Attachment is the output of crash web, how to fix this. please help me 

thanks in advance.
Plamen
Telerik team
 answered on 22 Apr 2014
3 answers
485 views
Hello,
My application is already using Telerik radgrid and I need to implement Batch Editing on it.
See the following .ascx code:
<telerik:RadGrid ID="dgEscrow" runat="server" GridLines="None" EnableEmbeddedSkins="false" AutoGenerateColumns="false" ShowFooter="true" CssClass="esGridTable">
    <HeaderStyle Font-Bold="true" HorizontalAlign="Center" />
    <ClientSettings>
        <ClientEvents OnGridCreated="setScrollerDimensionsEscrow" />
        <Scrolling AllowScroll="true" SaveScrollPosition="true" />
    </ClientSettings>
</telerik:RadGrid>

See the followinng .ascx.vb code:
Public Sub BindDG(Optional ByVal isPrintPage As Boolean = False)
        Dim edt As New EscrowDataTable(TractGID)
        Dim dt As DataTable = edt.GetDataTable
        Dim dv As DataView = dt.DefaultView
 
         With dgEscrow
            .CellSpacing = 0
            .ItemStyle.CssClass = "esGridRow"
            .AlternatingItemStyle.CssClass = "esGridRow"
        End With
 
 
        dgEscrow.DataSource = dv
        dgEscrow.DataBind()
    End Sub


On the above scenario, I need to implement Batch Editing but needs to be done all on the code behind because the number of columns and the column type may vary every time.

Please let us know if you guys need any more details.

Thanks,
Shouvik
Konstantin Dikov
Telerik team
 answered on 22 Apr 2014
1 answer
143 views
 <telerik:RadListBox ID="lbDSNominal" runat="server" Width="250px" BackColor="#2D1A44" SelectionMode="Multiple" AllowTransfer="true" AutoPostBackOnTransfer="true" TransferMode="Copy"
                                                    AllowReorder="true" AutoPostBackOnReorder="true" EnableDragAndDrop="true" Skin="" CssClass="list contents_2" TransferToID="lbStrata" OnTransferred="lbDSNominal_Transferred">
                                                    <ItemTemplate>
                                                        <p style="font-size: 15px !important; width: auto; height: auto; color: white; padding-bottom: 0px !important; margin-bottom: 0px !important; margin-top: 0px !important;"><%# Container.DataItem %></p>
                                                    </ItemTemplate>
                                                </telerik:RadListBox>

<telerik:RadListBox ID="lbStrata" runat="server" SelectionMode="Multiple" AllowReorder="true" AutoPostBackOnReorder="true" EnableDragAndDrop="true"
                                                            Skin="" Width="260px" Height="150px" AllowTransfer="true" AutoPostBackOnTransfer="true" BorderColor="MediumPurple" BackColor="#f2eff5">

                                                            <ItemTemplate>
                                                                <div class="variables-list">
                                                                    <span><%# Container.DataItem %></span>
                                                                </div>
                                                            </ItemTemplate>
                                                        </telerik:RadListBox>

here is my code. I bind a list<String> to lbDSNominal's datasource. and I show data using <%# Container.DataItem %> in lbDSNominal. When I dragged an item to lbStrata in lbStrata itemtemplate, <%# Container.DataItem %> doesn't show any value? How can I fix it?


Princy
Top achievements
Rank 2
 answered on 22 Apr 2014
1 answer
85 views
Hi,

I want to load user control as view mode of row on row click. Like how we open user control of edit mode on row.

I am using Edit button in grid which is opening ~/UserControls/Issues_View_ActionItems.ascx user control as edit mode of row now i just want to open
~/UserControls/Issues_Edit_ActionItems.ascx user control on Row Click.


  <telerik:GridEditCommandColumn UniqueName="EditColumn" HeaderText="Edit" ButtonType="ImageButton">
                                    <HeaderStyle Width="15px"></HeaderStyle>
                                    <ItemStyle Width="15px" HorizontalAlign="Center"></ItemStyle>
                                </telerik:GridEditCommandColumn>



    <EditFormSettings UserControlName="~/UserControls/Issues_View_ActionItems.ascx" EditFormType="WebUserControl">
                                <EditColumn UniqueName="EditColumn">
                                </EditColumn>
                            </EditFormSettings>

Thanks
Manish
Shinu
Top achievements
Rank 2
 answered on 22 Apr 2014
12 answers
143 views
Any possibility to connect RadTileList with RadDataPager in order to create paging for TIles?
Shinu
Top achievements
Rank 2
 answered on 22 Apr 2014
1 answer
154 views
Anybody know how to add a scale break to a RADHTMLCHART more specifically to a BarChart ? It was available in the RadChart control which is now obsolete. Using the new RadHTMLChart control but I need to add a scale break since some values are off the charts compared to the majority of other values. Any ideas ?
Danail Vasilev
Telerik team
 answered on 22 Apr 2014
3 answers
569 views
Hi All, quick question, I've gone through all the demo pages for the RadHTMLChart, gone through Google and here and not found anything that would work with how I've done my Data source...

I've passed a list of 2 columns to my RadHTMLChart Bar or Column series chart, 1st column is the name of the row and the 2nd column is the value to be plotted... I've done this with a single Series and it plots all the data fine, I then set the XAxis DataLabelsField to the Name column and all the labels display correctly for each column/bar...

My question is this: -

How do I get a Legend to show up? The way I see it, the legend will only appear if there are multiple Series set on the ASPX page, but as the series gets populated from code no legend appears... I've tried creating a Legend programmatically and failed miserably, There just doesn't seem to be a property to add an item to the legend or at least set the Legend source to the Name column of the Data source?

If I switch this all the to the Pie Chart I then get a property to set the NameField on the series which if I set this to the Name column, the Legend works tip-top!

Any way of getting this 'NameField' property to be available on the Bar Series / Column Series also?

Thanks, Adam.
Stamo Gochev
Telerik team
 answered on 22 Apr 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?