Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
222 views
i am having a Radgrid in my website application. I added a GridEditCommandColumn for allowing edit the data in grid. when i clicks on Edit link, it automatically creates update and cancel button. but I dont want to display cancel button. can u please suggest me an idea for make cancel button invisible??
Sanjeev
Top achievements
Rank 1
 answered on 30 Aug 2012
4 answers
209 views


Can someone show me how to retrieve data back from RadGrid row.  This should not be a night-mare, but it turn out to be.

And looks like we have no support here from Telerik, after we bought the products.

Thanks.
Sanjeev
Top achievements
Rank 1
 answered on 30 Aug 2012
1 answer
110 views
I set the mastertableview header in ItemDataBound for both Master and Detail TableView.  But when I click to expand the details, the mastertableview header changed back to the field name.   And when I click the other expand button, the first details header also changed to fieldname.  Where should I put the headertext code in my code behind?  I am using vb.net.

Tks,

Radoslav
Telerik team
 answered on 30 Aug 2012
6 answers
131 views
I would like to get your suggestion to handle the following use case:
  1. The form is based on the ASP:Wizard for ordering map prints
  2. The user selects maps from a database, the selected maps are added to a cart stored as datatable in the session variables. The selected maps are shown in a RadGrid with the requested quantities.
  3. In the next wizard step: For those maps with more than certain copies, the user can upload overlay information to be printed on the maps. For each line in the RadGrid shown in this step an AsyncUpload control is displayed.
  4. Only after the user completes all of the required information such as delivery and payment the cart will be stored as a record in the database.

My questions:
  1. What will be the best practice to handle the files being upload until the cart is suppose to be stored in the database?
  2. How to avoid multiple uploads for the same item? Should I worry about it?
  3. How can I clear files when the purchase was not completed? 

Thanks,
Yoram
Yoram
Top achievements
Rank 1
 answered on 30 Aug 2012
1 answer
138 views
Let me see if I can explain this....

Using a MasterPage...

I have a RadGridView with ViewEditForm. When the form opens I have a RadButton that when pressed should open a RadWindow to display a page of additional details related to the main record.I need to be able to pass a parameter in so that the value can be added to the querystring of the URL. I have a hardcoded version of it working but I need to know how I can grab the parameter off of the ViewEditForm or from the grid row. The value is available from the text of a label (Label1) within the form where the button resides. This is the hardcoded version that works - I need to replace the 9953 in the onClientClicked portion with the dynamically retrieved value.

The aspx page:

 

<telerik:RadButton ID="btnTitleDetails" runat="server"
EnableEmbeddedSkins="False" Skin="Metro_BLT" Text="Title Details"
onClientClicked="function(sender, args){openRadWin(sender, args, '9953');}"
AutoPostBack="false" />

 

The Javascript from the masterpage: 

<script type="text/javascript">
  function openRadWin(sender, args, propId) {
    var url = location.href;
    var baseURL = url.substring(0, url.indexOf('/', 14));
    radopen(baseURL + "/TitleDetail.aspx?&propid=" + propId, "RadWindow1");
    }                                                                      
</script>
RealDeal
Top achievements
Rank 1
 answered on 30 Aug 2012
2 answers
80 views
Dear all,

 I have a problem: When i load all data from datasource on 1 page (no paging), There is no pager style. But now i want to Show number of items when no paging.

the style like the pic attached. (when datasource is 5, i want to show "Items: 5" on the header)

thank you very much!
nguyen
Top achievements
Rank 1
 answered on 30 Aug 2012
2 answers
76 views

Folks, Using RadControls for ASP.NET AJAX Q2 2012 SP1 with VS 2010.

My Radgrid has approximately 65000 rows; uses LinqDataSource. also I have a external Panel (Panelotherinfo) to Navigate to other forms.

I would like to make that Panel:
 - Invisible if after Filtering RadGrid has no rows.
-  Visible if after Filtering Radgrid has rows.

Below is my Radgrid and panel declaration as well as RadGrid1_ItemEvent.

Thanks for any help

gc_0620

_______________

<telerik:RadGrid ID="RadGrid1" runat="server" AllowFilteringByColumn="True" Width="99.9%"
            Font-Size="11px" AllowPaging="True" AllowSorting="True" CellSpacing="0" GridLines="None"
            Skin="Office2007" PagerStyle-Mode="NextPrevNumericAndAdvanced" OnPreRender="RadGrid1_PreRender"
            OnUpdateCommand="RadGrid1_UpdateCommand" DataSourceID="LinqDataSourceClient"
            OnItemDataBound="RadGrid1_ItemDataBound"
            OnItemCommand="RadGrid1_ItemCommand" onitemcreated="RadGrid1_ItemCreated"
           onitemevent="RadGrid1_ItemEvent">
           ''''
           ''''
  
</telerik:RadGrid>
 
 
<asp:Panel ID="Panelotherinfo" runat="server">
        <h3 style="background-color: #9fba2d; color: White; width: 20%; margin-left: 5px">
            Client other information</h3>
        <br />
        <telerik:RadSiteMap ID="RadSiteMap1" runat="server" Skin="Sitefinity" Width="50%">
            <Nodes>
                <telerik:RadSiteMapNode runat="server" Text="Contact/Race/PrimarryLanguage and Ethnicity/Anchestry"
                    NavigateUrl="~/Default.aspx">
                </telerik:RadSiteMapNode>
                <telerik:RadSiteMapNode runat="server" Text="Demographic/HouseholdComposition/Monthly Income"
                    NavigateUrl="~/NotReadyyet.aspx">
                </telerik:RadSiteMapNode>
                <telerik:RadSiteMapNode runat="server" Text="Encounter">
                </telerik:RadSiteMapNode>
            </Nodes>
            <LevelSettings>
                <telerik:SiteMapLevelSetting Layout="Flow">
                    <ListLayout AlignRows="True" RepeatColumns="3" />
                </telerik:SiteMapLevelSetting>
            </LevelSettings>
        </telerik:RadSiteMap>
    </asp:Panel>
 
 
 
 
  protected void RadGrid1_ItemEvent(object sender, GridItemEventArgs e)
    {
        int rowcount = 0;
 
        if (e.EventInfo is GridInitializePagerItem)
        {
            rowcount = (e.EventInfo as GridInitializePagerItem).PagingManager.DataSourceCount;
        }
 
        if (rowcount == 0)
 
            Panelotherinfo.Visible = false;
        else
            Panelotherinfo.Visible = true;




gc_0620
Top achievements
Rank 1
 answered on 29 Aug 2012
1 answer
202 views
I have a radgrid, which has a nested template view with another grid in the nested view.  I have a column that contains a hyperlink, which i only want displayed if the user is in a particular role.  I have the role part down, but my problem is I cannot access the grid through the vb.net code behind window.

I try me.gridSchedule, but it is not in the list.

How can I hide this column programmatically?

Thanks...Brian
Jayesh Goyani
Top achievements
Rank 2
 answered on 29 Aug 2012
2 answers
37 views
I have copied the source code from the VB version of the demo which demonstrates how to pop up a custom control with database content.

I also duplicated the database tables.

I can get 95% of the way, and then I find an error that makes no sense to me. The attached screen shot indicates a problem with creating an instance of the custom control as "ProductDetailsVB" not defined. This is actually detected in VS2010, but I ran the code to create a better error description.

I have confirmed that the ASCX control works with static placement on another page. In order to run the demo code, I have commented out two lines "Dim Details as ProductDetailsVB..." and "details.ProductID. When I do this I get the appropriate behavior for the popup control, minus actual database content because it is not receiving the ProductID.

I have created the control as "ProductDetailsVB.ascx" to match the source code. But I do note that the online demo references "ProductDetailsCS.ascx" which would not be appropriate for a VB programmer such as myself.

This is my first custom control, and I have no clues as to the error, and am doubly confused over the reference to CS in a VB demo.
Partial Class pop2
    Inherits System.Web.UI.Page
    Protected Sub OnAjaxUpdate(sender As Object, args As ToolTipUpdateEventArgs)
        Me.UpdateToolTip(args.Value, args.UpdatePanel)
    End Sub
    Private Sub UpdateToolTip(elementID As String, panel As UpdatePanel)
        Dim ctrl As Control = Page.LoadControl("ProductDetailsvb.ascx")
        panel.ContentTemplateContainer.Controls.Add(ctrl)
        Dim details As ProductDetailsVB = DirectCast(ctrl, ProductDetailsVB)
        details.ProductID = elementID
    End Sub
    Protected Sub RadGrid1_ItemDataBound(sender As Object, e As GridItemEventArgs)
        If e.Item.ItemType = GridItemType.Item OrElse e.Item.ItemType = GridItemType.AlternatingItem Then
            Dim target As Control = e.Item.FindControl("targetControl")
            If Not [Object].Equals(target, Nothing) Then
                If Not [Object].Equals(Me.RadToolTipManager1, Nothing) Then
                    'Add the button (target) id to the tooltip manager
 
                    Me.RadToolTipManager1.TargetControls.Add(target.ClientID, (TryCast(e.Item, GridDataItem)).GetDataKeyValue("ProductID").ToString(), True)
                End If
            End If
        End If
    End Sub
    Protected Sub RadGrid1_ItemCommand(source As Object, e As GridCommandEventArgs)
        If e.CommandName = "Sort" OrElse e.CommandName = "Page" Then
            RadToolTipManager1.TargetControls.Clear()
        End If
 
    End Sub
 
End Class




Tomica
Top achievements
Rank 2
 answered on 29 Aug 2012
2 answers
64 views
I have a simple RadMenu, with several RadMenuItem's. After the page loads, and sits there for a while, it seems that when I mouse over when of the menu items, it is doing some type of AJAX postback to the server (e.g. it can hang or delay showing the highlighted button). Is this correct ... is it doing AJAX calls for just displaying simple menu items? Is there a way to disable any/all AJAX stuff for the menu ... I just want to use it for simple menus with an onClick javascript handler.
Thanks
Jay O'Brien
Top achievements
Rank 1
 answered on 29 Aug 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?