Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
70 views
Hi, my problem is that when I upload a htm I need to also upload the folder of images, in order to upload it I use donetzip.¿My question is , is possible to load zip internally without the need for the user do it manually?
Daniel
Top achievements
Rank 1
 answered on 07 Jun 2012
1 answer
64 views
When I have links in my panel items, the link is moved to the next link and any text after it is removed.  Any ideas
Princy
Top achievements
Rank 2
 answered on 07 Jun 2012
1 answer
122 views
<telerik:RadGrid ID="mygrid" runat="server" AllowFilteringByColumn="True"
                             Width="950px" AllowPaging="True" AllowSorting="True" CellSpacing="0" GridLines="None"
                             OnNeedDataSource="mygrid_NeedDataSource" AutoGenerateColumns="False"
                             EnableLinqExpressions="False" CssClass="bodytext" OnItemCreated="mygrid_ItemCreated"
                             OnItemDataBound="mygridI_temDataBound" OnPdfExporting="mygrid_PdfExporting"
                             OnHTMLExporting="mygrid_HTMLExporting" OnGridExporting="mygrid_GridExporting"
                             OnInit="mygrid_Init" OnItemCommand="mygrid_ItemCommand">
                             <GroupingSettings CaseSensitive="false" />
                             <MasterTableView PageSize="10"  TableLayout="Auto"  EnableHeaderContextMenu="true" EnableHeaderContextFilterMenu="true">

when I set EnableHeaderContextMenu="true" for radgrd , I use  UseStaticHeaders="True" and try to hide some of the column using ContextFilterMenu,  I got extra line behind the hiding column -- see attached image, I think this is caused by multiline header how can I get rid of it or make this look better? 

how can I make the visible column expand to full grid with instead of leaving empty space for the hidden column?

I tried to remove UseStaticHeaders="True", but still having empty space for hidden column.
 
Not sure what I missed, I feel I did the same as the demo. But just can not get rid of the ending white space.
http://demos.telerik.com/aspnet-ajax/grid/examples/generalfeatures/headercontextfiltermenu/defaultcs.aspx

 

 

 

 


Please help!

 

 Thanks! 

 

 

 

Princy
Top achievements
Rank 2
 answered on 07 Jun 2012
6 answers
112 views

So I have a simple RadWindow setup like so:

<telerik:RadWindow ID="rwCreateChecklist" runat="server" Width="300px" Height="150px"
        Behaviors="Move,Close" Title="Create Checklist" VisibleStatusbar="false" Modal="true">
        <ContentTemplate>
            <div class="wndCreateChecklist">
                <div class="row">
                    <label>
                        Reference Number:</label>
                    <telerik:RadTextBox ID="txtReferenceNumber" runat="server" Width="80px" MaxLength="50">
                    </telerik:RadTextBox>
                    <asp:RequiredFieldValidator ID="reqReferenceNumber" runat="server" Text="Required"
                        ValidationGroup="CreateChecklist" ControlToValidate="txtReferenceNumber" SkinID="noFloat"></asp:RequiredFieldValidator>
                </div>
                <div class="button-row">
                    <telerik:RadButton ID="btnCreateChecklist" runat="server" Text="Create Checklist"
                        ValidationGroup="CreateChecklist">
                    </telerik:RadButton>
                    <telerik:RadButton ID="btnCancel" runat="server" Text="Cancel">
                    </telerik:RadButton>
                </div>
            </div>
        </ContentTemplate>
    </telerik:RadWindow>

The issue I'm finding is that the RequiredFieldValidator shows up behind the RadTextBox when viewed in IE8 Compatibility Mode (as shown in attached image). I am using the latest version, so EnableSingleInputRendering is set to true by default.

I've found that the RadTextBox is setting the width of the span element, that the input control is placed in, while applying padding to the input element itself. Why does the control set the width of the span and the input element? When you have this setting turned off, the only element that has it's width set is the input element itself, not the span element.

Is there some reason why both elements have their width property set?
Vasil
Telerik team
 answered on 07 Jun 2012
1 answer
76 views
I have a RadGrid setup and everything on it works great except for my Numeric Pager.  I placed my pager in my PagerTemplate like so:

<asp:Panel runat="server" ID="NumericPagerPlaceHolder"  />

And then in my code behind, here is how I set it up:

protected void HandleOnItemDataBound(object sender, GridItemEventArgs e)
        {
            if (e.Item is GridPagerItem)
            {
                var gridPager = e.Item as GridPagerItem;
                var numericPagerControl = gridPager.GetNumericPager();
 
                var placeHolder = gridPager.FindControl("NumericPagerPlaceHolder");
                placeHolder.Controls.Add(numericPagerControl);
            }
        }

The numeric pager is getting setup properly but when I click on a page number, it does a very fast postback and then the numeric pager disappears completely.  I feel like I am missing a step where I should be binding and event.  All the Google and forum searches I have done haven't turned anything up.  The only thing I found was including this JavaScript:

<telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">
 
        <script type="text/javascript">
            var tableView = null;
            function pageLoad(sender, args) {
                tableView = $find("<%= TransactionsGrid.ClientID %>").get_masterTableView();
            }
 
            function changePage(argument) {
                tableView.page(argument);
            }
        </script>
 
    </telerik:RadScriptBlock>

But still nothing.  I've even tried setting up an event handler for OnPageIndexChanged but that didn't work either.  Any help would be appreciated.
Shinu
Top achievements
Rank 2
 answered on 07 Jun 2012
1 answer
84 views
When trying to clear the radgrid, if the edit command is open when clearing it will clear and disappear. When the Add new record control is open, it clears but does not disappear. Is there any reason for why that is, and if so is there anyway to change it so it disappears as well?
Shinu
Top achievements
Rank 2
 answered on 07 Jun 2012
1 answer
180 views
Hi,
in the grid,
1) is there a way to show the sort icon on the left side of the column header?
2) can the sort icon be always shown (if sorted) even if the column width is set and if the header text exceeding the column width?

Jayesh Goyani
Top achievements
Rank 2
 answered on 07 Jun 2012
1 answer
87 views
I know this should be simple and I have done it before, but for some reason I can't see why this isn't working.  I have a very small grid with 3 columns and all I want to do is place one of two columns into edit mode in the PreRender method.  If a hidden column in the row is a certain value, I want to place it's corresponding visible column into edit mode and color the first column red.  In debug the values are being compared properly and it does hit the line of code that sets the column into edit mode, however it sets both columns into edit mode for every row instead of the just the column that I want it to (even though it doesn't hit the code to set the other column into edit mode it still somehow is set to edit).  If both hidden columns are invalid I want to set both visible columns into edit mode.  As for coloring the text of the first column red it simply has no effect even thoguh the code is hit.

Can somebody please help me with this it seems like it should be very simple.  Thanks!
Private Sub rgC_PreRender(sender As Object, e As System.EventArgs) Handles rgC.PreRender
 
 
       If Not IsPostBack Then
           For Each item As GridItem In rgC.MasterTableView.Items
 
               If (TypeOf item Is GridDataItem) Then
                   Dim lblEmpId As Label = CType(item.FindControl("lblEmpId"), Label)
                   Dim lblEmpNo As Label = CType(item.FindControl("lblEmpNo"), Label) 'Contains the null value if invalid
 
                   Dim lblJobCode As Label = CType(item.FindControl("lblJobCode"), Label)
                   Dim lblJobNum As Label = CType(item.FindControl("lblJobNum"), Label) 'Contains the null value if invalid
 
                   Dim lblCardId As Label = CType(item.FindControl("lblCardId"), Label)
 
                   If (lblEmpNo.Text = "") Then
                       lblCardId.ForeColor = Drawing.Color.Red
                       item.Edit = True
                   End If
 
                   If (lblJobCode.Text = "") Then
                       lblCardId.ForeColor = Drawing.Color.Red
                       item.Edit = True
                   End If
               End If
 
              
           Next
           rgC.Rebind()
       End If
 
   End Sub

Shinu
Top achievements
Rank 2
 answered on 07 Jun 2012
1 answer
295 views

I’m using a RadComboBox where a user can select multiple items and save them against a news article.

When the user visits back I need to be able to pre-populate all of the items which were previously saved against the article.

I’m trying to work out how to set multiple items as selected, from what I can see you can only ever set one.

Something like this:

RadComboBoxItem _item1 = new RadComboBoxItem();
_item1.Value = "1";
_item1.Text = "One";
_item1.Selected = true;
RadComboBoxItem _item2 = new RadComboBoxItem();
_item2.Value = "2";
_item2.Text = "Two";
_item2.Selected = true;
RadComboBox _radComboBox = new RadComboBox();
_radComboBox.Items.Add(_item1);
_radComboBox.Items.Add(_item2);

Thank you!!
Princy
Top achievements
Rank 2
 answered on 07 Jun 2012
1 answer
119 views
Hi All,

I saw this post "Google like Filtering" using RadGrid in the below link.

http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandcombo/defaultcs.aspx?product=grid 

It's something like filtering with a text box below the Grid's header..

I need to have 5 columns in my grid..For the first 3 columns alone i should have this filtering option. For the 4th and 5th column i should have a button in place of Filter box(TextBox).. On that button click i need to accomplish certain tasks too..

Any idea on how to do this will help me.



Shinu
Top achievements
Rank 2
 answered on 07 Jun 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?