Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
94 views
I'm comparing Grid controls and need to know if the Telerik Grid control will permit me to modify the Virtual Scrolling sample:
http://demos.telerik.com/aspnet-ajax/grid/examples/client/virtualscrollpaging/defaultcs.aspx

and perform the following actions using Javascript:
1) Scroll to a particular row
2) Highlight that row
3) Detect if a user changed the selection
4) Respond (via Javascript) if the selection was changed

Let me know if this is possible using AJAX or through web services.  I'm looking for the most perfomant option.
Pavlina
Telerik team
 answered on 28 Oct 2010
3 answers
250 views
Hello,

I am building a page similar to the following:
http://demos.telerik.com/aspnet-ajax/listbox/examples/applicationscenarios/insertitem/defaultcs.aspx

One of the requirements is that as part of the validation, I have to check that at least one item is present inside the RadListBox.  I tried using the RequiredFieldValidator but that enforces the validation that the item in the listbox should be selected.

In my case, I just want to check that the listbox has at least one item.  (I don't want my users to select one item for this validation to succeed).  How can I accomplish this that the validation succeeds if the listbox has one item which may or may not be selected?

Thanks,
Pratik
Genady Sergeev
Telerik team
 answered on 28 Oct 2010
1 answer
85 views
I am working with the editor control and I am providing a few buttons that will allow the user to insert some pre-defined HTML content. This is easy enough to do using the pasteHtml method but it isn't pasting all of the HTML text I'm passing into it. There are some comments I've added to these snippets so that I can tell if the code was auto-inserted in case there are issues in the future and troubleshooting needs to be done on the pages the editor is generating. I have noticed that if I am in HTML view that the comment is pasted as expected but not when I am in Design view. The people who use this tool know little/nothing about editing raw HTML so I cannot count on them to use the HTML view to insert comments (in fact we are considering disabling editing in HTML view per the KB article).

For example, we have lists that contains a fairly standard sets of bullet points that the users would like to just click a button to insert into a document. I would like to insert something like this:

<!-- Below UL Auto Inserted -->
<UL>
<LI>Item 1</LI>
<LI>Item 2</LI>
<LI>Item 3</LI>
</UL>
<!-- Above UL Auto Inserted -->

It will get pasted into the editor widow with the following HTML
<p>&nbsp;</p>
<ul>
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ul>
<p style="text-align: left;" class="style20"><!-- Above UL Auto Inserted --></p>

As you can see, the second comment is included in the pasted HTML but the opening comment is not. Additionally, the editor has inserted a <p> around the second comment and has inherited the styles of the paragraph where the cursor was located when the paste opperation was completed. Is there a workaround for this so that the opening comment will be pasted into the window and a way to prevent the paragraph from being placed around the second one?
Dobromir
Telerik team
 answered on 28 Oct 2010
2 answers
244 views
Need some help here. The radgrid skin images for the button controls are not showing when I build the site in VS -- the filter button and pager buttons. They show in the designer, split screen and design mode. I've checked everything I know to check. All the background images for the skin show, though. Not sure what to do next, any suggestions? I'm using

2010.1.519.35

 Thanks. Celeste
Celeste
Top achievements
Rank 1
 answered on 28 Oct 2010
1 answer
118 views
I'm using reportviewer in my asp.net application and everything is working fine
except when the report initially renders it take 3 about seconds ( which is fine )
but it shows a blank report, not the loading image. If you look at the browser
it shows that it's loading however, I'm fearful my users will not notice this and
re-click the generate report button. I'm also using radajaxmanager to try to force
the loading panel to display but to no avail. So my question is: Is there a way to
capture the render complete ( in asp.net ) so I may show a message stating the
report is rendering until it completes then I can hide the message.

Thanks
Peter
Telerik team
 answered on 28 Oct 2010
1 answer
137 views
If I put a RadSplitter inside a DIV that has margins set on it, the RadSplitter behaves as expected. However, if the RadSplitter is nested inside another RadSplitter (and still inside a DIV with margins set on it) then the width gets messed up.

Here is an example:

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Sample.aspx.cs" Inherits="Sample" %>
  
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server" />
  
    <telerik:RadSplitter ID="MainSplitter" runat="server" Orientation="Horizontal" Height="100%" Width="100%">
        <telerik:RadPane ID="ContentPane" runat="server">
            <div style="margin: 0 30px 0 30px;">
                <telerik:RadSplitter ID="RadSplitter1" runat="server" Orientation="Horizontal" Height="100%" Width="100%">
                    <telerik:RadPane ID="TopPane" runat="server" Height="50%">
                        Top Pane
                    </telerik:RadPane>
                    <telerik:RadSplitBar ID="SplitBar" runat="server" />
                    <telerik:RadPane ID="BottomPane" runat="server" Height="50%">
                        Bottom Pane
                    </telerik:RadPane>
                </telerik:RadSplitter>
            </div>
        </telerik:RadPane>
    </telerik:RadSplitter>
    </form>
</body>
</html>

Naturally the actual layout is much more complex, but I've narrowed my problem down to this sample code. I would expect this page to render without any scrollbars at all. Is there a way to accomplish this?

Scott
Dobromir
Telerik team
 answered on 28 Oct 2010
4 answers
2.1K+ views
Here's a thing.

I have a grid on which I display a GridClientSelectColumn.

In my ItemDataBound event handler, I do some testing to see if the user actually has the rights to carry out the operation they are proposing on each row, and if they don't I disable the checkbox.

All good so far.

Prompted my a customer request I added the "Select All" option.

Now if the user checks the checkbox in the header of the GridClientSelectColumn, the rows where the checkbox is disabled don't  - as you would expect - have the checkboxes checked but the grid STILL SELECTS THE COLUMN.

Now surely that can't be right!

-- 
Stuart
Martin
Telerik team
 answered on 28 Oct 2010
6 answers
711 views
How to use an Image button as a hyperlink in a radGrid?

I have a grid that displays customerID, firstname, lastname. The customerID field contains "View Details" image. When I click the "View Details" image button, I want the user to be redirected to: customerdetails.aspx?customerID = ALFKI

The following code does not work for an imageButton:-
CommandArgument="customerdetails.aspx?customerID=customerID.....does not work.

Appreciate your help.

Luv.

Karl
Top achievements
Rank 1
 answered on 28 Oct 2010
6 answers
236 views
Good Day,
I have an issue, I'm editing a rad grid when I click the edit button I able to edit the complete row (horizontal), but I want to see the edition fields in a vertical order.  I attached a couple of pictures. I want so see it in vertical order.
Thanks in advance.
The Best.

William

<telerik:RadGrid  runat="server" ID="grid" AutoGenerateColumns="false"
    AllowPaging="true" OnNeedDataSource="grid_NeedDataSource" OnUpdateCommand="RadGrid1_UpdateCommand"
    OnInsertCommand="RadGrid1_InsertCommand"  OnItemCommand="RadGrid1_ItemCommand"
    onpageindexchanged="grid_PageIndexChanged"  OnItemDataBound="RadGrid1_ItemDataBound" Culture="es-CO" >
    <MasterTableView DataKeyNames="" CommandItemDisplay="Top" InsertItemPageIndexAction="ShowItemOnCurrentPage" EditMode="InPlace">
        <Columns>         
        <telerik:GridTemplateColumn  UniqueName="CompanyID" DataField="CompanyID" HeaderText="Sociedad"
             ForceExtractValue="InEditMode" ConvertEmptyStringToNull="true" >              
              <EditItemTemplate>   
                        <asp:DropDownList CssClass="dropdownlist" ID="ddlContainer" runat="server"></asp:DropDownList>   
                    </EditItemTemplate>
             </telerik:GridTemplateColumn>
      <telerik:GridBoundColumn DataField="BranchID" HeaderText="Sucursal" 
            ForceExtractValue="InEditMode" ConvertEmptyStringToNull="true" >
      </telerik:GridBoundColumn>  
      <telerik:GridBoundColumn DataField="CenterCostID" HeaderText="Centro de Costo" 
            ForceExtractValue="InEditMode" ConvertEmptyStringToNull="true" >
      </telerik:GridBoundColumn>
      <telerik:GridBoundColumn DataField="Descripcion" HeaderText="Descripcion" 
            ForceExtractValue="InEditMode" ConvertEmptyStringToNull="true" >
      </telerik:GridBoundColumn>      
       <telerik:GridTemplateColumn UniqueName="Active" DataField="Active" HeaderText="Activo"  >
                  <ItemTemplate>
                      <asp:CheckBox  Checked='<%#Eval("Active") %>' ID="CheckBox1" runat="server"   />
                  </ItemTemplate>
        </telerik:GridTemplateColumn>
           
       <telerik:GridEditCommandColumn ButtonType="ImageButton" />          
        </Columns>   
    </MasterTableView>
    <PagerStyle Mode="NextPrevAndNumeric" />
</telerik:RadGrid>
william
Top achievements
Rank 1
 answered on 28 Oct 2010
2 answers
181 views
Hello,

I have a RadAjaxManager in a master page, and a RadAjaxManagerProxy in a user control.  I have this setting:

<tel:RadAjaxManagerProxy ..>
<AjaxSettings>
<tel:AjaxSetting AjaxControlID="lnkCreateNew">
<UpdatedControls>
<tel:AjaxUpdatedControl ControlID="rapNewForm" />
			<tel:AjaxUpdatedControl ControlID="rtsForm" />
			<tel:AjaxUpdatedControl ControlID="rapUpdateSection" />
</UpdatedControls>
</tel:AjaxSetting>
</AjaxSettings>
</tel:RadAJaxManagerProxy>

OK, so when the create new button is clicked, the rad ajax panel is also updated, as well as a few other controls.  What I need to have happen is that when create new is clicked, a JavaScript method needs to run

I tried the following, neither work:

RadAjaxManager.GetCurrent(this.Page).ResponseScripts.Add("runCallback();");
rapUpdateSection.ResponseScripts.Add("runCallback();");

I have a debugger; in that client method and nothing runs.

Any ideas?

Brian
Brian Mains
Top achievements
Rank 1
 answered on 28 Oct 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
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
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
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
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?