Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
148 views
I have a grid that when the user clicks on the row it redirects to another page via the ItemCommand event.

If e.CommandName = "RowClick" Then

Dim GridItem As GridDataItem = CType(e.Item, GridDataItem)

 

Dim itemPrimaryKey As String = GridItem.GetDataKeyValue("PROJECT_ID").ToString()

Response.Redirect("Project.aspx?ID=" & (itemPrimaryKey) & "&TYPE=0")

End If

 

The problem is I also have 

 

AllowAutomaticUpdates

 

="True"

 

 

 

and 

 

 

<telerik:GridEditCommandColumn ButtonType="ImageButton" UpdateImageUrl="../RadControls/Grid/Update.gif"

 

 

 

 

 

 

EditImageUrl="../RadControls/Grid/Edit.gif" InsertImageUrl="../RadControls/Grid/Insert.gif"

 

 

 

 

 

 

CancelImageUrl="../RadControls/Grid/Cancel.gif" UniqueName="EditCommandColumn">

 

 

 

 

 

 

<HeaderStyle Width="20px" />

 

 

 

 

 

 

</telerik:GridEditCommandColumn>

 

 

 


So when I click on the GridEditCommandColumn it too redirects me to another page and does not bring up the edit functionality. This was working before until I upgraded to 2008.1.515.20

 

 

Shinu
Top achievements
Rank 2
 answered on 17 Nov 2008
1 answer
315 views
Title cryptic enough for you?  Heh...it was the best I could come up with.

Here's the deal.  A linkbutton opens a RADWindow, on which users select some information, and database changes are made.  When I get back to the parent page (which is a content page with a master), I need to refresh some things...in my first case, a RADGrid and a FormView.

Since I'm not on the master page (which has the ajax manager), I didn't assume I could do an ajaxRequest to the CodeBehind of the content page...it would go to the CodeBehind of the master page, right?  So I came up with this:

    function OnClientClose(radWindow) { 
      __doPostBack("<%=fvNameName.ClientID%>",radWindow.argument); 
      return false
    } 

In my content page CodeBehind's Page_Load, I have:

    if (Page.IsPostBack) { 
      // Figure out what to refresh 
      switch (Request.Params["__EVENTARGUMENT"]) { 
        case "IncidentNameVariant"
          fvNameName.DataBind(); 
          gvName.Rebind(); 
          break
        default: 
          break
      } 
    } 

In the RADAjaxManagerProxy I've configured fvNameName to update gvName (the RADGrid) and itself (the FormView).

When I set a breakpoint, I can see that both the RADGrid and the FormView have loading panels showing, as if they are being updated.  But when I get back to the page, only the FormView reflects the changes I made in the database.

If I change the __doPostBack to use the RADGrid's client id as such:

__doPostBack("<%=gvName.ClientID%>",radWindow.argument); 

then only the RADGrid shows the new information.

I'm a bit stumped...can someone point me to a way to refresh two, three or even more separate components in one shot?

thanks,
  -Chris
Kevin Babcock
Top achievements
Rank 1
 answered on 17 Nov 2008
0 answers
75 views
Hello All,

I am using grid in my application and I have set useStatic header property to true,my problem is when click I add new record pop up is opening but it becomes transperant but when I open edit form it opens correctly.This problem seems to be come in Mozila but in IE it is perfect.

Thanks in advance 
sushant
Top achievements
Rank 1
 asked on 17 Nov 2008
0 answers
89 views
I want to place a text box whenever a user clicks on a row with link. I want that specific row to get hidden and place text box with 'ok' and 'cancel' buttons in place of that...If user clicks 'ok' or 'cancel', it do appropriate tasks and place that row again and hide text box and buttons....please guide me in it. Plllllzzzzzzzzzzzzzzzz!!!!!!
Saad
Top achievements
Rank 1
 asked on 17 Nov 2008
1 answer
131 views
I have a RadGrid with template colums and  edit mode PopUp. So I can refer to text boxes like so:

    Protected Sub RadGrid1_ItemDataBound(ByVal sender As Object, ByVal e As GridItemEventArgs)  
        '-----------------------------------------------------------------------  
        ' If inserting, set the default competitor number, ie SiteNr + a seq nr  
        '-----------------------------------------------------------------------  
        If TypeOf e.Item Is GridEditableItem AndAlso e.Item.IsInEditMode Then  
            If e.Item.OwnerTableView.IsItemInserted Then  
                Dim item As GridEditableItem = TryCast(e.Item, GridEditableItem)  
                  
                 ' Find the CompNr textbox  
                Dim CompNrRadTextBox As RadTextBox = TryCast(item("CompNr").FindControl("CompNrTextBox"), RadTextBox)  
 
 

Works fine, but when I use a form template (ie FormTemplate in EditFormSettings), that code no longer works, and the control isn't found any more.

Can anyone tell me how I should adapt the code?

Thanks, Steve

Steve Newbery
Top achievements
Rank 1
 answered on 16 Nov 2008
1 answer
136 views
So I have a radmenu configured to pull out the items in it from my database. This works well. . But I am having trouble because I need to use a querystring and cannot find a way to do this with your software. It data driven. I want to go to catalog.aspx and then pass the related querystring information for each sub category clicked. And I am also having trouble with root items and a query string using the hierarchical convention you advise in your video tutorials. please be as detailed as possible.




I want to put an expression like this in the navigate url or somewhere

"../Catalog.aspx?ParentID=" + Eval("DepartmentID") + "&CatID=" + Eval("CatID")

 
Edgar
Top achievements
Rank 1
 answered on 16 Nov 2008
2 answers
223 views
Hi,

I have many Telerik controls within many many pages.
 Each of my users would like to use different skins.

Can i loop through all Telerik controls on a page (server-side as i retrieve user skin from database), or....
Do i have to set the skin property server-side for each telerik control ???

If so , how ?

Many Thanks
Mark
Mark
Top achievements
Rank 1
 answered on 16 Nov 2008
1 answer
264 views
Good day.

I am using a RadAjaxManager with the RequestQueueSize set to 5. It is Ajaxifying two RadGrids one which is being used to select records, and the other to show an ordered list of the selected items. 

The problem arises if 3-4 items are selected in quick succession the Request queue does not maintain the order of the selected items. I was wondering if there was any way to have the request queue maintain the order in which that the requests occurred.

Thank you very much for your help.
Kevin Babcock
Top achievements
Rank 1
 answered on 16 Nov 2008
1 answer
155 views
I had Q2 installed (still do) and now I've installed Q3.  In my installation directory for Q3 I have 40 items such as RadAjax.Net2.dll/xml, RadGrid.Net2.dll/xml etc.  I do not have a Telerik.Web.UI.dll such as is present in my Q2 installation \bin directory.

So, now I'm trying to port over a Proof Of concept that was midstream in development using Q2 binaries.  So, I'm trying to determine which DLLs I need to 'reference' in my webapp to maintain as much of my codebase as possible in my port over to Q3.

I've referenced: RadAjax.Net2.dll and RadGrid.Net2.dll

I cannot locate: RadScriptManager, RadScriptBlock

I see the namespace has morphed from Telerik.Web.UI... to Telerik.Webcontrols...  After converting my 'using' statements to the new namespace I still can't locate the above.

I've tried using RadAjaxManager but it does not seem to be the same as RadScriptManager.

The Q3 installer did not install the Document Explorer help files for the Q3 release. I downloaded the Q3 CHM file from your site to see if I could get more guidance, but the file indicates there's still a Telerik.Web.UI namespace with a RadScriptManager in it...

Can you help clear this all up for me?

I don't see these changes (namespace, renamed objects) mentioned in your 'Breaking Changes' document.  Help!!!

Thanks, Scott
Kevin Babcock
Top achievements
Rank 1
 answered on 16 Nov 2008
1 answer
105 views
Hi.. I have a user control hosted in a page that is hosted in a masterpage.
How can I execute the following code from the usercontrol code behind ?

If I add an scriptmanager to the usercontrol I get an error...    thanks!

RadAjaxManager.ResponseScripts.Add(

@"Sys.Application.add_load(function()

 

{radalert('Under Construction...', 250, 100);})"

 

);

thanks

 

Kevin Babcock
Top achievements
Rank 1
 answered on 16 Nov 2008
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?