Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
88 views
In the following  I'm selecting the third page and saving the state for user1 and then selecting the fifth page and saving the state for user 2. Now if I load the user1 settings the page is not showing as 3 but the same 5 which was saved for user2.
http://demos.telerik.com/aspnet-ajax/grid/examples/programming/savinggridsettingsonperuserbasis/defaultcs.aspx

Is there any work around for this?
Tsvetoslav
Telerik team
 answered on 26 May 2011
4 answers
121 views
I have a RadGrid bound to a collection, the collection has integer, strings and char datatypes.  I can group by all these nor problem and I can filter with the integer and strings however using the CHAR and equalto does not work.

I have one column that contains either a V or an O (for Vacant or Occupied) when I attempt to filter by V and EqualTo I still get both V and O items, I tried using O and greater then to just get the V no luck still get them all.  However I can drag the column to the group by bar and it groups the items correctly.

(I have set the datatype for the column to System.Char)

Svett
Telerik team
 answered on 26 May 2011
4 answers
272 views
Hi. I have a client that I've developed a solution for using RadUpload. We've discovered just recently that there seems to be a barrier somewhere around 30 megabytes. I flipped over to another solution I have that uses RadUpload (different server) and am experiencing the same thing. Both servers are Server 2008, and I've modified the web.config file on both servers as follows:

<httpRuntime useFullyQualifiedRedirectUrl="true" maxRequestLength=102400"
requestLengthDiskThreshold
="8192" executionTimeout="3600"/>

So both servers are configured for a maximum 100MB file and 60 minutes of upload.

I have tested files of various size between 1MB and 28MB and they upload fine - everything, including my ProgressArea, works. When i upload a file above 30 MB, though, my ProgressArea doesn't display, and after about 2 minutes (regardless of connection speed), I get redirected to a 404 or timeout page.

I've tested this on everything from a 512kb (up) connection to a 7mb (up) connection and the barrier seems to be right around 30 megabytes, consistently.

I am running these inside UpdatePanels using AJAX but have added a PostBackTrigger to my upload button to trigger a full page postback when it is clicked.

Hopefully that's enough info to get some help here. I've seen several people with issues related to the web.config settings and the ajax postback settings, but I think I have both of those dealt with. I'd appreciate your assistance.

Thanks,

Chet
Peter Filipov
Telerik team
 answered on 26 May 2011
3 answers
417 views
Hi all,

When i use the default drop down to change the Skin using the Rad Skin Manager then everything works fine.
But in my current application i want to change theme on the click of my theme buttons say Blue, Red , Green etc
So how can i do that using Rad Skin Manager.

Thanks,
Aashish Gupta

Maria Ilieva
Telerik team
 answered on 26 May 2011
1 answer
155 views
Hi,
I get via LINQ this data structur from a SQL Server:

Count Product Date
1 Product1  03.11.2009
2 Product1 04.11.2009
1 Product2 04.11.2009
3 Product1 05.11.2009
1 Product2 05.11.2009
1 Product3 05.11.2009
3 Product1 06.11.2009



As you can see I want to group my products by the the same date to visualize how many different products are counted on this day.
I want this to show as a line chart.
I attached a file with a image of what i mean.

How can I do this programmatically?
Ves
Telerik team
 answered on 26 May 2011
1 answer
40 views
Hello,

I have a problem with the scheduller. When I click on any option of the tool it refreshes the entire web page, not just the scheduller.

Should I change any property?

Thanks.
Peter
Telerik team
 answered on 26 May 2011
6 answers
279 views
I have a couple of pages on my site that dynamically add RadPanelItems to a RadPanelBar and apply header and content templates to them. I have recently noticed that when I navigate away from these pages when the site is debugging, I get a ScriptResource.asxd?d=LotsOfNumbersAnNdLetters..... error that reads like so...

Microsoft JScript runtime error: Sys.InvalidOperationException: Handler was not added through the Sys.UI.DomEvent.addHandler method.

I can only assume this has something to do with the Templates that get applied, but cant work out whats wrong as the pages work exactly as they're meant to and don't produce any server or client side errors until this one. Again, this error ONLY occurs when navigating away from the page, not on postback.

The templates do have event handlers added to controls that are built in the templates and think it might have something to do with these, but when I comment these handlers and methods out, I still get the same error...

It's very puzzling and I have to get it fixed but have run out of ideas.
Dobromir
Telerik team
 answered on 26 May 2011
24 answers
930 views
Hi guys,

I am trying to upgrade my existing web project where I'm using the RadControls's 2007 Q2 RadAjaxManager to "Prometheus"'s RadAjaxManager.

I have followed instructions in documentation (Adding RadControls 'Prometheus' to an existing application), but I still receive this error when I open a page with "Prometheus" RadAjaxManager:

The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).

What could be wrong?

Regards,
Alex
Sebastian
Telerik team
 answered on 26 May 2011
4 answers
171 views
I tried the http://www.telerik.com/help/aspnet-ajax/grid-hide-expand-collapse-images-when-no-records.html way of hiding the expand/collapse image but with no success. I don't use the HierarchyLoadMode = ServerBind way of populating the details table - but I don't have a problem populating the details table.

Here is the code for the detail table bind and my attempt to hide the collapse/expand column for parent rows with no detail items:

Private Sub RadGridEvents_DetailTableDataBind(ByVal source As Object, ByVal e As GridDetailTableDataBindEventArgs) Handles RadGridEvents.DetailTableDataBind
        Dim dataItem As GridDataItem = CType(e.DetailTableView.ParentItem, GridDataItem)
        Select Case e.DetailTableView.Name
            Case "EventMerchantList"
                Dim EventID As Integer = dataItem.GetDataKeyValue("eventID")
                Dim eventML As List(Of Merchant)
                eventML = Merchant.GetAllMerchantsByEventID(EventID)
                If Not eventML Is Nothing Then
                    If eventML.Count > 0 Then
                        e.DetailTableView.DataSource = eventML
                    End If
                End If
        End Select
    End Sub
 
    Protected Sub RadGridEvents_PreRender(ByVal sender As Object, ByVal e As EventArgs)
        HideExpandColumnRecursive(RadGridEvents.MasterTableView)
    End Sub
    Public Sub HideExpandColumnRecursive(ByVal tableView As GridTableView)
        Dim nestedViewItems As GridItem() = tableView.GetItems(GridItemType.NestedView)
        For Each nestedViewItem As GridNestedViewItem In nestedViewItems
            For Each nestedView As GridTableView In nestedViewItem.NestedTableViews
                If nestedView.Items.Count = 0 Then
                    Dim cell As TableCell = nestedView.ParentItem("ExpandColumn")
                    cell.Controls(0).Visible = False
                    nestedViewItem.Visible = False
                End If
                If nestedView.HasDetailTables Then
                    HideExpandColumnRecursive(nestedView)
                End If
            Next
        Next
    End Sub

It seems like this should be an easy thing to do but I cannot find the answer. Thanks in advance for any help I get with this.
Marin
Telerik team
 answered on 26 May 2011
2 answers
208 views
Dear Sir:
 I have a telerik gird and I would like to add tool tip in grid with add control during itemDataBound. it is ok for the static control in the grid template but if i try to dynamic  add control with tool tip manager during grid itemDataBound and the tool tip didn't show up.

will you have any sample which i can follow or any correction for my coding?

Thank you very much for your support!

From Edmond
protected void grdOwnerHistory_ItemDataBound(object sender, GridItemEventArgs e)
   {
       STEPS_AdditionalOwner_DataAdapter additionalDA = new STEPS_AdditionalOwner_DataAdapter();
       STEPS_Client_DataAdapter clientDA = new STEPS_Client_DataAdapter();
        if (e.Item is GridHeaderItem)
       {
           GridHeaderItem headerItem = (GridHeaderItem)e.Item;
       }
        else if (e.Item is GridDataItem)
        {
            GridDataItem dataItem = (GridDataItem)e.Item;
            if (!Object.Equals(this.RadToolTipManager1, null))
            {
                RadToolTipManager1.TargetControls.Add(((HyperLink)dataItem["Owner_Name"].FindControl("lnkOwner_Name")).ClientID, "Owner_Name|" + dataItem["Owner_ID"].Text.Replace(" ", "").Replace("<nobr>", "").Replace("</nobr>", ""), true);
                //((HyperLink)dataItem["Owner_Name"].FindControl("lnkOwner_Name")).Font.Underline = true;
                DataSet ds = additionalDA.getAdditionalOwnerByTenureId(long.Parse(dataItem["Tenure_Id"].Text));
                foreach (DataRow dRow in ds.Tables[0].Rows){
                    DataSet clientDS = clientDA.GetClientById(CommonFunction.ConvertIDToInt64( dRow["Owner_Id"]), long.Parse(this.employeeId));
                      
                    string clientName;
                    if (clientDS.Tables[0].Rows.Count > 0){
                       clientName  = clientDS.Tables[0].Rows[0]["Rn_Descriptor"].ToString();
                         
                       HyperLink link = new HyperLink();
                       link.Text = clientName;
                       RadToolTipManager1.TargetControls.Add(link.ClientID, "Owner_Name|" + dRow["Owner_Id"].ToString(), true);
                       dataItem["Owner_Name"].Controls.Add(link);
                        
                         
                    }
                }
            }
        }
   }
CH
Top achievements
Rank 1
 answered on 26 May 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?