Telerik Forums
UI for ASP.NET AJAX Forum
8 answers
354 views
Hi

I'm trying to fix some bug with my radgrid. I have some GridBoundColumn followed by one GridTemplateColumn with a regular Button in it. The button triggers a JavaScript function which shows a RadWindow as a popup.

My problem is when I click on the button, the RadWindow popup but also a big blank space appear in the RadGrid at top, above the header. The size of this space is about the same as the actual size of the rows shown under it.

This is most likely related to the fact that I want the grid to show an vertical scroll bar.

Anyway here is some code:

<telerik:RadGrid ID="RG_disponible" AlternatingItemStyle-HorizontalAlign="Center" 
                                        Width="550px" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center" 
                                        runat="server" AllowSorting="true" HorizontalAlign="Center" AutoGenerateColumns="False" 
                                        OnItemDataBound="RG_disponible_ItemDataBound" OnSortCommand="RG_disponible_SortCommand" 
                                        OnItemCommand="RG_disponible_ItemCommand" OnDataBound="RG_disponible_DataBound"
                                        <ClientSettings> 
                                            <Resizing AllowColumnResize="false" /> 
                                            <Scrolling AllowScroll="true" UseStaticHeaders="false" /> 
                                        </ClientSettings> 
                                        <MasterTableView CommandItemDisplay="Top" TableLayout="Fixed" Width="532px" NoMasterRecordsText="Aucune photo ne correspond Ã  la recherche"
                                            <CommandItemTemplate> 
                                                <div style="text-align: right;"
                                                    <asp:LinkButton ID="btnSelectAll" runat="server" CommandName="SelectAll" Text="Désélectionner tous"></asp:LinkButton> 
                                                </div> 
                                            </CommandItemTemplate> 
                                            <Columns> 
                                                <telerik:GridBoundColumn HeaderText="Numéro du rouleau" UniqueName="Numero_rouleau" 
                                                    DataField="RouleauNumero"
                                                </telerik:GridBoundColumn> 
                                                <telerik:GridBoundColumn HeaderText="Numéro de la photo" UniqueName="Numero" DataField="PhotoNumero"
                                                </telerik:GridBoundColumn> 
                                                <telerik:GridTemplateColumn UniqueName="ButtonColumn" HeaderText=""
                                                    <ItemTemplate> 
                                                        <asp:Button ID="I" runat="server" Text="Détails"/> 
                                                    </ItemTemplate> 
                                                </telerik:GridTemplateColumn> 
                                                <telerik:GridBoundColumn HeaderText="Numéro de la photo" UniqueName="Numero" Visible="false" 
                                                    DataField="PhotoNumero"
                                                </telerik:GridBoundColumn> 
                                                <telerik:GridBoundColumn HeaderText="id photo" Visible="false" UniqueName="Id" DataField="Id"
                                                </telerik:GridBoundColumn> 
                                                <telerik:GridTemplateColumn UniqueName="TemplateColumn" HeaderText="" SortExpression="IsLink"
                                                    <ItemTemplate> 
                                                        <asp:CheckBox ID="choix" Enabled="false" runat="server" /> 
                                                    </ItemTemplate> 
                                                </telerik:GridTemplateColumn> 
                                                <telerik:GridBoundColumn HeaderText="" UniqueName="Id" DataField="EmprunteurId" Visible="false"
                                                </telerik:GridBoundColumn> 
                                                <telerik:GridBoundColumn HeaderText="" UniqueName="CommandeId" DataField="CommandeId" 
                                                    Visible="false"
                                                </telerik:GridBoundColumn> 
                                            </Columns> 
                                        </MasterTableView> 
                                    </telerik:RadGrid> 
                                </ContentTemplate> 
                            </asp:UpdatePanel> 

As you can see, the reason why I kinda really need scrolling to work is because I can't use paging because of the CheckBox column. I don't see how i could get to save the rows which were checked after the page is changed. So when a button under the radgrid is clicked, I can access the RadGrid and retrieve the rows that are checked. If someone can tell me a way to do this, then I might as well drop the scrolling for paging and avoid the blank space issue.

This is what i have on the button with ID="I" which cause the problem. I do this in the itemdatabound event:

Button btn = dataItem["ButtonColumn"].FindControl("I") as Button;

btn.Attributes["onclick"] = string.Format("return ShowEditForm('{0}?{1}={2}','rwEmprunteurView');",
                "emprunteur_view.aspx", "commande_id", dataItem.Cells[11].Text);

btn.Attributes["onclick"] = string.Format("return ShowEditForm('{0}?{1}={2}','rwEmprunteurView');",
                "emprunteur_view.aspx", "commande_id", dataItem.Cells[11].Text);


With ShowEditForm being:
        function ShowEditForm(url, nomFenetre) {
            window.radopen(url, nomFenetre);
            return false;
        }

This is on IE 6. I tried in Firefox, and I dont get the white space.. But I need it to work on IE 6.

If you need more of my code, just ask.

Thanks










Anthony
Top achievements
Rank 1
 answered on 30 Mar 2012
4 answers
284 views
Does telerik have a textbox control that I can tie to a database table that will do the autocomplete based on what the users starts typing?

Thank you
jerry
Top achievements
Rank 1
 answered on 30 Mar 2012
6 answers
319 views
Hi,
i use rad ajax panel in my page. in that page i got four buttons.
when clicking that buttons one button event is triggered. another 3 dosent work.
how to solve it.
SamJ
Top achievements
Rank 1
 answered on 30 Mar 2012
1 answer
186 views
IsPostBack always true in user control.

How to fix this?

I need to add some code to load the data.

Need help ASAP?
Eva
Top achievements
Rank 1
 answered on 30 Mar 2012
1 answer
131 views
Hi,

I have been incorporating a radgrid into an ascx control which is designed to be used in DNN. The issue comes when I create the same grid in an aspx page while setting the PopUpSettings-Modal="true" it works perfectly that the edit popu comes up prperly while freezing the rest of the screen.

However when i use the same grid in an ascx page when the edit popup comes it freezes the whole screen including the popup as well?

Can any body help me with this?

Regards,
Savi
Pavlina
Telerik team
 answered on 30 Mar 2012
1 answer
65 views
The progress bar i cannot get to work the way i want it too. So other than that is there a way i can let a user know that the file is uploading.  Like is there a way to make the refresh spinny thing spin as long as the file is uploading?
Dobromir
Telerik team
 answered on 30 Mar 2012
1 answer
154 views
Hello

System: ASP.NET AJAX v2012.1.215.40
Visual Studio 2010

We use DatasourceID property and the ShowInsertItem() function of RadListView to display at the same time the data by  <ItemTemplate> and the insertion by <InsertItemTemplate>. Everything works fine, except when the data are empty. In this case, the content of <EmptyDataTemplate> isn't displayed if ShowInsertItem() is used.
If the <ItemTemplate> can be displayed at the same time that <InsertItemTemplate>, the display of
<EmptyDataTemplate> should follow the same logic.

Is there an option to force the display of <EmptyDataTemplate> while the <InsertItemTemplate> is showed?

Best regards,
Alain
Tsvetina
Telerik team
 answered on 30 Mar 2012
0 answers
108 views
I am trying to find a solution when user is trying to search for a item and cannot be found. it will return to first item. 
When the first item is selected, the cursor is at the end of selected text. Is there any way that when the user start search for next item, it will just clear the selected text. maybe there is a way to highlight the selected text so it will get clear when user start typing?

thanks
function RadComboBlur(source, args) {
var oval = source.get_text();
if (oval != source.get_selectedItem().get_text()) {
var digit = source.get_items().getItem(0).get_value().length;
var val = $.strPad(oval, digit);
var item = source.findItemByValue(val);
if (item) {
item.select();
} else {
if (oval == "") {
alert("Value cannot be empty. Default value is selected instead.");
}else{
alert("Input value does not exists. Default value is selected instead."); 
}
           var item = source.get_items().getItem(0);
           item.select();            
}                        
}
}
charles
Top achievements
Rank 1
 asked on 30 Mar 2012
1 answer
95 views
Hi,
I have a RadSplitter Control in an aspx page wich contains two RadPanes.The RadPanes Content is loaded from an external source (still pages from my project) thanks to the contentURL property. The rightpane content is loaded dynamically from an event of the leftpane ( a searchbutton click and a node click from a RadTreeView).

In this scenario i would like the content inside the RightPane to be loaded with Ajax.

I read in this forum that in this case, the only way to make it work would be to make an update of the whole RadSplitter.
So i've tried to find a way to programmatically add in the page_load event handler an ajaxsetting to the RadAjaxManager with the RadAjaxPanel where the treeview is embedded as initiator to update the RadSplitter which is in the parent page.

The problem i have is that  i can't get the reference of the splitter control from that parent page server side, i've already figured out how to get the reference client side with javascript but the AjaxSettings.AddAjaxSetting server method only accept the server object references as parameters.

Is there a way to achieve this or am i going the wrong way, will this work ?

Thank you
Dobromir
Telerik team
 answered on 30 Mar 2012
4 answers
150 views

                Hi! We’re redesigning our web-site and replacing all our current menus and grids with your RadMenu and RadGrid.  I’ve been running into a problem with the appearance of the menu, though. Even though the menu item text looks like it fits within the menu’s width, there’s usually what looks like some kind of padding at the right end of the longest menu item(s). We set the menu item color depending on the item type, but I noticed that the space is even there if I leave the skin with the default transparent settings and just hover over it. I tried setting the width settings, and, if I make them large enough, I can get it to not show that space, but, the problem with that is, we need to add the items dynamically so we don’t know how wide the menu needs to be, and we don’t want a whole lot of extra space with nothing in it.

                We have the menu in a user control that we’ll add to each page. We currently have the RadMenu inside a RadSlidingPane inside a RadSlidingZone, and we add that user control to a RadPane within a RadSplitter in the pages they’re added to, but I tried doing it without the splitters, zones, and panes, and it still didn’t do it right.

I was wondering if the problem had to do with the items being adding from the code-behind page instead of from the ASPX page, but I found it did the same thing when I hard-coded them in.  I’ve attached a sample image of what the menu item widths look like. If you have any suggestions on what could be changed to get the items to look right, they would be greatly appreciated! Thank you so much!
                                Holly

Holly
Top achievements
Rank 1
 answered on 30 Mar 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?