Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
114 views
Hi,

I need of the RowHeader so that I can place an exclamation or error icon in there to indicate any error or validation messages which may result from my loading of the grid's data source. I come from a windows forms world. Back there I could fulfill my requirement by setting the RowHeader.Visible = True on the GridView and it would show up. 

I notice there is a property: RowIndicatorColumn under MasterTableView. But when I try to set it's visiblility to True, it refuses to change; continues to remain False.

Also, if you can guide on how to display error icons in individual cells as well that would be great. Basically, we're trying to mimic the way error messages are displayed in SQL Server Mgmt. Studio. So if a user entered an invalid text or if the code failed to load a particulr cell's information corectly, then I'd like to display an error icon in there and then set my message in the tooltip property of the icon.

I am new to RadGrid and would appreciate any help that you can extend in this regard.

Thanks.
Rahul

Princy
Top achievements
Rank 2
 answered on 12 Apr 2011
3 answers
135 views
Hi

I am working on a new project using Telerik ASP.NET AJAX controls and one of the requirements is to be able to dispaly columns in a group and be able to collapse/expand the group using a +/- button for example. I already created a group inside a table using GridTemplateColumn type but was wondering if there is a better way to acheave this with collapse/expand ability while not losing the sort and resize ability.

I apprecaite your help in advance
Ron Farko
Tsvetoslav
Telerik team
 answered on 12 Apr 2011
1 answer
226 views

I have a toggle button in a grid and would like to set its initial setting dependant on a Boolean in the database. Is there a way to bind it or set it via code.

 

Thanks

Shinu
Top achievements
Rank 2
 answered on 12 Apr 2011
2 answers
97 views
Hello,

I have a raddockzone with min-height=500. When I add two docks in the this raddockzone then i wish to keep 15px distance between the docks added one after another. Is there any property by which I can manage it ?

Thanks,
Prayag
prayag ganoje
Top achievements
Rank 1
 answered on 11 Apr 2011
4 answers
260 views
telerik Rad Controls version: v.2010.3.1317.20
Visual Studio 2005, using VB

I have a master page with a RadAjaxManger. Our content pages have RadAjaxManagerProxies.

My problem is simple I think, but I have not been able to find a solution after scouring your forum and support documents.
I have a page with a radgrid and 2 user controls. I want the user controls to be Ajaxified so they only update themselves and dont cause full page postbacks. I want the radgrid to be the same way, except when the user selects a row on the radgrid, I want to be able to update the user controls data through a code behind by setting the a property on the UC.

so far I have gotten close by using this javascript on the radgrid's ClientEvents OnRowSelected:
function MyAjaxRequest(sender, args)
        {
            var id = args.getDataKeyValue("AuditEntryID").toString();
            var ajaxObj = $find("<%= RadAjaxManager.GetCurrent(Page).ClientID %>");
            ajaxObj.ajaxRequest("id:" + id);
        }


and on my user controls' code behinds:
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
    Dim manager As RadAjaxManager = RadAjaxManager.GetCurrent(Page)
    AddHandler manager.AjaxRequest, AddressOf manager_AjaxRequest
End Sub
Private Sub manager_AjaxRequest(ByVal sender As Object, ByVal e As AjaxRequestEventArgs)
    Dim result As String = e.Argument.Split(":")(1)
    AuditID = result
End Sub

stepping through the code behind breakpoints, the functionality works (setting AuditID property changes all the data in the user controls). But the user controls are not being updated at all on the page. I read somewhere on this site you could call ajaxRequest on a radajaxpanel, but it seems to do nothing call a panel's ajaxRequest method. Also,the client side documentation for RadAjaxPanel here makes no mention of AjaxRequest.
Fiddling around with ajaxRequestWithTarget (targetting my usercontrols) causes a full page postback and doesnt even call my manager_AjaxRequest(...) subroutines.

Additionally, I have to tie the ajaxpanel's to themselves in the proxy ajaxsettings, otherwise everything does a full page postback for some reason (i thought that radajaxpanel's were supposed to 'Ajaxify' their contents). If I omit the radajaxpanel's and instead tie the controls to themselves in the ajaxsettings, then my grid and usercontrols all have incorrect heights on the webpage which makes them virtually unusable.

I greatly appreciate any advice you can offer.

Here's some of the ASPX (some radgrid cols omitted, as well as datasources):
<asp:Content ID="Content1" ContentPlaceHolderID="cphMain" runat="Server">
<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
    <script type="text/javascript" language="javascript">
        function LR_Collapsed()
        {
         var left = $find("<%=LeftPane.ClientID%>");
         var right = $find("<%=RightPane.ClientID%>");
         var bottom = $find("<%=BottomPane.ClientID%>");
         if (left.get_collapsed() && right.get_collapsed())
         {
            bottom.expand(1);
         }
        }
        function LR_Expanded()
        {
         var bottom = $find("<%=BottomPane.ClientID%>");
         bottom.collapse(1);
        }
         
         
        function MyAjaxRequest(sender, args)
        {
            var id = args.getDataKeyValue("AuditEntryID").toString();
            var ajaxObj = $find("<%= RadAjaxManager.GetCurrent(Page).ClientID %>");
            //ajaxObj.ajaxRequestWithTarget('<%=AccordionExisting1.UniqueID%>',"id:" + id);
            ajaxObj.ajaxRequest("id:" + id);
        }
 
    </script>
    </telerik:RadCodeBlock>
     
    <telerik:RadAjaxManagerProxy ID="AjaxManagerProxy1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadAjaxPanelExisting">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadAjaxPanelExisting" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="RadAjaxPanelProposed">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadAjaxPanelProposed" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="RadAjaxPanel1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManagerProxy>
 <telerik:RadSplitter ID="RadSplitter1" runat="server" Skin="Office2007" Width="100%" Height="100%">
 <telerik:RadPane ID="LeftPane" runat="server" Scrolling="None" Width="25%" OnClientCollapsed="LR_Collapsed" OnClientExpanded="LR_Expanded">
 <telerik:RadAjaxPanel id="RadAjaxPanelExisting" runat="server" height="100%" width="100%">
     <uc2:AccordionExisting ID="AccordionExisting1" runat="server" />
     </telerik:RadAjaxPanel>
 </telerik:RadPane>
 <telerik:RadSplitBar ID="RadSplitBar1" runat="server" CollapseMode="Forward" Width="25px" EnableTheming="True" />
 <telerik:RadPane ID="MiddlePane" runat="server" Scrolling="None">   
  
 <telerik:RadSplitter ID="RadSplitterMid" runat="server" Skin="Office2007" Width="100%" Height="100%" Orientation="Horizontal">
 <telerik:RadPane ID="TopPane" runat="server" Scrolling="None" Height = "0%">
 </telerik:RadPane>
 <telerik:RadSplitBar ID="RadSplitBar3" runat="server" CollapseMode="Forward" Width="25px" />
 <telerik:RadPane ID="BottomPane" runat="server" Scrolling="None">
     <telerik:RadAjaxPanel id="RadAjaxPanel1" runat="server" height="100%" width="100%">
     <telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="SqlDataSourceAudit" AutoGenerateColumns="False" GridLines="None" Width="100%" Height = "100%" AllowPaging="False" PageSize="8">
         <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default">
         </HeaderContextMenu>
         <MasterTableView DataSourceID="SqlDataSourceAudit" CommandItemDisplay="Top" ClientDataKeyNames="AuditEntryID">
             <CommandItemSettings ExportToPdfText="Export to Pdf" />
             <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
             </RowIndicatorColumn>
             <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
             </ExpandCollapseColumn>
             <Columns>
                 <telerik:GridTemplateColumn HeaderText="Building" UniqueName="Building" FilterControlAltText="Filter Building column">  
                  <ItemTemplate
                      <telerik:RadComboBox ID="rcbBuilding" runat="server" AllowCustomText="True" Filter="Contains" Width="100%">
                      </telerik:RadComboBox>
                  </ItemTemplate
                     <HeaderStyle Width="100px" />
                </telerik:GridTemplateColumn>
                
                 <telerik:GridBoundColumn DataField="AuditEntryID" UniqueName="AuditEntryID"  FilterControlAltText="Filter AuditEntryID column"
                     Display="False">
                 </telerik:GridBoundColumn>
                <telerik:GridButtonColumn ConfirmText="Delete this audit entry?" ConfirmDialogType="RadWindow"
                  ConfirmTitle="Delete" ButtonType="ImageButton" CommandName="Delete" Text="Delete"
                  UniqueName="DeleteColumn" ImageUrl="~/images/16/remove_16.png" FilterControlAltText="Filter DeleteColumn column">
                  <ItemStyle HorizontalAlign="Center"/>
                  <HeaderStyle Width="25px" />
                </telerik:GridButtonColumn>
             </Columns>
             <EditFormSettings>
                 <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                 </EditColumn>
             </EditFormSettings>
             <CommandItemTemplate>
                 <table>
                  <tr>
                    <td align="left">
                     <asp:ImageButton ID="btnAdd"
                      Tooltip="Add" CommandName="Insert" Runat="server" ImageUrl = "~/images/16/add_16.png"></asp:ImageButton>
                     <asp:ImageButton ID="btnSave"
                      Tooltip="Save" CommandName="Save" Runat="server" ImageUrl = "~/images/16/floppy_disk_16.png"></asp:ImageButton>
                    </td>
                    <td align="right">
                     <asp:ImageButton ID="btnRefresh" Tooltip="Refresh data"
                      CommandName="Cancel" Runat="server" ImageUrl="~/images/16/refresh_16.png"></asp:ImageButton>
                    </td>
                  </tr>
                 </table>
            </CommandItemTemplate>
         </MasterTableView>
         <FilterMenu EnableImageSprites="False">
         </FilterMenu>
         <ClientSettings>
             <Selecting AllowRowSelect="True" />
             <Resizing AllowColumnResize="True" />
             <Scrolling AllowScroll="True" UseStaticHeaders="True" />
             <ClientEvents OnRowSelected="MyAjaxRequest" />
         </ClientSettings>
         <PagerStyle Mode="Slider" />
     </telerik:RadGrid>
     </telerik:RadAjaxPanel>
 </telerik:RadPane></telerik:RadSplitter>
  
 </telerik:RadPane>
 <telerik:RadSplitBar ID="RadSplitBar2" runat="server" CollapseMode="Backward" Width="25px" />
 <telerik:RadPane ID="RightPane" runat="server" Scrolling="None" Width="25%" OnClientCollapsed="LR_Collapsed" OnClientExpanded="LR_Expanded">
 <telerik:RadAjaxPanel id="RadAjaxPanelProposed" runat="server" height="100%" width="100%">
     <uc3:AccordionProposed ID="AccordionProposed1" runat="server" />
     </telerik:RadAjaxPanel>
 </telerik:RadPane>
</telerik:RadSplitter>
</asp:Content>
Brett
Top achievements
Rank 1
 answered on 11 Apr 2011
2 answers
296 views

Hello,

I have a listview that has shows a startdate enddate starttime endtime. I want to have it only display startdate unless the enddate is not equal to the startdate. For example is the row had a startdate & enddata that were the same I would like for the enddate to be set as visable = false. I have tried the code below but cant seem to get it to work, any help would be great.

Thanks

<ItemTemplate>
           <li class="rlvI"> <asp:Label ID="SubjectLabel" runat="server" Text='<%# Eval("Subject") %>' />
                <asp:Label ID="DescriptionLabel" runat="server" Text='<%# Eval("Description") %>' />
                <asp:Label ID="StartDateLabel" runat="server" Text='<%# Eval("StartDate", "{0:MMMM dd}") %>' />
                <asp:Label ID="EndDateLabel" runat="server" Text='<%# Eval("EndDate", "{0:MMMM dd}") %>' />
                <asp:Label ID="StartTimeLabel" runat="server" Text='<%# Eval("StartTime","{0:t}") %>' />
                <asp:Label ID="EndTimeLabel" runat="server" Text='<%# Eval("EndTime","{0:t}") %>' />
           </li>
       </ItemTemplate>
    protected void RadListView1_ItemDataBound(object sender, Telerik.Web.UI.RadListViewItemEventArgs e)
    {
        if (e.Item is ListViewDataItem)
        {
            ListViewDataItem item = e.Item as ListViewDataItem;
            int lbstart = (int)DataBinder.Eval(item.DataItem, "StartDateLabel");
            int lbend = (int)DataBinder.Eval(item.DataItem, "EndDateLabel");


            if (lbstart == lbend)
            {
                item.Visible = false;
            }
        }

Curt
Top achievements
Rank 1
 answered on 11 Apr 2011
3 answers
97 views

We have Rad editor lite for MOSS 2007 and use the RadHtmlField control in the publishing layouts to render the RichHtml fields. When we place a picture or a link into the field in edit mode using absolute path within sharepoint sites and then publish the page. All urls are converted to relative url. Unfortunately deactivating/reactivating   StripAbsoluteAnchorPaths  and StripAbsoluteImagesPaths  only works in edit mode. Urls  became relative after the page is published.
We want to keep urls the same way we've entered them in edit mode. 

Please advise.
Thank you!!

Bill
Top achievements
Rank 1
 answered on 11 Apr 2011
2 answers
133 views

The icon of a creeping RadComboBox items shown out of square with Internet Explorer 9 in the last release that launched Telerik Q1 2011.

 IE Version: 9.0.8112.16421

 When I fix it?

http://demos.telerik.com/aspnet-ajax/combobox/examples/default/defaultcs.aspx

Attach Image!!!

Giancarlo
Top achievements
Rank 1
 answered on 11 Apr 2011
5 answers
82 views
I dont want to refresh the master page, without refreshing the masterpage, I want only the content page to be refreshed for postback
Sebastian
Telerik team
 answered on 11 Apr 2011
1 answer
137 views
Ive tried setting width and toolswidth and neither are being rendered right in ie8.  Below is our code.  How do you set the width of the radeditor in ie8?

                                    <telerik:RadEditor runat="server" ID="RadEditor_Description" EditModes="Design, Html" tol
                                        Width="780px" Height="250px" ContentAreaMode="Iframe" OnClientLoad="OnClientLoad" >
                                        <ImageManager ViewPaths="~/Images/UploadedFiles" UploadPaths="~/Images/UploadedFiles"
                                            DeletePaths="~/Images/UploadedFiles" />
                                        <Tools>
                                            <telerik:EditorToolGroup>
                                                <telerik:EditorTool Name="Undo" />
                                                <telerik:EditorTool Name="Redo" />
                                                <telerik:EditorTool Name="FindAndReplace" />
                                                <telerik:EditorToolStrip Name="Paste Options">
                                                    <telerik:EditorTool Name="Cut" />
                                                    <telerik:EditorTool Name="Copy" />
                                                    <telerik:EditorTool Name="Paste" />
                                                    <telerik:EditorTool Name="PasteFromWord" />
                                                    <telerik:EditorTool Name="PasteFromWordNoFontsNoSizes" />
                                                    <telerik:EditorTool Name="PastePlainText" />
                                                    <telerik:EditorTool Name="PasteAsHtml" />
                                                </telerik:EditorToolStrip>
                                                <telerik:EditorSeparator />
                                                <telerik:EditorTool Name="LinkManager" />
                                                <telerik:EditorSeparator />
                                                <telerik:EditorTool Name="ImageManager" />
                                                <telerik:EditorSeparator />
                                                <telerik:EditorTool Name="FormatBlock" />
                                                <telerik:EditorTool Name="InsertUnorderedList" />
                                                <telerik:EditorTool Name="InsertOrderedList" />
                                                <telerik:EditorTool Name="InsertHorizontalRule" />
                                                
                                                <telerik:EditorSeparator />
                                                <telerik:EditorTool Name="Bold" />
                                                <telerik:EditorTool Name="Italic" />
                                                <telerik:EditorTool Name="Underline" />
                                                <telerik:EditorSeparator />
                                                <telerik:EditorTool Name="ForeColor" />
                                                <telerik:EditorTool Name="BackColor" />
                                                <telerik:EditorSeparator />
                                                <telerik:EditorTool Name="FontName" />
                                                <telerik:EditorTool Name="RealFontSize" />
                                                <telerik:EditorSeparator />
                                                <telerik:EditorTool Name="JustifyLeft" />
                                                <telerik:EditorTool Name="JustifyRight" />
                                                <telerik:EditorTool Name="JustifyCenter" />
                                                <telerik:EditorTool Name="JustifyFull" />
                                                <telerik:EditorTool Name="JustifyNone" />
                                                <telerik:EditorSeparator />
                                                <telerik:EditorTool Name="InsertRowBelow" />
                                                <telerik:EditorTool Name="InsertRowAbove" />
                                                <telerik:EditorTool Name="InsertColumnRight" />
                                                <telerik:EditorTool Name="InsertColumnLeft" />
                                                <telerik:EditorTool Name="SetCellProperties" />
                                                <telerik:EditorSeparator />
                                                <telerik:EditorTool Name="AjaxSpellCheck" />
                                                <telerik:EditorTool Name="ToggleScreenMode" />
                                            </telerik:EditorToolGroup>
                                        </Tools>
                                        <Content>
                                        </Content>
                                        <CssFiles>
                                            <telerik:EditorCssFile Value="~/CSS/radeditor.css" />
                                        </CssFiles>
                                    </telerik:RadEditor>
Marin Bratanov
Telerik team
 answered on 11 Apr 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?