Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
157 views
Hi,
I can succesfully save the grid layout to a cookie (will change to database) by using GridSettingsPersister.
However, i am having to save the layout by clicking a button.
Is there any way i can automatically save the layout without user intervention ?
(Preferably when the user leaves the page)


Many Thanks
Mark
Yavor
Telerik team
 answered on 09 Oct 2008
3 answers
541 views
Hi,

Referring to sample from thread

http://www.telerik.com/community/code-library/submission/b311D-tkhat.aspx

1. Can i have Checked symbol or check box on the columns that are selected?

2. Instead of Showing column by index can i show column by UniqueName of Column as i have reorder Columns as true in grid.

3. Can i have some columns as hidden initially and if user wants them then he can select the column to show them?

Can you please post an updated example for the same. This is little urgent.

Thanking you in Advance.
Pavel
Telerik team
 answered on 09 Oct 2008
3 answers
108 views
Hi

I have just applied hotfix 1001 and seem to be having some trouble with the rendering of WebBlue skin while using the RadWindow control.

I get a white "slither" on each side of the window and the top has a thin transparent bar across the top

The issue seems to be in the styling (or should I say non styling) of the Td's with the classes

corner topleft
corner topright
corner bodyleft
corner bodyright

ie those elements that form the border around the window. The .css file for web blue between the Q2 2008 and the hotfix are identical and thus I guess so are the elements the radwindow renders.

Was anything in the hotfix that might have affected this as it worked before. Could this be a known issue?

FYI I'm using IE in quirks mode.

Rgds

Gary

Martin
Telerik team
 answered on 09 Oct 2008
1 answer
96 views
When I select a new value on GridDropDownColumn.
Then I click insert to do InsertCommand event.
But I can't get the select value; I get this value which is Page_init default value.
e.g. strGlobal_App = ""; not strGlobal_App = "XXX"

ps. It neither works correctly by GridTextColumnEditor.

Thanks for your help.


Here is my sample code:

    <telerik:RadGrid ID="grd" runat="server"  AllowAutomaticInserts="True"
        AllowAutomaticUpdates="True" AllowAutomaticDeletes="True"
oninsertcommand="grd_InsertCommand">
        <MasterTableView DataKeyNames="GUI" AutoGenerateColumns="False"
            CommandItemDisplay="TopAndBottom" HorizontalAlign="NotSet"
                InsertItemDisplay="Top"
            InsertItemPageIndexAction="ShowItemOnFirstPage" >
            <RowIndicatorColumn>
                <HeaderStyle Width="20px"></HeaderStyle>
            </RowIndicatorColumn>
            <ExpandCollapseColumn>
                <HeaderStyle Width="20px"></HeaderStyle>
            </ExpandCollapseColumn>
            <Columns>
                <telerik:GridDropDownColumn UniqueName="Global_App" ListTextField="comment" ListValueField="value"
                    DataSourceID="XmlDataSource_Global_App" HeaderText="Global_App" DataField="Global_App"
                    DropDownControlType="RadComboBox" AllowSorting="true">
                </telerik:GridDropDownColumn>
                
            </Columns>
            <CommandItemSettings AddNewRecordText="Add new record" AddNewRecordImageUrl="img/AddRecord.gif"
                                     RefreshText="Refresh" RefreshImageUrl="img/Refresh.gif" />

<EditFormSettings>
<EditColumn UniqueName="EditCommandColumn1"></EditColumn>
</EditFormSettings>
        </MasterTableView>
        <ClientSettings>
            <Selecting AllowRowSelect="True" />
        </ClientSettings>
        <FilterMenu EnableTheming="True">
            <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
        </FilterMenu>
    </telerik:RadGrid>

        protected void grd_InsertCommand(object source, Telerik.Web.UI.GridCommandEventArgs e)
        {
            GridEditableItem item = (GridEditableItem)e.Item;  
            string strGlobal_App = (item.EditManager.GetColumnEditor("Global_App") as GridDropDownColumnEditor).SelectedValue;

             ~do insert into sql table~
        }

JACK KUO
Top achievements
Rank 1
 answered on 09 Oct 2008
1 answer
97 views
Hello ,

I am trying to achive filter feature using asp.net dropdown, following code works fine with filter

====================================

 

SPSite oSPSite = new SPSite(strSiteUrl);

 

 

SPWeb oSPWeb = oSPSite.OpenWeb();

 

 

SPList oSPList = oSPWeb.Lists[strPERListName];

 

 

SPView oSPView = oSPList.Views["All Issues"];

 

 

SPListItemCollection oSPListItemCollection = oSPList.GetItems(oSPView);

 

RadGrid1.DataSource = oSPListItemCollection.GetDataTable();

RadGrid1.DataBind();

==================================================
Now i have a dependent dropdown where i.e User
Selects = Country
and it shows States in another dropwdown. So when use chages the value in Contry dropdown it revert back to original values, becuase the above code is in page load.
i also tried using NeerDataSource evene to get this achived but no success.
===============================================

Yavor
Telerik team
 answered on 09 Oct 2008
1 answer
135 views
I would like to do an autopostback when an item is selected from the combobox, but if text is entered without making a selection then I don't want it to post back. A solution would be greatly appreciated.
Rosi
Telerik team
 answered on 09 Oct 2008
1 answer
90 views
I have a RadGrid that is bound to a list<T> where T is:

public class FullProductWithDescription  
    {  
        public int ID { getset; }  
        public int MainProductID { getset; }  
        public string MainProductDescription { getset; }  
        public int SubProductID { getset; }  
        public string SubProductDescription { getset; }  
        public bool Kit { getset; }  
 
    } 

 

The RadGrid is built programmatically in the page's Init event handler. I want to add two template columns (1 check box, and 1 text box). So when the end user clicks the check box the text box becomes enabled. If more items are added to my list<T> can I have the new records show in the grid while preserving the states of the check box and text box? Obviously when I call DataBind on the grid I get the new rows but the check box and text box data disappear. Any ideas?

Thanks,

Vladimir
Top achievements
Rank 1
 answered on 09 Oct 2008
2 answers
136 views
I have a treeview inside my combo box.
I want to populate the tree view on initial page load.

I am unable to find the tree view inside combo.

I call this code on page load:

private

void LoadRootNodes(string currentUserContext)

{

DataTable data = new DataTable();

data =

BO.GetOwners(currentUserContext,);

RadTreeView tvOwner = (RadTreeView)RadComboBox1.FindControl("tvOwner");

tvOwner.DataTextField = "Name";
tvOwner.DataFieldID = "EmpId";
tvOwner.DataFieldParentID = "ParentId";

tvOwner.DataSource = data;
tvOwner.DataBind();

}


and below is my combo declaration:

<

telerik:RadComboBox ID="RadComboBox1" runat="server" Height="140px" Width="215px" ShowToggleImage="True" Skin="WebBlue" Style="vertical-align: middle;">
    <ItemTemplate>
            <div id="div1">
                    <telerik:RadTreeView runat="server" ID="tvOwner"     OnNodeExpand="tvOwner_NodeExpand" Skin="WebBlue">
                    </telerik:RadTreeView>
            </div>
    </ItemTemplate>
    <Items>
        <telerik:RadComboBoxItem Text="" />
    </Items>
</telerik:RadComboBox>

when i do RadComboBox1.FindControl("tvOwner") my treeview comes as null.

 Please suggest.

allan
Top achievements
Rank 1
 answered on 08 Oct 2008
6 answers
157 views
Hi, I am using RADspell to spell check some textareas.
I am also using frames. The RAD spell checker is in the bottom frame.

With IE I notice that when I click on the button which activates the spell checker the background goes completely black. In Firefox I don't have the same problem.
Here are the screen shots
IE7
http://www.eyecode.ca/IE7.jpg
FireFox 3
http://www.eyecode.ca/FireFox3.jpg

Has anyone encountered this issue before?

Vic
Victor
Top achievements
Rank 1
 answered on 08 Oct 2008
1 answer
141 views
Hi iam trying to create a CustomValidator which should validate 2 fields within a RadGrids Popup edit window.

Here is the Custom Validator
<asp:CustomValidator runat="server" ErrorMessage="Indtast en pris"   
                        Display="Dynamic"  onservervalidate="Unnamed1_ServerValidate"></asp:CustomValidator> 

And the method bound to it:
 protected void Unnamed1_ServerValidate(object source, ServerValidateEventArgs args)  
 


However the problem is i cant seem to get references to the controls which i want to validate.
How do i get references to the controls which are in the popup window ?
mSchmidt
Top achievements
Rank 1
 answered on 08 Oct 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?