Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
142 views
When I click the "add new record" default button - i want it to have onclick javascript.  Is there a way I can access this button from the codebehind and do a "attributes.add" to it?
Shinu
Top achievements
Rank 2
 answered on 10 Jul 2008
4 answers
370 views
I have a RadGrid bound to a LinqDataSource for Products.  I want to set 1 of the product values manually (in code behind) while the user can set the rest using bound controls.  THe problem is I can not figure out how to manually set the value.

I tried to create a hidden bound column (Display=false) for the field, and then in the UpdateCommand event of the RadGrid, I did the following:

        protected void rgProducts_UpdateCommand(object source, Telerik.Web.UI.GridCommandEventArgs e)  
        {  
            // re show the edit column  
            rgProducts.Columns[0].Visible = true;   
 
            // set some values manually  
            GridEditFormItem item = e.Item as GridEditFormItem;  
            item.ParentItem["UpdatedBy"].Text = UserId.ToString();  
        } 

I stepped through the code and the value is set properly, but it never gets updated in the database.  I can only assume my approach is not correct and further searches through the forums has yielded no results either.

How can I get access to the current linq object being updated and set this one member in the codebehind when the user updates so that my value is saved along with their values?

Thanks so much!

Michael
Michael
Top achievements
Rank 1
 answered on 10 Jul 2008
1 answer
190 views
i am adding 2 controls dynamically, a textbox, and a button. they add ok, to each of the 3 tabs, i add them to a pageview.

the problem is that when i click the button in any tab, is causing a postback, and then the controls disapear.

how can i do to persist the controls after the postback is made?

i am using version 2008.1.415.20
Kevin Babcock
Top achievements
Rank 1
 answered on 10 Jul 2008
1 answer
162 views
Hi,

We are using Telerik conrols in our website and we want our wesbite to support back button functionality
The below link specifies that the latest Ajax supoorts Back Button and History
http://www.telerik.com/products/aspnet-ajax/controls/ajax/overview.aspx

But we did not find any demo in the telerik site for this feature.

Can you please give a sample project with back button functionality implemented.

Thanks
Kevin Babcock
Top achievements
Rank 1
 answered on 10 Jul 2008
2 answers
101 views
Hi,

I have implemented my own hierarchicaldatasource and when bound to the RadTreeView it works as expected.

However I have also implemented HierarchicalDataSourceDesigner so that I can place the datasource on a page visually.  The Microsoft Tree component picks this up and can list members no problem, but the RadTreeView does not even see the datasource.  If I manually type the DataSourceId in the designer and manually enter the bindings into the property box of radTreeView, the page will work as expected, but the design component reports an error that datarowview does not contain any of the property names I typed in.

It seems that RadTreeView does not recognise the custom hierarchical datasource in design mode but uses it ok when the page is running.

Is there anything I can do to get this working in design mode?

Thanks,

Darren
PeiQi
Top achievements
Rank 1
 answered on 10 Jul 2008
6 answers
559 views
I have a gridview with a loading panel on a user control on a page with a master page.  The loading panel displays on the first postback (sorting, refreshing, whatever), but after that, the loading panel does not display anymore.

The page it's on is fairly complex, and I can't seem to track down what is causing this to happen.  No errors are being thrown.  The same issue appears to break my datepickers as well.

Any suggestions on what could be causing this or what to look for?

Thanks.

EDIT: I'm beginning to suspect is because the user control on which the gridview is located is dynamically added to the aspx page on page load.  Could this be?
Neil Sloan
Top achievements
Rank 1
 answered on 09 Jul 2008
8 answers
1.4K+ views
Hi.  I have downloaded the most recent version of the Prometheus controls.  I noticed that when a tooltip pops up there are only two ways to close the tooltip for my current situation.

I have a hyperlink with a tooltip set to display on the BottomLeft of the hyperlink.  When the tooltip pops up OnMouseOver I move the mouse cursor so it is now on top of the tooltip.  When I move the mouse off of the tooltip the tooltip closes as expected.  However, if I do not move the mouse onto the tooltip but instead leave it only on the hyperlink the tooltip will not close unless I click elsewhere on the page. 

I have implemented javascript I have found among these help pages to close the tooltip on the "OnMouseOut" event of the hyperlink.  This in turn does not give the user the ability to move the mouse onto the tooltip because the "OnMouseOut" event fires before the user's pointer reaches the tooltip.  What is happening in my situation is logically what should be occuring. 

I am wondering if there is a way to get the best of both worlds and have the tooltip close only when the mouse is not on the tooltip or not on the hyperlink?
Dean Alexander
Top achievements
Rank 1
 answered on 09 Jul 2008
3 answers
185 views
Hi

I know you can hide the text input box for a datepicker using

<DateInput style="display:none"></DateInput
>

How do I get the inputbox to display but not allow the user to enter a date but only allow them to pick a date from the pop up?

Thanks

Richard
The Oracle
Top achievements
Rank 1
 answered on 09 Jul 2008
4 answers
374 views
I'm using the RadGrid as a worksheet.  On each row item, I have a series of textboxes in GridTemplateColumns and at the end a GridBoundColumn that has Aggregate="sum" so that I can have a grid group footer of the subtotal of total of each row.

The client wants the totals to update whenever the value of a textbox changes without submitting the page.  I've figured out the javascript to change the total column, but I'm stumped as to how to change the values of the grid group footer item and the footer item.

I can get the ClientID of the GridTableCell that contains the totals at the ItemDataBound event, but I won't have the complete list of ClientIDs until after it's finished.  I thought I'd be able to loop through the grid items in the PreRender event, but the GridGroupFooterItems don't show up there.   

Does anyone have an idea on how to accomplish this?
Steve
Top achievements
Rank 1
 answered on 09 Jul 2008
1 answer
77 views
I have the following RadEditor control on my page. I want to limit file types allowed to upload in the DocumentManager. What I have allows .doc files to be uploaded but I get 'invalid file type' error for .txt and .pdf files. What is the correct syntax for the SearchPatterns property to limit allowed file types?

<telerik:RadEditor ID="RadEditor1" runat="server"">  
    <DocumentManager ViewPaths="~/support/upload/docs" UploadPaths="~/support/upload/docs" DeletePaths="~/support/upload/docs" SearchPatterns="*.doc, *.docx, *.pdf, *.txt" MaxUploadFileSize="2097152" /> 
    <Content></Content>  
</telerik:RadEditor> 
 

Thanks,
Tim
Rumen
Telerik team
 answered on 09 Jul 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?