Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
133 views
I'm running into an odd issue that's making it difficult for me to debug some validation issues I have. I've set up my RadScheduler using the article on Custom Advanced Templates, but if I comment out the RadAjaxManager, the Insert and Edit templates collapse when I try to view them. All I see are the buttons at the bottom of the template, but the content itself is "missing". It's there in the source, so it seems to be an issue of height on the template div. Is there any way around this, so I can test my code without Ajax turned on?
Peter
Telerik team
 answered on 04 Jul 2008
3 answers
98 views

Hi guys,

I'm having a bit of a problem with the new Rad Editor(Ajax) control. It shows a white background in the content area before setting the content. This white background stays in the editor until it finishes loading.
I'm wondering whether there is a way to get rid of it. This never used to happen in the Rad Editor Classic.

Also If there are more rad controls in the page it stays in the editor for even longer until editor gets loaded (its ugly when editor is the last control to load up).

Thanks in advance,

lasa

Tervel
Telerik team
 answered on 04 Jul 2008
1 answer
233 views
Is there anyway to use RadAjaxManager to update controls contained in a FormView Template? Right now I have the FormView inside of a RadAjaxPanel and everything works as expected, but now the Validators do not work due to the incompatiability.

I was hoping I could by pass ths by using RadAjaxManager and not Ajax everything. 

To see this behavoir I have included a Formview Control with 2 dropdown boxes and a RadAjaxManagerProxy. As you can see when you configure the RadAjaxManager the combo boxes do not appear as available for selection.

Any help would greatly be appreciated.

Thanks!

<asp:FormView ID="FormView1" runat="server">  
    <ItemTemplate> 
        <asp:DropDownList ID="DropDownList1" runat="server">  
        </asp:DropDownList> 
<asp:DropDownList ID="DropDownList2" runat="server">  
        </asp:DropDownList> 
    </ItemTemplate> 
</asp:FormView> 
<telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">  
</telerik:RadAjaxManagerProxy> 
 
Maria Ilieva
Telerik team
 answered on 04 Jul 2008
1 answer
158 views
Hi,
is it possible to use RadGrid to edit Sharepoint List?

Thanks
Alex
Sebastian
Telerik team
 answered on 04 Jul 2008
9 answers
329 views

There is an odd display issue with the RadGrid that I am seeing.

It seems that if you have a mix of fixed width columns and dynamic width columns, that the headings and items no longer line up when the Grid scrollbar appears.

Bascically, it appears that as you have columns (left to right), that are fixed, all is good and they line up, but all columns following a dynamic column no longer line up and the rest of the columns follow suit.  Also, there appears to be a blank section towards the end of the grid that looks sized to match up with the scroll bar, but it doesn't.  Instead there is un skinned heading above the scrollbar.  I have an image, but wasn't sure how to get that to you.

In my sample below, all columns after the Description column fail to line up with their headings.

<telerik:RadGrid ID="rgAttributes" runat="server" Skin="Vista" Width="100%" AutoGenerateColumns="false">  
    <ClientSettings> 
        <Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="True" ScrollHeight="100px">  
        </Scrolling> 
    </ClientSettings> 
    <MasterTableView TableLayout="Fixed">  
        <Columns> 
            <telerik:GridCheckBoxColumn DataField="IsRequired" HeaderText="Req" UniqueName="IsRequired">  
                <HeaderStyle Width="30px"/>  
                <ItemStyle Wrap="false" Width="30px"/>  
                <FooterStyle Width="30px"/>  
            </telerik:GridCheckBoxColumn> 
            <telerik:GridBoundColumn DataField="Description" HeaderText="Description" UniqueName="Description">  
                <HeaderStyle Width="100%" /> 
                <ItemStyle Wrap="false" Width="100%" /> 
                <FooterStyle Width="100%" /> 
            </telerik:GridBoundColumn> 
            <telerik:GridBoundColumn DataField="Display" HeaderText="Display" UniqueName="Display">  
                <HeaderStyle Width="100px"/>  
                <ItemStyle Wrap="false" Width="100px"/>  
                <FooterStyle Width="100px"/>                                                                            </telerik:GridBoundColumn> 
            <telerik:GridBoundColumn DataField="Value" HeaderText="Value" UniqueName="Value">  
                <HeaderStyle Width="100px"/>  
                <ItemStyle Wrap="false" Width="100px"/>  
                <FooterStyle Width="100px"/>                                                                            </telerik:GridBoundColumn> 
        </Columns> 
    </MasterTableView> 
</telerik:RadGrid> 

Thanks!

Michael

Dimo
Telerik team
 answered on 04 Jul 2008
1 answer
177 views
Hi Guys,

I've got a TabStrip and a PageView inside of a regular <asp:Repeater>.
My TabStrip is whitin the repeater's headerTemplate and my PageView is whitin my repeater's ItemTemplate. For some reason whenever I click on a tab my pageView doesn't get changed. I reckon the problem is because each element is inside a different container (HeaderTemplate and ItemTemplate). Could you guys give me any idea on how to work this out?

Thanks,
Andre.
Atanas Korchev
Telerik team
 answered on 04 Jul 2008
1 answer
158 views
Hello,

I used to be able to set the ValidationGroup for the tabstrip control on the client-side as follows:

var tsControl = <%= claimTabs.ClientID %>;  
tsControltsControl.ValidationGroup = tsControl.SelectedIndex.toString();  
 

I can't seem to find a way to do this with RadControls for ASP.NET AJAX. Any help is appreciated.

Thanks,
Tom
Atanas Korchev
Telerik team
 answered on 04 Jul 2008
4 answers
153 views

Hi,
I have a grid which has an edit form template and on the template is a linkbutton which opens a RadWindow as a customer lookup. I can easily return the customer name and address picked by the user from this lookup window to the calling form using ClientCallbackFunction and I want to use the returned data to perform a client-side update a couple of  label controls in the calling grid's editform. The trouble is, I cannot find the label controls.

I have tried using the following principle:

<script ...>
function callBack(args)
{
 var labelToUpdate = $find("%<=lblCustomerName.clientID%>")
}
</script>

but of course I get a compile-time error stating the lblCustomerName does not exists. (lblCustomerName is a label in the editform template.)

How can I find the label control in the grid's editform so I can change the label's value from the ClientCallbackFunction?

The page is Ajax-ified using a RadAjaxManager.

Thanks,
Jonathan

Jonathan
Top achievements
Rank 1
 answered on 04 Jul 2008
3 answers
159 views
I tracked down a problem after a few hours of digging ...

I am creating columns in the Page_Load event for a RadGrid. I only add the columns if NOT a PostBack event. Basically I had something like this:

if (!Page.IsPostBack)
{
 // Add each column to the DataTable
 for (int col = 0; col < kview.GridColumns.Count; col++)
 {
  GridBoundColumn boundColumn;
  boundColumn = new GridBoundColumn();
  boundColumn.UniqueName = "Name" + col;
  boundColumn.DataField = "Data" + col;
  boundColumn.HeaderText = "Header" + col;
 // NOTE: I had the .Add AFTER setting the properties
  this.RadGrid1.MasterTableView.Columns.Add(boundColumn);
 }
}

The problem was any postback cleared the column names. Then I found the article
http://www.telerik.com/help/aspnet/grid/grdprogrammaticcreation.html
which said to set the properties AFTER adding the column. So I changed it to this:

if (!Page.IsPostBack)
{
 // Add each column to the DataTable
 for (int col = 0; col < kview.GridColumns.Count; col++)
 {
  GridBoundColumn boundColumn;
  boundColumn = new GridBoundColumn();
// NOTE: Now I add the column right away
  this.RadGrid1.MasterTableView.Columns.Add(boundColumn);
  boundColumn.UniqueName = "Name" + col;
  boundColumn.DataField = "Data" + col;
  boundColumn.HeaderText = "Header" + col;
 }
}

This worked (postbacks now keep the column names)?!?!?

Is this a known bug in the grid control. Even though the web page I found said to do it like this, this seems like a very weird restriction. There does not seem to be any sense to it.
Vlad
Telerik team
 answered on 04 Jul 2008
1 answer
107 views
I noted in another thread that the"SelectOnTab" functionality is enabled by default in the new control.  This is not working for me for load on demand.  The user can enter text but tabbing out of the control does not force a selection.

Control:
<telerik:RadComboBox ID="userRadComboBox" runat="server" EnableLoadOnDemand="True" 
ShowMoreResultsBox="True" Skin="Outlook" OnItemsRequested="userRadComboBox_ItemsRequested" 
Width="250px"> 
<CollapseAnimation Duration="200" Type="OutQuint" /> 
</telerik:RadComboBox> 
>
LoadOnDemand handler:
    protected void userRadComboBox_ItemsRequested(object o, RadComboBoxItemsRequestedEventArgs e) 
    { 
        RadComboBox userRadComboBox = o as RadComboBox; 
        userRadComboBox.Items.Clear(); 
 
        string text = e.Text; 
 
        try 
        { 
            // Bind User names 
 
            RPFirehouseUserCollection coll = new RPFirehouseUserCollection(); 
 
            coll.Query.FhuStaffId.Trim(); 
            coll.Query.Where(coll.Query.FhuStaffId != String.Empty); 
 
            coll.Query.Where(coll.Query.FhuStaffId.Like(text + "%")); 
            coll.Query.OrderBy(coll.Query.FhuStaffId.Ascending); 
 
            if (coll.Query.Load()) 
            { 
                int itemsPerRequest = 20; 
                int itemOffset = e.NumberOfItems; 
                int endOffset = itemOffset + itemsPerRequest; 
                if (endOffset > coll.Count) 
                { 
                    endOffset = coll.Count; 
                } 
 
                for (int i = itemOffset; i < endOffset; i++) 
                { 
                    RPFirehouseUser user = coll[i]; 
                    /// Changed from FhuName to FhuUserId 5/6/08 JCK 
                    userRadComboBox.Items.Add(new RadComboBoxItem(user.FhuStaffId + " " + user.FhuName, user.FhuId.ToString())); 
                } 
 
                if (coll.Count > 0) 
                { 
                    e.Message = String.Format("Items <b>1</b>-<b>{0}</b> out of <b>{1}</b>", endOffset.ToString(), coll.Count.ToString()); 
                } 
                else 
                { 
                    e.Message = "No matches"; 
                }  
            } 
        } 
        catch (Exception ex) 
        { 
            e.Message = "No matches"; 
        } 
    } 

Any help is appreciated!
Jeff
Top achievements
Rank 1
 answered on 04 Jul 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?