Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
146 views
I've got a radgrid that has one detail table.  Each row of the master table has a few rad dropdowns, and one of these dropdowns becomes invisible based on selection in another dropdown.  This works fines.  However, if the user selects edit on a row where the dropdown is hidden, and then without canceling the edit, adds a new record or edits a record in the detail table (both of which can cause a postback, depending on user selections) and posts back, the hidden dropdown forgets that it was hidden and appears on the row originally being edited.  I would like to be able to prevent users from adding a new record or editing a record from the detail table/master table if one is already being edited, if that would solve the problem, but I don't know how to achieve this.  If that would not solve the problem, I'm desperate for any other solution.


Jes
Top achievements
Rank 1
 answered on 24 Apr 2009
15 answers
308 views
Hello, I just updated to the May 15th, 2008 release and the Dock margins do not appear in both IE7 and FireFox. Here is my CSS:

.RadDock_customSkin
{
    margin:0 0 15px;
}

Basically, I only want a 15px bottom margin in between Docks.

It was working fine with the older release. What seems to be the problem with this new release? It also seems that in the demo, the embedded Skins do not show the Dock margins.

Thanks,
reverland
Top achievements
Rank 1
 answered on 24 Apr 2009
1 answer
143 views
Hi,
I've 2 level hierarchy. I followed the example as given in the demo "Programmatic Binding". However, I did a few variations in the code.
Firstly, my datasource is not from a SQL table rather it was set to a default  view of a datatable.
Secondly, my datasource is set on PageLoad and not on OnNeedDataSource event.
Thirdly, I do not specify the datakeynames attribute.
In my code behind I set the data sources for the inner detail table on "OnDetailTableDataBind" event.
The problem is I get my first level hierarchy expanded correctly. However, on expanding the second level hierarchy, it does not expand rather it collapses the first level hierarchy too.
I get the "OnDetailTableDataBind" event whenever the first level hierarchy is expanded but I do not get this event fired any time when the second level hierarchy is expanded.
Any reasons why is this behavior ? I assume my logic of setting the datasources are correct since my first level hierarchy is working.

Any help will be appreciated.

Mustansir.
Tsvetoslav
Telerik team
 answered on 24 Apr 2009
1 answer
138 views
Hi

I am new to both Telerik and DynamicData and think both are just awesome.

I am trying to find out how to get the dynamicdata '<%# FieldValueEditString %>' into the radeditor1.content.

I understand I am mixing the aspx page item and the code behind.  I am looking for the code behind equivalent version of

'

 

<%# FieldValueEditString %>'

 


Thanks Paul
Svetlina Anati
Telerik team
 answered on 24 Apr 2009
1 answer
96 views
I am trying to edit any of the fields in my grid and I keep getting the following error get' is not a recognized function name... Can someone help me to understand what it means ? or how I can fix it... I am guessing I have one little thing off but I sure do not see it :(

Below is my code:

   protected void rgPRCA_ItemUpdated(object source, Telerik.Web.UI.GridUpdatedEventArgs e)
    {
        GridEditableItem item = (GridEditableItem)e.Item;
        String Name = item.GetDataKeyValue("Login").ToString();

        if (e.Exception != null)
        {
            e.KeepInEditMode = true;
            e.ExceptionHandled = true;

            SetMessage("Attended " + Name + " cannot be updated. Reason: " + e.Exception.Message);
        }
        else
        {
            SetMessage("Attended " + Name + " is updated!");
        }
    }

here is the grid:
  <telerik:RadGrid ID="rgPRCA" runat="server"
                        DataSourceID="SqlDataSource1"
                        GridLines="None"
                        OnItemUpdated=rgPRCA_ItemUpdated
                        OnDataBound="rgPRCA_DataBound"
                        AllowPaging="True"
                        AllowSorting="True"
                        AutoGenerateEditColumn="false"
                        AllowAutomaticUpdates="True" >
    <ExportSettings>
    <Pdf PaperSize="Letter" FontType="Subset"></Pdf>
    <Excel Format="Html"></Excel>
    <Csv RowDelimiter="NewLine" ColumnDelimiter="Comma"></Csv>
    </ExportSettings>
    <MasterTableView CurrentResetPageIndexAction="SetPageIndexToFirst" Dir="LTR"
            Frame="Border" TableLayout="Auto"
            CommandItemDisplay="None"
            AutoGenerateColumns="False"
            DataKeyNames="Login"
            DataSourceID="SqlDataSource1">
    <RowIndicatorColumn CurrentFilterFunction="NoFilter" FilterListOptions="VaryByDataType" Visible="False">
    <HeaderStyle Width="20px"></HeaderStyle>
    </RowIndicatorColumn>
    <ExpandCollapseColumn CurrentFilterFunction="NoFilter" FilterListOptions="VaryByDataType" Visible="False" Resizable="False">
    <HeaderStyle Width="20px"></HeaderStyle>
    </ExpandCollapseColumn>
    <Columns>
    <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn">
            <ItemStyle CssClass="MyImageButton" />
        </telerik:GridEditCommandColumn>
        <telerik:GridBoundColumn CurrentFilterFunction="NoFilter" DataField="Login"
            FilterListOptions="VaryByDataType" ForceExtractValue="None" HeaderText="Login"
            SortExpression="Login" UniqueName="Login" Visible="false">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn CurrentFilterFunction="NoFilter" DataField="Attendee"
            FilterListOptions="VaryByDataType" ForceExtractValue="None"
            HeaderText="Attendee" SortExpression="Attendee" UniqueName="Attendee">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn CurrentFilterFunction="NoFilter" DataField="Location"
            FilterListOptions="VaryByDataType" ForceExtractValue="None"
            HeaderText="Location" SortExpression="Location" UniqueName="Location">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn CurrentFilterFunction="NoFilter" DataField="Role"
            FilterListOptions="VaryByDataType" ForceExtractValue="None" HeaderText="Role"
            SortExpression="Role" UniqueName="Role">
        </telerik:GridBoundColumn>
        
        <telerik:GridDateTimeColumn UniqueName="CallDate" PickerType="DatePicker" HeaderText="CallDate"
            DataField="CallDate">
            <ItemStyle Width="120px" />
        </telerik:GridDateTimeColumn>
      
        <telerik:GridBoundColumn CurrentFilterFunction="NoFilter"
            DataField="PassPhrase" FilterListOptions="VaryByDataType"
            ForceExtractValue="None" HeaderText="PassPhrase" SortExpression="PassPhrase"
            UniqueName="PassPhrase">
        </telerik:GridBoundColumn>      
     
        
         <%-- <telerik:GridDropDownColumn DataSourceID="sqlCallAttended" ListTextField="DisplayText" ListValueField="ValueText"
             SortExpression="DisplayText" HeaderText="DisplayText" DropDownControlType="RadComboBox"
            DataField="DisplayText">
        </telerik:GridDropDownColumn>--%>
        <telerik:GridBoundColumn CurrentFilterFunction="NoFilter"
            DataField="CallAttended" FilterListOptions="VaryByDataType"
            ForceExtractValue="None" HeaderText="CallAttended"
            SortExpression="CallAttended" UniqueName="CallAttended">           
            <ItemStyle Width="350px" />
        </telerik:GridBoundColumn>
    </Columns>
<EditFormSettings ColumnNumber="2" CaptionDataField="Attendee" CaptionFormatString="Edit properties of {0}">
                    <FormTableItemStyle Wrap="False"></FormTableItemStyle>
                    <FormCaptionStyle CssClass="EditFormHeader"></FormCaptionStyle>
                    <FormMainTableStyle GridLines="None" CellSpacing="0" CellPadding="3" BackColor="White"
                        Width="100%" />
                    <FormTableStyle CellSpacing="0" CellPadding="2" Height="110px" BackColor="White" />
                    <FormTableAlternatingItemStyle Wrap="False"></FormTableAlternatingItemStyle>
                    <EditColumn ButtonType="ImageButton" InsertText="Insert Order" UpdateText="Update record"
                        UniqueName="EditCommandColumn1" CancelText="Cancel edit">
                    </EditColumn>
     <FormTableButtonRowStyle HorizontalAlign="Right" CssClass="EditFormButtonRow"></FormTableButtonRowStyle>
 </EditFormSettings>

</MasterTableView>
    </telerik:RadGrid>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server"
        ConnectionString="<%$ ConnectionStrings:EDCCConnectString %>"
        SelectCommand="PRCA_GetDetails" SelectCommandType="StoredProcedure"
                UpdateCommand="update TD_PRCA_Details set CallDate=@CallDate, PassPhrase = @PassPhrase,
                                CallAttended=@CallAttended, LastChangeDate = get()
                                WHERE Login =@Login" >
        <SelectParameters>
            <asp:SessionParameter Name="StartDate" SessionField="StartDate"
                Type="DateTime" />
            <asp:SessionParameter Name="EndDate" SessionField="EndDate" Type="DateTime" />
            <asp:SessionParameter Name="Location" SessionField="Location" Type="String" />
            <asp:SessionParameter Name="Attendee" SessionField="Attendee" Type="String" />
            <asp:SessionParameter Name="CallAttended" SessionField="CallAttended"
                Type="String" />
        </SelectParameters>
        <UpdateParameters>
                <asp:Parameter Name="CallDate" Type="DateTime" />
                <asp:Parameter Name="PassPhrase" Type="String" />
                 <asp:Parameter Name="CallAttended" Type="String" />
</UpdateParameters>             
    </asp:SqlDataSource>
    
    <br />
    <br />
   <asp:SqlDataSource ID="sqlCallAttended" runat="server"
        ConnectionString="<%$ ConnectionStrings:EDCCConnectString %>"
        SelectCommand="REF_Get_ListType" SelectCommandType="StoredProcedure">
        <SelectParameters>
            <asp:Parameter DefaultValue="Process Release Call" Name="ListType" Type="String" />
            <asp:Parameter DefaultValue="EDCC" Name="AppName" Type="String" />
        </SelectParameters>
    </asp:SqlDataSource>

I also have a RadAjaxManager :
 <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="rgPRCA">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="rgPRCA" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Height="75px"
        Width="75px" Transparency="25">
        <img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>'
            style="border: 0;" />
    </telerik:RadAjaxLoadingPanel>

Thank you so much for the help
Gina







Gina
Top achievements
Rank 1
 answered on 24 Apr 2009
1 answer
71 views
Hi,

I am populating a Treeview from a xmlstring by the method LoadXml.
It is giving me no problem in loading.
Now I want to have tooltip for each of the node of the treeview. I have the required data in the xml string as attributes.
I'm finding no way to get the tooltip shown.

Can you please tell me how to do that?
Thans in advance.

Regards,
Avik
Veselin Vasilev
Telerik team
 answered on 24 Apr 2009
2 answers
55 views
Can I set an alt tag for a toolbar image?  We plug in a disabled image when a menu feature is not available for permissions reasons, and I'd like to put an alt="Insufficient Permissions" tag on it but can't see how to accomplish that.

Thx
Kevin
Top achievements
Rank 2
 answered on 24 Apr 2009
1 answer
131 views
Is there a way to turn on p tags for the editors so that when i hit enter twce it gives me p's rather than <br>?
Also if I apply a h2 to text I can't get rid of it without going into the html view.  If i highlight and select normal or use the css strip formatting it does nothing.
Rumen
Telerik team
 answered on 24 Apr 2009
3 answers
237 views
Hello,

We have a shopping card grid with client side check boxes for row selection. Is there a way to reference the FooterText property of the Price column to show the total purchase amount?

I have the code working to sum the price of the selected rows. I just need to be able to dynamically update the total in the footer on the client side. I have looked at the numeric text box example but that does not really fit this situation.

Thanks,
Brian
Naresh
Top achievements
Rank 1
 answered on 24 Apr 2009
2 answers
210 views

When I want to remove an item from the grid, the ItemCommand Event is not triggered. Can someone help me with this?

My ascx page:

<telerik:RadGrid ID="gridPromo" runat="server" AutoGenerateColumns="False" EnableAJAX="true" 
    GridLines="None" OnItemCommand="gridPromo_ItemCommand" 
    EnableEmbeddedSkins="False" Skin="BDB" AllowAutomaticDeletes="false">  
<HeaderContextMenu EnableTheming="True">  
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
</HeaderContextMenu> 
 
<MasterTableView> 
<RowIndicatorColumn> 
<HeaderStyle Width="20px"></HeaderStyle> 
</RowIndicatorColumn> 
 
<ExpandCollapseColumn> 
<HeaderStyle Width="20px"></HeaderStyle> 
</ExpandCollapseColumn> 
    <Columns> 
        <telerik:GridTemplateColumn HeaderText="Afbeelding" UniqueName="Afbeelding" DataField="Folder">  
            <ItemTemplate> 
                <asp:Image ID="afbPromo" runat="server" /> 
            </ItemTemplate> 
        </telerik:GridTemplateColumn> 
        <telerik:GridBoundColumn DataField="Alt" HeaderText="Alt" UniqueName="Alt">  
        </telerik:GridBoundColumn> 
        <telerik:GridButtonColumn ConfirmText="Wilt u deze afbeelding verwijderen?" ButtonType="ImageButton" ImageUrl="~/images/action_delete.gif" CommandName="Delete" Text="Delete" UniqueName="DeleteColumn" >              
        </telerik:GridButtonColumn> 
    </Columns> 
    <EditFormSettings> 
        <EditColumn CancelImageUrl="Cancel.gif" EditImageUrl="Edit.gif"   
            InsertImageUrl="Update.gif" UpdateImageUrl="Update.gif">  
        </EditColumn> 
    </EditFormSettings> 
</MasterTableView> 
 
<FilterMenu EnableTheming="True">  
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
</FilterMenu> 
</telerik:RadGrid> 
<br /> 
<span style="float:right">  
    <asp:ImageButton ID="imgbuRefresh" ImageUrl="~/images/action_refresh.gif" runat="server" />&nbsp;  
    <asp:ImageButton ID="imgBuAdd" ImageUrl="~/Portals/_default/Skins/BDB-Blue/images/add.gif" runat="server" />       
</span> 
<telerik:RadWindowManager ID="windowMgrPromo" runat="server" Animation="Resize"   
    DestroyOnClose="True">  
<Windows> 
<telerik:RadWindow ID="windowPromo" runat="server" Skin="Forest" NavigateUrl="PromoUpload.aspx" VisibleStatusbar="False" VisibleTitlebar="True" Height="300" Width="700">  
</telerik:RadWindow> 
<telerik:RadWindow ID="windowMessage" runat="server"></telerik:RadWindow> 
</Windows> 
</telerik:RadWindowManager> 
<asp:Label ID="lblTest" runat="server"></asp:Label> 

And mij code-behind page:
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load  
            Dim _controller As New BDB_Promo_SettingsController  
 
            colBDB_Promo_Settings = _controller.GetAllBDB_Promo_Settings()  
            gridPromo.DataSource = colBDB_Promo_Settings  
            gridPromo.DataBind()  
 
            windowPromo.VisibleOnPageLoad = True 
            windowPromo.Visible = False 
        End Sub 
        Protected Sub imgBuAdd_Click(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles imgBuAdd.Click              
            windowPromo.Visible = True 
        End Sub 
        Protected Sub imgbuRefresh_Click(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles imgbuRefresh.Click  
 
        End Sub 
        Protected Sub gridPromo_ItemCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles gridPromo.ItemCommand           
            lblTest.Text = "dddddddffff" 
            lblTest.Visible = True 
        End Sub 
        Protected Sub gridPromo_PreRender(ByVal sender As Object, ByVal e As System.EventArgs) Handles gridPromo.PreRender  
            Dim gridRows As GridItemCollection = gridPromo.Items  
            Dim obj As BDB.Modules.BDB_Promo_Settings.BDB_Promo_SettingsInfo  
            Dim afbeelding As System.Web.UI.WebControls.Image  
 
            For Each data As GridDataItem In gridRows  
                obj = data.DataItem  
                afbeelding = CType(data.FindControl("afbPromo"), System.Web.UI.WebControls.Image)  
                afbeelding.ImageUrl = obj.Lokatie  
                afbeelding.ToolTip = obj.Alt  
                afbeelding.Height = 100  
                afbeelding.Width = 100  
            Next 
        End Sub
#End Region 
Jen
Top achievements
Rank 1
 answered on 24 Apr 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?