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

It could be useful to be able to sort the files based on properties like file extension and creation date.

Two cents thrown in :)

Regards,
-DJ-
Fiko
Telerik team
 answered on 22 Apr 2009
1 answer
75 views
Hi Everyone,

We are using a RadGrid and have implemented a GroupByExpressions code block to group our data by day. The grid properly groups and sorts the data based on the parameters we set, but when you click on the "down facing" arrow to collapse a given section, nothing happens.

We removed all update panels encapsulating the grid and we noticed that the grid produces a PostBack when the arrow is clicked, but nothing happens. We also tried adding a RadAjaxManager and RadAjaxLoadingPanel as seen in the RadGrid grouping demo.

Any help you can provide on this matter is greatly appreciated. Our code is below.

Thanks.

Code:

<Telerik:RadGrid  
    ID="trgGrid"  
    runat="server"  
    DataSourceID="dsSource"  
    AutoGenerateColumns="False"  
    GridLines="None"  
    Skin="Hay"
 
    <MasterTableView DataSourceID="dsSource"
    <RowIndicatorColumn Visible="False"
    <HeaderStyle Width="20px"></HeaderStyle> 
    </RowIndicatorColumn> 
 
    <ExpandCollapseColumn Visible="False" Resizable="False"
    <HeaderStyle Width="20px"></HeaderStyle> 
    </ExpandCollapseColumn> 
        <GroupByExpressions> 
            <Telerik:GridGroupByExpression> 
                <SelectFields> 
                    <Telerik:GridGroupByField 
                        FieldAlias="Date"  
                        FieldName="StartDateOnly"  
                        HeaderValueSeparator=": "  
                        FormatString="{0:D}"  
                    /> 
                </SelectFields> 
                <GroupByFields> 
                    <Telerik:GridGroupByField  
                        FieldName="StartDateOnly"  
                        SortOrder="Descending"  
                    /> 
                </GroupByFields> 
            </Telerik:GridGroupByExpression> 
        </GroupByExpressions> 
        <Columns> 
            <Telerik:GridTemplateColumn UniqueName="TemplateColumn"
                <ItemTemplate> 
                  <asp:LinkButton ID="btn" runat="server" 
                    CommandName="myCommand" 
                    Text="<%$Resources:ascx.TelerikReservationsGrid, trgGrid_btn_Text %>" 
                    CausesValidation="false" 
                  /> 
                </ItemTemplate> 
            </Telerik:GridTemplateColumn> 
            <Telerik:GridTemplateColumn UniqueName="TemplateColumn2" HeaderText="<%$Resources:ascx.TelerikReservationsGrid, trgGrid_colRange_Text %>"
                <ItemTemplate> 
                  <%# Eval("Range") %> 
                </ItemTemplate>             
            </Telerik:GridTemplateColumn> 
            <Telerik:GridTemplateColumn UniqueName="TemplateColumn3" HeaderText="<%$Resources:ascx.TelerikReservationsGrid, trgGrid_colName_Text %>"
                <ItemTemplate> 
                  <%# Eval("Name") %> 
                </ItemTemplate>             
            </Telerik:GridTemplateColumn> 
            <Telerik:GridTemplateColumn UniqueName="TemplateColumn4" HeaderText="<%$Resources:ascx.TelerikReservationsGrid, trgGrid_colType_Text %>"
                <ItemTemplate> 
                    <%# Eval("Type") %> 
                </ItemTemplate> 
            </Telerik:GridTemplateColumn> 
            <Telerik:GridTemplateColumn UniqueName="TemplateColumn5" HeaderText="<%$Resources:ascx.TelerikReservationsGrid, trgGrid_colTitle_Text %>"
                <ItemTemplate> 
                    <%# Eval("Title") %> 
                </ItemTemplate> 
            </Telerik:GridTemplateColumn> 
            <Telerik:GridTemplateColumn UniqueName="TemplateColumn6" HeaderText="<%$Resources:ascx.TelerikReservationsGrid, trgGrid_colRemaining_Text %>"
                <ItemTemplate> 
                    <%# Eval("Remaining") %> 
                </ItemTemplate> 
            </Telerik:GridTemplateColumn>                         
        </Columns> 
 
    <EditFormSettings> 
    <PopUpSettings ScrollBars="None"></PopUpSettings> 
    </EditFormSettings> 
    </MasterTableView> 
</Telerik:RadGrid> 
<MyClass:MyDataSource ID="dsSource" runat="server" EnablePaging="true" /> 
Pavlina
Telerik team
 answered on 22 Apr 2009
1 answer
244 views
My page contains a RadGrid and two Validation Groups, one for the RadGrid (gridGroup) and one for the other page controls (pageGroup).

Initially I was unable to insert a record into the grid because the pageGroup validators would fire when I click insert, the page never even posted back.

I add to following code to the RadGrid:
 
<ValidationSettings EnableValidation="true" ValidationGroup="gridGroup" /> 

I could then Insert a record into my grid without firing off the pageGroup validators.
I then tried to edit the record.  I clicked edit and the row went into edit mode.  I made a change and click update and no postback occured because the pageGroup validators were fired.  If I filled in the fields associated with the pageGroup validators, effectivly turning the validators off, I am able to Update.

This occurs regardless of whether I designate CommandsToValidate or not.

Anyone have an idea what I'm missing?

Thanks,

Rob
Georgi Krustev
Telerik team
 answered on 22 Apr 2009
3 answers
188 views
Hi, can someone help me with the following scenario. I have a master page which holds the definition of a radwindow which is shown in modal mode. In this window I have a toolbar and a TextBox. As soon as the user edit something in the TextBox, I will set a hidden field to true so I know the data has changed. Now when the user click on the close button (actual the cross in the right corner) and didn't save the data, I want to show a confirmation window which asks to save the modified data or just close the window.

  1. How can I check in the master page, which holds the window definition and some javascript functions to refresh the page when the windows closes, if the hidden field in the modal window is set to true?
  2. How can I then show the modal dialog?
  3. How can I save the data if the user decides to save the data?

A other possibility would be, when the user wants to save the data, the close action is canceled, so he can save the data using the button in the radwindow.

I use version Q3 2008 1105.35 of the Rad-Ajax controls. We cannot upgrade to the lastest version yet. So using onBeforeClose is not an option.
Georgi Tunev
Telerik team
 answered on 22 Apr 2009
1 answer
88 views
Hello,
Im working with the Hyperlink Manager in order to create links. When the Hyperlink manager opens, the URL field has allready the http://  value. If you leave the URL Field as is and try to open the link, you get an access deny java script error.
Is there a way to customize the Hyperlink Manager or is there a special property so it will not allowed to create a link that is not valid?
Can i registaer to the OK button click event that will help me to validate the URL?
Thanks in advanced
Rumen
Telerik team
 answered on 22 Apr 2009
2 answers
127 views
Your combo box has enabled us to provide a better solution for our customers by letting them see color swatches and search all products of that color -- it's very cool.

One issue however is that since the combo is rendered on the client side, all the color swatches download the first time to the user's browser cache.  This can be up to 250 images and takes quite a bit of time.

I've been reading about CSS Sprites (where I could combine the images into a several composite images and then slice them out using CSS).

Has anyone achieved this with the rad combo?

I tried setting a new CSS file and adding a different class to each RadComboBoxListItem that is rendered with a li.colorclassname tag, but then control doesn't seem to be applying it.

I thought I could set the url of the image to the composite image and then using the CSS could position the view to just the swatch I want to show.

Thoughts?
Kevin
Top achievements
Rank 1
 answered on 22 Apr 2009
0 answers
120 views
Hi,

I am working on Custom field type in MOSS 2007 (Sharepoint)
I am trying to add the RAD Combobox with treeview in one of the custom field types.
I am facing following issues:

1. If i put Script Manager tag in Master page,then i am not able to get the handle of radComboBox in code,it always returns NULL.
2. If i put Script manager tag in Template section of Custom field .ascx file it works fine,but this behivour fails if we want to use Rad Combobox in different field types and these field types are part of same page.
Error: Only one script manager tag allowed on one page.
3. I tried adding Script Manager tag in field type dynamically using following code snippet, but it still returns NULL for rad Combobox control.
 protected override void OnInit(EventArgs e)
        {
            ScriptManager sm = ScriptManager.GetCurrent(this.Page);
            if (sm == null)
            {
                sm = new ScriptManager();
                //add the ScriptManager as the first control in the Page.Form
                this.Controls.AddAt(0, sm);
            }
            base.OnInit(e);
        }

Any ideas on how we can add this Script Manager in one location say Master page and rad Combobox item still work fine??

Regards,
Amit
Amit
Top achievements
Rank 1
 asked on 22 Apr 2009
4 answers
107 views
I would like to make the border for the plot area of my chart transparent except for the bottom.  Is this possible with Q3?  I was able to do this with Q2.  The value I am trying to change is under:

- PlotArea
   - Appearance
           -Border
               Color = Transaparent

In the previous version of the controls you could set each side individually.  It looks like Q3 only lets you set the entire border.  Any help would be greatly appreciated.
Jason Van Dusen
Top achievements
Rank 1
 answered on 22 Apr 2009
2 answers
217 views
I've just upgraded to the 2009 Q1 RadControls. When placing a RadGrid inside a RadDock the alternating row color seems to inherit its color from the RadDock. If you apply the 'Black' theme for example to the RadDock the RadGrid alternating rows appear dark grey. Is this easily fixed with a style change to the RadGrid? Is this isolated to the alternating rows?

Daniel
Dimo
Telerik team
 answered on 22 Apr 2009
5 answers
208 views
Hi Team

I am opening the window by using radopen method from clientside....whenever page gets postback all windows get disappears....

is there anyway to stop this..

Thanks in advance,
satish.
Georgi Tunev
Telerik team
 answered on 22 Apr 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?