Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
83 views
Hello,i have noticed the following problem,which i suppose has nothing to do with the editor,as a product.But i would like to know if there is any solution.
We are using load balancing(between 2 servers) and the editor doesn't load.A lot of javascript errors etc.
I suppose it has to do with the order in which the js files are loaded.
Any ideas please?

Rumen
Telerik team
 answered on 05 Jul 2010
5 answers
142 views
I am updating to the telerik 2010 ajax controls. When I convert a rad window to a telerik window the javascript, when run gives error on page. My code below:

function {
var url = "window1.aspx";
window.radopen(url, "window name");
}

<telerik:RadWindowManager ID="RadWindowManager" runat="server">
<Window>
<telerik:RadWindow ID = "RadWindow1" runat="server" Behaviors="Default" />
</Window>
</telerik:RadWindowManager>

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" EnableOutsideScripts="True">
<AjaxSettings>
............ as was before except changed rad to telerik

Now, when I select my button that calls the javascript the function is called (my alert("hello"); displays as a test) but when I remove the alert command I get an IE error on page. is there something I am doing wrong. Everything works when I use the old rad name space but doesn't when I change it to telerik.

Thanks,

Steve Holdorf
Georgi Tunev
Telerik team
 answered on 05 Jul 2010
13 answers
242 views
After taking the latest 2010Q1.sp1 release we have found the following behavior in our site causing multiple popups to appear.

The Behavior:
  • We have a grid, each row of the grid has a content menu with options. 
  • One of those options brings up a popup ("edit detail of record") type of thing. 
  • The the user closes the popup by hitting the Red X in the upper right.
  • The user picks another row, picks the content menu and again is presented a popup detailing the row.

However, both row 1 and row 2 popups are rendered

We repeat and find that every popup that we open and close, is redisplayed, so soon we have dozen of popups when we go to open just one.

The Code:
Below is the code we have been running that brings up the popup detailing the selected record



 
                        RadWindow wnd = new RadWindow();  
 
                        wnd.NavigateUrl = viewDetails;  
                        wnd.Width = 900;  
                        wnd.Height = 620;  
                        wnd.Top = 120;  
                        wnd.VisibleOnPageLoad = true;  
                        wnd.OnClientShow = "OnClientShow";  
 
                        Master.RadWindowManager.Windows.Add(wnd);    


The Debugging Walk Through:
What we have found, is that the rad window manager is no longer removing the closed windows.  So while debugging the code the RadWindowManager.Windows collection had 0 objects, then 1, then 2, then 3, then 4 ....

And everytime we then run this code, all the past windows are again rendered.

We need the windows to remove themselves from the RadWindowManager when the user closes the window. 

Thank you.
Tim
Georgi Tunev
Telerik team
 answered on 05 Jul 2010
2 answers
109 views
hi

i wanna know how can i get all  the filename  of the files uploaded?

for example i have these

fileinput 1 = file1.txt
fileinput  2 = file2.doc
fileinput 3 = file3.xls

i want to save in session or in a textbox each filename

regards

webster velasco
Genady Sergeev
Telerik team
 answered on 05 Jul 2010
5 answers
156 views
I have downloaded the trial version of the Telerik controls to play around before purchasing.

I found a video on Telerik TV demostrating how to retreive primary keys from the RadGrid control.

I've followed the code in the video exactly but never is the DataKeyValues property populated.

Does anyone have any suggestions?
Shinu
Top achievements
Rank 2
 answered on 05 Jul 2010
2 answers
107 views
Is this possible, are there any decent guides?  I have searched for this and found a video, however it is using client side databinding, I would like to bind data server side, but do the sorting client side.  I would like no postbacks.  Any help on this would be much appreciated.
mabs
Top achievements
Rank 1
 answered on 05 Jul 2010
1 answer
141 views
I have noticed that at times, there is an issue with the display of data in the grid rows. It's hard to explain, but the text does not line up with the row as it should - it usually displays at the bottom of the row, or even slightly outside of the row. When alternating item styles are used this issue is more noticeable, as part of the text will show up in another row. When you hover over the misaligned rows however, they will move back to their proper place and stay there until the next form post. In my experience, it seems that this happens when the grid is ajaxified most of the time too. It's possible that this is a browser issue too, but I'm hoping that there is a way to fix it. It's not a show stopper, but it puts a small dent in an otherwise meticulously consistent interface.

It doesn't happen frequently, and thus is kind of hard to reproduce, but I have included a screenshot which illustrates the problem - if you look at the header row, you will see that the alignment of the column headers is inconsistent. Something similar to this happens with the rows as well.

Can someone explain why this happens, and what I can do to fix it? Thanks!


Dimo
Telerik team
 answered on 05 Jul 2010
3 answers
122 views
TELIRIK GRID Aggregate count method of how the statistics of non-null value
Princy
Top achievements
Rank 2
 answered on 05 Jul 2010
5 answers
381 views
We've having a problem with deleting rows from a GridTableView nested inside a RadGrid.

The basic layout of the page is that we have a list of security roles, and each role is granted a set of permissions. If you delete one of the permissions, you get an InvalidOperationException with the following message: "Could not find a row that matches the given keys in the original values stored in ViewState.  Ensure that the 'keys' dictionary contains unique key values that correspond to a row returned from the previous Select operation."

However, deleting a record from a nested table works if it's the last table in the list, or if you first add a record to that table.
 

 

<telerik:RadGrid runat="server" ID="securityRolesRadGrid" Skin="Vista" AllowSorting="true"

 

          DataSourceID="rolesDataSource" Width="775px" AutoGenerateColumns="false">

 

    <MasterTableView CommandItemDisplay="Top" HierarchyDefaultExpanded="false" HierarchyLoadMode="Client" InsertItemDisplay="Top" CommandItemSettings-AddNewRecordText="Add new role"

 

              AllowAutomaticDeletes="true" AllowAutomaticInserts="true" AllowAutomaticUpdates="true"

 

              DataKeyNames="RoleID" EditMode="InPlace">
       
<ExpandCollapseColumn Visible="True"></ExpandCollapseColumn>

 

        <Columns>

 

            <telerik:GridEditCommandColumn ButtonType="ImageButton" HeaderStyle-CssClass="rgHeader rgImgCol" ItemStyle-CssClass="rgImgCol"></telerik:GridEditCommandColumn>

 

            <telerik:GridBoundColumn DataField="Name" HeaderText="Role"></telerik:GridBoundColumn>

 

            <telerik:GridDropDownColumn HeaderText="Scope" DropDownControlType="DropDownList" DataSourceID="scopesDataSource" DataField="ScopeID" ListTextField="Name" ListValueField="ScopeID"></telerik:GridDropDownColumn>

 

            <telerik:GridBoundColumn DataField="Description" HeaderText="Description" ColumnEditorID="fullWidthTextboxEditor"></telerik:GridBoundColumn>

 

            <telerik:GridButtonColumn ConfirmText="Are you sure you want to delete this Role? Users assigned to this role may lose permissions on the site." ConfirmTitle="Delete" CommandName="Delete" ButtonType="ImageButton" HeaderStyle-CssClass="rgHeader rgImgCol" ItemStyle-CssClass="rgImgCol"></telerik:GridButtonColumn>

 

 

        </Columns>

 

        <DetailTables>

 

            <telerik:GridTableView DataSourceID="rolePermissionsDataSource" Width="100%" NoDetailRecordsText="No permissions assigned for this role." CommandItemSettings-AddNewRecordText="Add new permission"

 

                     AllowAutomaticDeletes="true" AllowAutomaticInserts="true" AllowAutomaticUpdates="true"

 

                     DataKeyNames="RolePermissionID,RoleID" CommandItemDisplay="Top" InsertItemDisplay="Top" EditMode="InPlace">

 

                <ParentTableRelation>

 

                    <telerik:GridRelationFields DetailKeyField="RoleID" MasterKeyField="RoleID" />

 

                </ParentTableRelation>

 

                <Columns>

 

                    <telerik:GridEditCommandColumn ButtonType="ImageButton" HeaderStyle-CssClass="rgHeader rgImgCol" ItemStyle-CssClass="rgImgCol"></telerik:GridEditCommandColumn>

 

                    <telerik:GridDropDownColumn HeaderText="Permission" DropDownControlType="DropDownList" DataSourceID="permissionsDataSource" DataField="PermissionID" ListTextField="Permission" ListValueField="PermissionID"></telerik:GridDropDownColumn>

 

                    <telerik:GridDropDownColumn HeaderText="Project Phase" DropDownControlType="RadComboBox" DataSourceID="projectStatusesDataSource" DataField="ProjectStatusID" ListTextField="Status" ListValueField="ProjectStatusID" EnableEmptyListItem="true" EmptyListItemText="" EmptyListItemValue="" ConvertEmptyStringToNull="true"></telerik:GridDropDownColumn>

 

                    <telerik:GridButtonColumn ConfirmText="Delete Permission?" ConfirmTitle="Delete" CommandName="Delete" ButtonType="ImageButton" HeaderStyle-CssClass="rgHeader rgImgCol" ItemStyle-CssClass="rgImgCol"></telerik:GridButtonColumn>

 

                </Columns>

 

            </telerik:GridTableView>

 

        </DetailTables>

 

    </MasterTableView>

 

 

</telerik:RadGrid>

 

<asp:LinqDataSource runat="server" ID="rolesDataSource"

 

 

          ContextTypeName="SecurityDataContextEx"

 

          TableName="SecurityRoles"

 

          EnableDelete="true" EnableInsert="true" EnableUpdate="true">

 

</asp:LinqDataSource>

 

<asp:LinqDataSource runat="server" ID="scopesDataSource"

 

          ContextTypeName="SecurityDataContextEx"

 

          TableName="SecurityRoleScopes">

 

</asp:LinqDataSource>

 

<asp:LinqDataSource runat="server" ID="rolePermissionsDataSource"

 

          ContextTypeName="SecurityDataContextEx"

 

 

          TableName="SecurityRolePermissions"

 

          EnableDelete="true" EnableInsert="true" EnableUpdate="true"

 

          Where="RoleID == @RoleID">

 

 

 

    <WhereParameters>

 

 

 

       <asp:Parameter Name="RoleID" Type="Int32" />

 

 

 

    </WhereParameters>  

 

 

</asp:LinqDataSource>

 

<asp:LinqDataSource runat="server" ID="permissionsDataSource"

 

          ContextTypeName="SecurityDataContextEx"

 

          TableName="SecurityPermissions"

 

          Where="@isSiteLevelScope && isSiteLevelScope == true ||

                @isProjectLevelScope && isProjectLevelScope == true ||

                @isProjectOwnerLevelScope && isProjectOwnerLevelScope == true">

 

 

    <WhereParameters>

 

        <asp:Parameter Name="isSiteLevelScope" Type="Boolean" DefaultValue="false" />

 

 

        <asp:Parameter Name="isProjectLevelScope" Type="Boolean" DefaultValue="false" />

 

        <asp:Parameter Name="isProjectOwnerLevelScope" Type="Boolean" DefaultValue="false" />

 

    </WhereParameters>

 

</asp:LinqDataSource>

 

<asp:LinqDataSource runat="server" ID="projectStatusesDataSource" 
          ContextTypeName="SecurityDataContextEx"

 

 

          TableName="ProjectStatus" Where="Disabled==null || Disabled==false" OrderBy="SortOrder">

 

</asp:LinqDataSource>

 

 

 

 

Veli
Telerik team
 answered on 05 Jul 2010
2 answers
107 views
I have a grid with a MasterTable and a DetailTable.

There are times in the life of my app when I have the DetailTable open on a particular row of the MasterTable and I do something that requires the grid to be rebound.

I know the MasterTable row index and the row index on the DetailTable.

After I have rebound the grid, how can I get the grid to expand the relevant MasterTable row, populate the DetailTable and select the relevant row in it?

The best I could come up with is something like this...
RadGrid1.MasterTableView.Items[MasterTableRowIndex].ChildItem.Expanded = true

Sadly this doesn't do what I thought it might.

Anyone have any clues?

-- 
Stuart

Stuart Hemming
Top achievements
Rank 2
 answered on 05 Jul 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?