Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
177 views

How can I determine if a "delete" links was clicked?

My aspx page has

<telerik:RadGrid ID="radGrid" runat="server"
.......
OnDeleteCommand="RadGrid_DeleteCommand"
>

<telerik:GridButtonColumn CommandName="Delete" Text="Delete"
UniqueName= "DeleteColumn"></telerik:GridButtonColumn>

In my codebehind I want to check to see if the delete was clicked:

Dim DeleteWasClicked as boolean

If IsPostback() then
   DeleteWasClicked = ????
end if

' I ahso have the follwing to delete the record (which works fine)

Protected Sub RadGrid_DeleteCommand(ByVal source As Object, ByVal e As GridCommandEventArgs)
'Get the GridDataItem of the RadGrid

Dim item As GridDataItem = DirectCast(e.Item, GridDataItem)
'Get the primary key value using the DataKeyValue.

Dim PrmaryKeyID As String = item.OwnerTableView.DataKeyValues(item.ItemIndex)("CustomerID").ToString()

Dim deleteQuery As String = "DELETE from "....
' Run the query

End Sub

Bruce
Top achievements
Rank 1
 answered on 20 Mar 2009
3 answers
159 views
this is probably a really stupid question but.. 
I updated my items in the vs2005 toolbox to 2008.3.1504(latest) .
Copied the .dll into my bin file including the refresh file
updated my webconfig <assemblies> to 

<

add assembly="Telerik.Web.UI, Version=2008.3.1504.20, Culture=neutral, PublicKeyToken=121FAE78165BA3D4"/>

 


everything works.. except now every time i drag a new control into my form i end up with another telerik reference pointing to that specific build.
ie 

<%

@ Register Assembly="Telerik.Web.UI, Version=2008.3.1504.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4"

 

 

Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

 

<%

@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

 

... is there a way I can have the assembly register without the version? That way I can update easily in the future without having to worry about old builds

thanks for any help/advice.

PS: I also have Telerik.Web.UI (2008.3.1504.20) and Telerik.Charting (2.0.4.0) in my GAC if that is any further help. For some reason I can't remove the .charting reference.


Giuseppe
Telerik team
 answered on 20 Mar 2009
1 answer
205 views
We have a grid that we bind to a dataset where each row has a status (expired, new, updated, etc).  These are stored in the database with the first letter (e, n, u, etc). 

In our grid we would like to display these as e, n or u, but in the edit form we would like to display a dropdown containing the full representation (expired, new, updated, etc). 

Since there are only a limited number of possible datavalues in the dropdown we would like to declare these as an array of ListItems and set it as the datasource of the dropdown. Hopefully we would be able to do it from codefront :)

Cheers!
Princy
Top achievements
Rank 2
 answered on 20 Mar 2009
1 answer
188 views
How do I control the spacing of labels along the x- axis? Some of the column descriptions in my chart are long and run into one another.

As an alternative, how can I force the label to be 2 lines? I've tried inserting <br> into the textblock text, but this does not seem to have the desired effect.

I've also set 

IntelligentLabelsEnabled

 

="True"

 

 as well as  

XAxis

 

AutoScale="True"

but these settings did not seem to affect the X axis labels

 

Dessy
Telerik team
 answered on 20 Mar 2009
1 answer
106 views

I started from the great example that was posted here:
http://demos.telerik.com/aspnet-ajax/tooltip/examples/clientsideapi/defaultcs.aspx
I have an application where I display an regular for within my grid for data entry. This grid is on a content page (of a masterpage) by the way.
The first field is a name.  I use a RequiredFieldValidator.
When the form is in insert mode and there is a blank name and the user presses Insert, the Radtooltip comes back with the 

ValidationSummary.

But, When the form is in update mode and there is a blank name and the user presses update the first time, the Radtooltip does not display. But if you press the update button a second time, the radtooltip shows.
I am using the RadAjaxManager. When I comment out the RadAjaxManager, the update works as desired the first time the user presses update. But of course I loose my RadAjaxLoadingPanel. Even targeting the RadToolTip within the RadAjaxManager does not show the tooltip until the second button press.
I tried the RadAjaxPanel, no problems, everything worked !

I have read through several post and I understand that the Validators do not work well with the RadAjaxManager.
my questions :
1) I have read many posts within and without telerik's forum and I get a little confused. Some telerik posts say there are problems with ASP.NET validators when used with RadAjaxManager, yet, some say it will be resolved, and others say there are workarounds ? Is this an issue that has been resolved in a new release ? I am at "Telerik.Web.UI.dll 2008.3.1125.35 Trial version".
2) If this has not been resolved, is there a workaround using RadAjaxManager and the validators ?
3)  Can I upgrade to the latest telerik release even though I am in a trial version.
4) To keep the advantages of the RadAjaxManager, is there another, or better way to do validation and display a validation summary(client side and server side) ?

Thanks for your time.
 

Georgi Krustev
Telerik team
 answered on 20 Mar 2009
8 answers
119 views
Dear Sir,

I'm having a peculiar trouble with RadDock and his custom commands.
I had a project in which I use RadDock with a custom command. Everything has always worked fine.
Last week I installed your latest release (Q1 2009).
Today, I happened to launch the project page containing the RadDock and I found out that the image of the custom command was not properly showed.
At first I start looking for something I could have done but after a while I realized I haven't changed that page lately.
So I decided to try changing your dll with those ones of Q3 2008 release.
Actually, after that, everything seems to work properly.
I tried to change the dll again (with GE 2009) and again the problem appears.
Do you have an idea on what's happening?

Thanks for your reply.

Regards

Paolo
Paolo
Top achievements
Rank 1
 answered on 20 Mar 2009
9 answers
213 views
I have a demo grid I just got working with Vlad's help with the new IBindableControl capability using a UserControl for the Edit Template. I have some asp:Textbox controls in the Usercontrol and I just tried to get validation going using the new RadInputManager. I've set two of the textboxes to be TextBoxes with just an empty message. The empty message displays but the skin formating does not. The Grid has a default skin and I've set the skin for the RadInputManager to be Office2007. If I put the code inside a normal aspx page it works as expected.

<%` Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %> 
 
<asp:TextBox runat="server" ID="FirstName" Text='<%# Bind("FirstName") %>' TabIndex="1" /> 
<asp:TextBox runat="server" ID="LastName" Text='<%# Bind("LastName") %>' TabIndex="2" /> 
                                                 
<div style="text-align: right; clear: both;"
    <asp:Button ID="Button2" Text='<%# ((GridItem)Container).OwnerTableView.IsItemInserted? "Insert" : "Update" %>' 
        CommandName='<%# ((GridItem)Container).OwnerTableView.IsItemInserted? "PerformInsert" : "Update" %>' 
        runat="server" /> 
    <asp:Button ID="Button3" Text="Cancel" CommandName="Cancel" runat="server" /> 
</div> 
 
<telerik:RadInputManager ID="RadInputManager1" runat="server" Skin="Office2007"
    <Telerik:TextBoxSetting EmptyMessage="First Name"
        <TargetControls> 
            <Telerik:TargetInput ControlID="FirstName" /> 
        </TargetControls> 
    </Telerik:TextBoxSetting> 
    <Telerik:TextBoxSetting EmptyMessage="Last Name"
        <TargetControls> 
            <Telerik:TargetInput ControlID="LastName" /> 
        </TargetControls> 
    </Telerik:TextBoxSetting> 
</telerik:RadInputManager> 


Is this a bug or am I doing something wrong?

Thanks, Steve



Sebastian
Telerik team
 answered on 20 Mar 2009
1 answer
261 views
I have a grid which is populated client side, using a web service. As per the examples I use the tableView.set_dataSource property and the dataBind() method.

When I use Drag and Drop on a row to in the grid, the event handler on the server side for RodDrop fires, but the GetDataKeyValue method returns null for both destination and dragged items.  (This value is available client side).

From reading others forum articles it appears that the GetDataKeyValue would only work if the grid was populated Server Side since it is stored in view state.

If this is the case is there a workaround? 
Simon
Top achievements
Rank 1
 answered on 20 Mar 2009
2 answers
104 views
Hi,
Does anyone know of a way to change what is displayed when hovering over a button in the RADEditor?
I wish to change the ToolTip text for MOSSTemplateManager to something like 'Reusable content'

The line in the Tools.xml file  is:

    <tool name="MOSSTemplateManager" />

Hopefully this is quite an easy thing to do but I'm not sure how to do it myself.

Thanks,
Joe
Joe
Top achievements
Rank 1
 answered on 20 Mar 2009
1 answer
86 views
Hi,

We had purchased RadSpell recently and have been using it for SpellCheck in our project. We are now ready to move to the test server. Our Development team says that we need to install the RadSpell in the server? I thought if we just copy the DLL we should be okay. Please let me know.

Thanks

Selva
Rumen
Telerik team
 answered on 20 Mar 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?