Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
131 views
Hi,

I've wired up my radgrid (4columns) to a sqldatasource. The datasource has the following stored procs attatched.

spLinkTrackMailRedirectInsert
spLinkTrackMailRedirectUpdate
spLinkTrackMailRedirectDelete
spLinkTrackMailRedirectSelect

None of these work, so i set
AllowAutomaticDeletes="True"
AllowAutomaticUpdates="True"
AllowAutomaticInserts="True"

Now i get this error
Procedure or function spLinkTrackMailRedirectInsert has too many arguments specified.

In the SQL Profiler
@LinkTrackMailId = NULL, @DestUrl = N'asd', @LinkUrl = N'asd', @LinkTrackMailRedirectId = NULL

4 parameters but my Insert SP only has 3??

Thanks
My Columns..
                <telerik:GridBoundColumn DataField="LinkTrackMailRedirectId"  
                    DataType="System.Int32" EmptyDataText="&amp;nbsp;"  
                    HeaderText="LinkTrackMailRedirectId" ReadOnly="True"  
                    SortExpression="LinkTrackMailRedirectId" UniqueName="LinkTrackMailRedirectId" 
                    ForceExtractValue="Always"> 
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="LinkTrackMailId" DataType="System.Int64"  
                    EmptyDataText="&amp;nbsp;" HeaderText="LinkTrackMailId" ReadOnly="True"  
                    SortExpression="LinkTrackMailId" UniqueName="LinkTrackMailId" 
                    ForceExtractValue="Always"> 
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="DestUrl" EmptyDataText="&amp;nbsp;"  
                    HeaderText="DestUrl" SortExpression="DestUrl" UniqueName="DestUrl"> 
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="LinkUrl" EmptyDataText="&amp;nbsp;"  
                    HeaderText="LinkUrl" SortExpression="LinkUrl" UniqueName="LinkUrl"> 
                </telerik:GridBoundColumn>  










Darren
Top achievements
Rank 2
 answered on 23 Jan 2009
5 answers
446 views
Hi,

I'm having a problem at the moment dynamically changing the datasource ID of a grid. I have 2 SQLDataSource controls on the web page. I want to change the grid to point to a each one dependant on certain conditions.

I've tried setting the "DatasourceID" and doing "Databind" in the form init/load events, but the grid always looks like the data from the original dataource.

Has anyone any suggestions?

thx in advance

Bobby
James
Top achievements
Rank 1
 answered on 23 Jan 2009
1 answer
95 views
Hi All,

I have taken a telerik grid. In markup i don't have any columns. I want to create columns runtime based on data whose i want to bind.
Apply sorting on selected columns, paging and take some action on itemcommand event.

I have added columns at runtime in grid. But problem is that, Every time when page postbacks, it creates columns and binds grid again. It will be very combersome and slowdown to response. I want that when page load then grid columns has been created and
after that grid state should be maintained.

Does anybody know, please tell me how to do this?
I will be highly greatful to yours...


Thanks & Regards
Brijendra pandey



Yavor
Telerik team
 answered on 23 Jan 2009
3 answers
248 views
Hi,

I am creating a menu for one of our client using telerik control redMenu...
I could not find any menu sample with icons with each main menu item... for example...

+ Add    - Delete

in above example (+) and (-) could be icons I'm using in my menu...
can anyone help???
Sachin
Top achievements
Rank 1
 answered on 23 Jan 2009
3 answers
267 views

Hello!

I have below grid

ID    Name       Observations

1     Child1     offense type 1
1     Child1     offense type 2
1     Child1     offense type 3
2     Child2     offense type 1
2     Child2     offense type 2
2     Child2     offense type 3

And I like to suppress repeating column values to have below.  Are there any telerik grid properties already to do that?

ID    Name       Observations

1     Child1     offense type 1
                      offense type 2
                      offense type 3
2     Child2     offense type 1
                      offense type 2
                      offense type 3

Thanks in advance

Yavor
Telerik team
 answered on 23 Jan 2009
1 answer
223 views
in my itemdatabound event handler, I want to populate an edited item dropdownlist based on the value of a grid dataitem, the reference to the dataitem (Points) fails like so:

 

 

if (e.Item is GridEditFormItem && e.Item.IsInEditMode)  
 
{  
 
GridEditFormItem item = (GridEditFormItem)e.Item;  
 
GridEditableItem eeditedItem = e.Item as GridEditableItem;  
 
DropDownList list = item.FindControl("NumericGrade") as DropDownList;  
 
 
 
 
 
GridDataItem dataItem = e.Item as GridDataItem;  
 
String sPoints = dataitem["Points"].Text;  
int iPoints = Convert.ToInt16(sPoints);  
 
for (int j = 0; j < iPoints + 1; j++)  
 
{  
 
list.Items.Add(j.ToString());  
 
}  
 

I guess I could create a GridTemplateColumn for the Points field and then it would be accessible in GridEditFormItem(?) but I don't really want to through extra fields into the edit form?

Princy
Top achievements
Rank 2
 answered on 23 Jan 2009
1 answer
123 views
I got what I wanted working very quickly because the control works well but got stuck on the last feature. I had a tree that the user could click on but they wanted edit|delete|view option and I added that easily. But I wanted a confirmation on the delete. I tried to catch the OnClientContextMenuItemClicked but then there is no functionality on the tree at all and it looks like I have to handle it all myself. The only other option is going through the postback to raise a new dialog to ask for confirmation.

Anyone have a quicker way to do this? All I want to do is confirm the delete option.

Stephen

Updated: ok, I must have done something wrong because I can call the clientside function and it still acts properly. Is there a way I can change what happens after I return from the client side function. What I'd like it to be able to affect or cancel the server side post under certain conditions.

Updated: ok, never mind, this was as simple as I had hoped it would be

function TestIt(sender, eventArgs) {
  var item = eventArgs.get_menuItem();
  if (item.get_text() == "Delete") {
    if (!confirm("Do you really want to delete that item")) {
      eventArgs.set_cancel(true);
    }
  }



Shinu
Top achievements
Rank 2
 answered on 23 Jan 2009
1 answer
100 views
I saw a demo where the grid was configured to look/act like Outlook (with multi-line column for From/Subject), and that's <i>very</i> similar to what I want to do.  I'm new to these controls, but I did install the trainer and downloaded courseware, etc...  but, I haven't located a sample or info directly related to that.  Can someone point me in the right direction?
Shinu
Top achievements
Rank 2
 answered on 23 Jan 2009
1 answer
158 views
I am using the "Form template edit form" with EditMode="PopUp" to edit rows in my grid (it uses my ascx for a custom "edit" popup). Normally the user clicks the "Update" button to save the data (with a CommandName of Update). But when the user clicks the "OK" button on the main page, I want to save the values in the current edit popup (if there is one open). How do I invoke the "Update" for the open popup when someone hits just a button on the main page?

Thanks!
Shinu
Top achievements
Rank 2
 answered on 23 Jan 2009
2 answers
232 views
I love the quick Month/Year picker on the calendar but would really like to put this somewhere by itself. Baring that is there a way that I can fire the Month/Year picker with javascript and control the position of the popup.
Stephen
Top achievements
Rank 2
 answered on 22 Jan 2009
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?