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

I'm modernizing some really old code that used the old Rad toolkit.  I found that the "argument" property is not persisting.  I was able to change the window's close code around to pass the element in the close() function, but can't find a way to do this when opening the form.  I'm using VS2013 with ASP.NET AJAX and Telerik.Web.UI v2015.3.930.45.

Please take a look and advise.  I don't want to make a round-trip to the server for this.  I also found that javascript globals do not persist between postbacks.  So I can't use that sloppy method either.  FYI - I keep the window open and the user may initiate a number of postbacks with an runat=server asp:button before I close it from the client side.

 

Javascript being called from a client-side radmenu click on the main page.  "notesExist" is a string value.

function ShowNotesForm(id, notesExist) {

    var oWnd = window.radopen("Dialogs/Notes.aspx?DocID=" + id, "NotesDialog");
    oWnd.argument = notesExist;

}

 

Javascript within my Notes.aspx:

 

        <telerik:RadScriptBlock runat="server">
            <script type="text/javascript">
                $(document).ready(function () {
                    alert(GetRadWindow().Argument);
                });
            </script>
        </telerik:RadScriptBlock>

 

I've tried reading GetRadWindow().Argument in other sections like after a button-click on the client-side, but put it here to make it easy to replicate on your end.

 

Marin Bratanov
Telerik team
 answered on 06 Jul 2016
1 answer
47 views

I want to create a TreeList with the EditForm below the tree.  Is that possible?  Can anyone provide an example?  I am still trying to get used to the Telerik Controls, and I am new to ASP.net (not .net in general).  I would prefer an example in VB.net, but C# would be fine too, I can translate. 

Viktor Tachev
Telerik team
 answered on 06 Jul 2016
2 answers
127 views

Hi,
I have a simple problem with a GridCalculatedColumn where i want to display the concatenation of a string and a int .
I dont have to filter or anything on it. I just need so text before the int value.

<telerik:GridCalculatedColumn UniqueName="c1" DataFields="myString, myInt"  DataType="System.String" Expression="{0}{1}"></telerik:GridCalculatedColumn>

myString And myInt are from a linq data source.
 I have try the : Expression="{0}Convert({1},'System.String')"

 

If you have any idea on how to do that without having to use databinding event or a Template Item.

 

Pierre
Top achievements
Rank 1
 answered on 06 Jul 2016
1 answer
90 views

Hello,

is it somehow possible to prevent that more than one root task can be created or only certain tasks can be deleted? My problem is that inside my gantt chart the root task represents some kind of project planning and all the child tasks are the different tasks of this project planning. So I want to prevent that the user can delete this root task or create other root tasks by drag and drop etc. This is a problem because I can only cancel e.g. the OnTaskDelete-event with some kind of data validation but the OnTaskUpdate events are fired before the OnTaskDelete-event. As a  consequence incorrect data is stored inside the updated tasks (e.g. the false OrderId), because the deletion of the root task is cancelled.

I really hope you can help me. Thank you very much.

Kind regards,

Felix

 

Felix
Top achievements
Rank 1
 answered on 06 Jul 2016
2 answers
117 views
I have a RadGrid with dynamically populated rows that updates frequently using Rebind, NeedDataSource, and a DataTable.  This functions very well, until I try to select rows in my grid.  The short explanation is that every time the DataSource on the RadGrid changes, selected rows are reset and do not persist.  I've been ripping my hair out trying to get around this, but I've had no success.  Here are some scenarios I've tried.

-Rebind, NeedDataSource, new DataTable - Selected rows do not persist
-Rebind, NeedDataSource, modify an existing DataTable - Selected rows do not persist
-Remove Rebind and NeedDataSource, manually modify an existing DataTable - Grid does not update
-Remove Rebind and NeedDataSource, manually modify an existing DataTable, set DataSource and call DataBind - Selected rows do not persist
-Rebind, NeedDataSource, manually track row selections and set the GridDataItem.Selected property after setting the DataSource - Selected rows do not persist

So the conclusions I've come to is that selected rows are reset whenever the DataSource property is changed, a RadGrid will not update unless the DataSource property is changed, and the GridDataItem.Selected set property does not do what I would expect it to do.

Is there any way to accomplish this, or am I completely out of luck?  Thanks!
Luis
Top achievements
Rank 1
 answered on 05 Jul 2016
3 answers
135 views

Hi,

I want reorder rows in javascipt, move some rows up to first. I don't want to use Drag and Drop row.

Ideally, I have some sort expression and I want to to move some rows which contain value in expression up to first.

Is it possible to do this in javascript ?

Many thanks,

Quang Anh

Maria Ilieva
Telerik team
 answered on 05 Jul 2016
2 answers
365 views

I have bootstrap 3.3.6 in my .NET project and Telerik 2016.2.607.45 and have put a RadDatePIcker on my page. I have set the skin to Bootstrap, but the calendar icon is only half appearing. Are there any thoughts as to why this might be occurring?

When I look at the Developer Tools it appears to be linked to the box-sizing: border-box css property in bootstrap.min.css, as when I untick this the calendar appears correctly, but then the rest of the page's structure changes.

David
Top achievements
Rank 2
 answered on 05 Jul 2016
2 answers
91 views

hello, i have a pivot grid in an asp.net web app. I have configured de localization using the resx files this way:

in app_globalresources i have the translated files 

RadPivotGrid.Main.es-ES.resx

RadPivotGrid.Main.es-MX.resx

and the original RadPivotGrid.Main.resx

in the pivot grid i have this configuration: 

     <telerik:RadPivotGrid ID="RadPivotGrid1" runat="server" OnNeedDataSource="RadPivotGrid1_NeedDataSource" OnPreRender="RadPivotGrid1_PreRender"
                    AllowSorting="true"  EnableConfigurationPanel="true" Height="545px" OnPivotGridCellExporting="RadPivotGrid1_PivotGridCellExporting" 
                     OnCellDataBound="RadPivotGrid1_CellDataBound"   OnFieldCreated="RadPivotGrid1_FieldCreated" Culture="es-ES"  >

in the code behind i also include this line :  RadPivotGrid1.Culture = System.Globalization.CultureInfo.CurrentCulture;

 

(the current culture in my PC is es-MX and it is the same in the server

after publish for deploy i have inside the bin folder 2 more folders named es-ES and es-MX inside that folder there are one dll named this way: Presentation.resources.dll  (presentatio is a application layer)

 

when i deploy the app to the server the texts in the pivot grid remain in english, i only can se the spanish text in compilation time.

 

what i need to do to make this to show the text in spanish?

 

 

Maria Ilieva
Telerik team
 answered on 05 Jul 2016
1 answer
65 views

I've attached a mega menu example in the pictures below where the only thing I changed between the "Good" and the "Bad" was the "Display Intranet Sites in Compatibility Mode".

Basically when compatibility mode gets in the way the display of the menu gets completely messed up.  Has anyone else had this problem / fixed it?  The menu is part of a master page - which seems to drive the problem somewhat too - the master page was the generated single menu one that Telerik supplies. 

The solution – according to the web – is to force IE to display using the latest engine (EDGE) by doing the following with the web.config:

<system.webServer>
    <httpProtocol>
      <customHeaders>
        <add name="X-UA-Compatible" value="IE=Edge" />
      </customHeaders>
    </httpProtocol>
</system.webServer>

Or you can do the following in each page:

<head>
   <meta http-equiv="X-UA-Compatible" content="IE=Edge" />
</head>

Unfortunately in the environment I'm in â€“ neither of those solutions accomplishes the objective – the application stays in compatibility mode either way – at least when a master page is involved.

I've noticed that the radGrid gets messed up to - the columns don't resize correctly.  Plus the fonts get messed up somewhat when compatibility mode is engaged. 

 

HELP!!!

Thanks,
Cory Aston

 

Marin Bratanov
Telerik team
 answered on 05 Jul 2016
1 answer
109 views

Hi,

 I have a RadGrid with batch edit. Edititemtemplate has drodownlist that needs to have different values based on the datakey value of the row. 

I have tried: 1. Grid Prerender, but cannot access dropdown at row level

                    2. Grid Item databound, cannot access edititemtemplate dropdown

 

Please suggest any ideas

 

Thanks

 

Maria Ilieva
Telerik team
 answered on 05 Jul 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?