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

so I spent a lot of time (too much) on a 3 level hierarchy.
The webapp is currently being used.

So I have spent a LOT of time answering phone calls and emails from users. Also held some courses for them. (Keep in mind none of the users are IT people, quite the opposite).
I also have a nice colored box on top of the page with instructions on how to use it. The first line of the info box is in bold text and says:
Use the + - on the left to collapse-expand: [level 1 name] [level 2 name] [level 3 name]

And still, it was the most frequent problem. So I switched to "PushButton" to expand-collapse. Still a problem...
So, I've had to rethink the whole layout, and walk away from the 3 level hierarchy grid (again, but this time I've learned to stay away from those)..
I have to admit it can look confusing when you have a lot of data in there. Mostly, I think it looks too impressive: users will automatically think "wow, this looks hard", and first impressions last forever...

Now working on a new layout, with a combo to select top level item... A treeview listing the level 2&3 items, and an iframe showing details of the selected item.
Performance was also becoming an issue very quickly with a 3 level hierarchy, even with paging set to 5 for the top level item...
Personally, I was very happy with the result (thanks to support), but the confused users forced me to rethink the whole page...

What's your experience with a 3 level hierarchy grid? If you've had any success with it, I'd like to know...
If you ended up "burned" like me, it'd also be interesting to hear.

Best regards,
Nicolai
Iana Tsolova
Telerik team
 answered on 19 Oct 2009
1 answer
97 views
Hi Telerik,

I am using ajax rad grid in our application and it contains one selected record out of all records. And that selected record may exists in 4th or 5th page. By default 1st page is appearing in radgrid, but i need to show the selected record existing page. Please help me to get the solution.

Thanks in advance.
Balaji Velasiri

Shinu
Top achievements
Rank 2
 answered on 19 Oct 2009
1 answer
111 views
Hi,

I have made a webpart for sharepoint that uses the radchart. The radchart appears in the webpart but has message to add following to my web.config:
<add path="ChartImage.axd" verb="*" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI, Version=2009.2.826.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false" />

When I add the above line, I start getting the following error. If I remove the line, the error goes away

Server Error in '/' Application.


Unable to connect to SQL Server session database. The connection string (server='xxxxxxxxx', database='SharedServices_DB') was returned by an instance of the IPartitionResolver type 'Microsoft.Office.Server.Administration.SqlSessionStateResolver, Microsoft.Office.Server, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c'.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: Unable to connect to SQL Server session database. The connection string (server='dmc-customers', database='SharedServices_DB') was returned by an instance of the IPartitionResolver type 'Microsoft.Office.Server.Administration.SqlSessionStateResolver, Microsoft.Office.Server, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c'.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


Stack Trace:

 

[HttpException (0x80004005): Unable to connect to SQL Server session database. The connection string (server='xxxxxxxxxx', database='SharedServices_DB') was returned by an instance of the IPartitionResolver type 'Microsoft.Office.Server.Administration.SqlSessionStateResolver, Microsoft.Office.Server, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c'.]

   System.Web.SessionState.SqlSessionStateStore.ThrowSqlConnectionException(SqlConnection conn, Exception e) +2987735

   System.Web.SessionState.SqlStateConnection..ctor(SqlPartitionInfo sqlPartitionInfo) +2983247

   System.Web.SessionState.SqlSessionStateStore.GetConnection(String id, Boolean& usePooling) +254

   System.Web.SessionState.SqlSessionStateStore.SetAndReleaseItemExclusive(HttpContext context, String id, SessionStateStoreData item, Object lockId, Boolean newItem) +207

   System.Web.SessionState.SessionStateModule.OnReleaseState(Object source, EventArgs eventArgs) +775

   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +80

   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +171

 


Version Information: Microsoft .NET Framework Version:2.0.50727.4927; ASP.NET Version:2.0.50727.4927



Ves
Telerik team
 answered on 19 Oct 2009
3 answers
144 views
Dear Telerik,

I would like to use the (context)menu in a radgrid. However I wish to show the context menu when the user hovers over an edit-image (no right click) inside the grid. I need a postback to do some serverwork and I need the value of the DataKeyName of the rowindex clicked.

What is the best approach? Is there an example/demo online that uses this technique?

Best wishes
Sebastian
Telerik team
 answered on 19 Oct 2009
0 answers
389 views
Telerik RadListView is designed to give your the freedom to specify predefined or customized type of layout for the items displayed in the control and in the same time gives you integrated sorting, paging, grouping, editing, selecting, etc. capabilities. You can embed various controls of your choice in RadListView's templates and model their appearance in a custom manner. Added to this is true cross browser support - Internet Explorer, all Gecko-based browsers, Google Chrome, Safari and Opera.

At the same time Telerik RadListView delivers top-of-the line features which are listed in the Overview page from the product documentation.

 
To get familiar with the control please follow these online resources:

Telerik Admin
Top achievements
Rank 1
Iron
 asked on 19 Oct 2009
5 answers
274 views
Hello, Telerik support team!

Could you describe me how to solve a problem I have please.
I have an RadSlider on the web page. When its ItemType property is set to "Item", I can't force the Drag handle to be placed directly on graduation marks. It's possible only if ItemType property is set to "Tick", but I can't use slider so.
How can I force Drag handle to be displayed only on graduation line(s) instead of between of them?

Take a look at the attached png file with some description please.

Thank you a lot.
Igor Soloydenko
Igor
Top achievements
Rank 1
 answered on 19 Oct 2009
7 answers
316 views
I need to access a value that is common to all rows when I run the insert command. How is the best way to accomplish this?
Mark Galbreath
Top achievements
Rank 2
 answered on 19 Oct 2009
1 answer
268 views
I create
 <CommandItemTemplate>
                                         <table width="100%">
                                          <tr>
                                            <td>
                                             <asp:LinkButton ID="btnAdd"
                                              Text="Add New Content of Course" CommandName="InitInsert" Runat="server"></asp:LinkButton>
                                            </td>
                                            <td>
                                              <asp:LinkButton ID="btnDelete"
                                              Text="Delete Content" CommandName="Delete" Runat="server"></asp:LinkButton>
                                            </td>
                                        <td>
                                         <asp:LinkButton ID="btnRefresh" Text="Refresh data"
                                          CommandName="Rebind" Runat="server"></asp:LinkButton>
                                        </td>
                                          </tr>
                                         </table>
</CommandItemTemplate>

and When I delete item i show error Unable to cast object of type Telerik.Web.UI.GridCommandItem to type 'Telerik.Web.UI.GridEditableItem . I dont know what happen. This is Code i delete item in event delete command

protected void rgTrCategory_DeleteCommand(object source, GridCommandEventArgs e)
    {
        bool result = false;
        try
        {
            if (e.CommandName == RadGrid.DeleteCommandName)
            {
                if ("TrContents".Equals(e.Item.OwnerTableView.Name))
                {
                    for (int i = 0; i < e.Item.OwnerTableView.Items.Count; i++)
                    {
                        GridDataItem row = e.Item.OwnerTableView.Items[i];
                        if (row.Selected == true)
                        {

                            Image _imgContent = (Image)row.FindControl("imgContent");
                            if (_imgContent != null)
                            {
                                if (File.Exists(Server.MapPath(_imgContent.ImageUrl.Trim())))
                                {
                                    File.Delete(Server.MapPath(_imgContent.ImageUrl.Trim()));
                                }
                                TrAccess.DeleteTrainingContent(row.GetDataKeyValue("f_ConCode").ToString());
                                result = true;
                            }
                        }
                    }
                    if (result == true)
                    {
                        ShowErrorFunction.ShowError(this.Page, "Delete Successul!");
                    }
                    else
                    {
                        ShowErrorFunction.ShowError(this.Page, "Please select row to delete");
                    }
                }
            }
        }
        catch
        {


        }

    }
Please help me to solve this problem as impossible as. Thanks alot.
Shinu
Top achievements
Rank 2
 answered on 19 Oct 2009
1 answer
130 views
I have a Grid using automatic inserts. My Primary Key database field "USER_Pin" is an integer.  I prompt for this key using a RadNumericTextBox. However, on my INSERT I get the following error: 
Cannot insert the value NULL into column 'USER_Pin', table 'RTS.dbo.tblUsers'; column does not allow nulls. INSERT fails.The statement has been terminated.

If I change this RadNumericTextBox to a RadTextBox, the INSERT works.

I have tried changing the SqlDataSource Parameters datatypes to string, int16, even removing the type, etc..  nothing seems to work for the RadNumericTextBox

<InsertParameters>
  <asp:Parameter Name="USER_Pin" Type="Int16" />
  <asp:Parameter Name="USER_Name" Type="String" />
  <asp:Parameter Name="USER_Email" Type="String" />
  <asp:Parameter Name="USER_Override_Email" Type="String" />
  <asp:Parameter Name="USER_Privilege" Type="String" />
  <asp:Parameter Name="USER_Status" Type="String" />                
</InsertParameters>

What am I missing??
Iana Tsolova
Telerik team
 answered on 19 Oct 2009
3 answers
86 views
Hi,
While I copy from word into the RAD Editor, I want the font types and sizes removed and keep other formats intact - like Bold / Italics etc. The following does not work for me.

 

 

 StripFormattingOptions="Span, MSWordRemoveAll,Css" StripFormattingOnPaste="Span,MSWordRemoveAll,Css"

I use the version 2009.1.527. I believe this is the latest version. Can you please help me with the problem.

Thanks.
Anandi

 

Rumen
Telerik team
 answered on 19 Oct 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?