Telerik Forums
UI for ASP.NET AJAX Forum
9 answers
195 views
How do I go about getting the ClientId of the editor generated in a GridHTMLEditorColumn and placing that in a <script> tag? 

I am needing to execute the "set_visible" firefox/ajaxmanager workaround for editors in my grid.  (You can see this problem in action on Telerik's own demo sample:
http://demos.telerik.com/aspnet-ajax/grid/examples/generalfeatures/columntypes/defaultcs.aspx
)

There needs to be a ThereIsOnlyOneEditorOnThePageSoAlwaysInitialize property.  ;-)
Peterson
Top achievements
Rank 1
 answered on 07 Jul 2009
1 answer
140 views
I have a question about installing Radeditor to multiple farm. Do I need to run the stsadm to install wsp on all my WFE servers? If not, Would SharePoint automatically copy  dlls across my farm? Many Thanks
Jayson Tautic
Top achievements
Rank 1
 answered on 06 Jul 2009
6 answers
870 views
Hello all,

I have a few GridDropDownColumns in my grid. If I defined the datasource for these columns in the aspx page, everything worked perfectly. When doing edit, the dropdown list shows the correct choices with previously saved value as selected value.

But our coding guideline does not allow direct datasource on the aspx page. So I put the logic in code behind (see below)
protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)  
{  
     if (e.Item is GridEditableItem && e.Item.IsInEditMode) //fire for both edit and insert  
    {              
        GridEditableItem eeditItem = e.Item as GridEditableItem;  
        GridEditManager editMgr = editItem.EditManager;  
        GridDropDownListColumnEditor agencyEditor = editMgr.GetColumnEditor("AgencyDDL") as GridDropDownListColumnEditor;  
        string s = agencyEditor.SelectedValue; //this will return ""  
        agencyEditor.DataSource = getAgency(); //call data layer function to get the agency list  
        agencyEditor.DataBind();  
    }  
 
Now I have a problem. When doing edit, even though the dropdown list is populated with the correct choices, but the previously saved value does not show at the top as selected value. I tried serveral ways to find saved value in code and always get an empty string. Does anyone have any idea what I missed?

Thank you!
Ying
Ying
Top achievements
Rank 1
 answered on 06 Jul 2009
1 answer
89 views
Hello, I watched this tutorial to get a subtable to show on my radgrid.  I have the master table just show everything, and I wanted the detail table to point to the grid as a means of getting a parameter value to populate the detail table.  The problem is, when I click the down arrow on the Master grid, nothing shows as the detail table.  What am I doing wrong?  Below is the video that i watched.

http://tv.telerik.com/aspnet/radgrid/grid-for-asp.net-ajax-nested-tables
Brett
Top achievements
Rank 1
 answered on 06 Jul 2009
2 answers
151 views
Hi
      I am using Rad grid , i have to know that whether any option to give Header-Style width of bound column in %, I set my total Grid  width to 100%, so that i have to split columns according to grid width, but the problem is when i define column width in % basis the column hides during the runtime.

When i am setting pixels based width to all i could not get an good look and feel i am getting lot of balnk space. So plz guide me to how to set Grid width and split columns based on columns. Give me a small demo.
Also let me know can we apply percentage to column width, what to do for that..

Thanx
AQppu
 
Appu
Top achievements
Rank 1
 answered on 06 Jul 2009
2 answers
122 views
Hi.

I am creating a website where a user creates a piece of content, and when he submits it, he chooses when he wants it to be published. For this, I am using the DateTimePicker, which works fine, but I would like to make it so that the user can't select dates or times which have already passed, as it is what makes sense in this example. How can I do this?
Also, when I query my database to show the contents which have been published, I also want to compare the publish date with the date of today to know if I should show that content or not.

Any ideas?
Thanks,

Marta
Marta
Top achievements
Rank 1
 answered on 06 Jul 2009
0 answers
97 views
Hi
       I am using HeaderContextMenu to hiding and unhiding column. But one thing whenever i hide any of column the grid the column should not come to right position.The total view of grid has been collapsed.\

The column didint getting arranged well.

Is there any possible way. to get an exact view of Grid when hide/unhide done


 

Regards,
Appu
Appu
Top achievements
Rank 1
 asked on 06 Jul 2009
3 answers
95 views
3 Item,
default.aspx, grid.ascx, popup.aspx

default if the main page contains the grid.ascx
grid.ascx has only a radGrid with column
            <telerik:GridHyperLinkColumn Text="Deposit" UniqueName="deposit" DataNavigateUrlFields="Username" HeaderText="Point" 
                DataNavigateUrlFormatString="javascript:OpenUpdatePoint('{0}',1);"> 
            </telerik:GridHyperLinkColumn> 

When click column item, a popup radWindow will prompted using popup.aspx

I have add the follow ajax Manager code in default.aspx and callback javascipt function when popup.aspx radWIndow close.
and I sure that the javascript
        var ranMgr = $find('<%= RadAjaxManager.GetCurrent(this).ClientID %>'); 
        radMgr.ajaxRequest("Rebind"); 
runs properly.

But after ajaxRequest, the  OnAjaxRequest="TheRadAjaxManager_AjaxRequest" didnt fired as I expected.

In this case, what the code in RadAjaxManger should be set? my one is
        <telerik:AjaxSetting AjaxControlID="AgentRadGrid"> 
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="UserRadTabPage" LoadingPanelID="TheRadAjaxLoadingPanel" /> 
                <telerik:AjaxUpdatedControl ControlID="AgentRadGrid" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting> 
AgentRadGrid is the grid name need to refresh, what should be put in the AjaxControlID?

Thanks a lot!!
Pavlina
Telerik team
 answered on 06 Jul 2009
6 answers
252 views

The Grid works fine unless the User sorts the Results. As soon as one of the Columns is sorted by, the Grid seems to lose all the Data. If I page to the next set of Data it gives an "Index Out Of Range" Exception because no DataRows are present (even thought well over 300 Records are set as DataSource during the NeedDataSource Event).

Any Ideas? ViewState is enabled, and paging does work correctly before sorting.

Here is the Setup of the Grid:

<telerik:RadGrid ID="rgResult" runat="server"   
                    meta:resourcekey="radGrid" 
                    AutoGenerateColumns="False" 
                    skin="<%# Skin %>" GridLines="None"   
                    onneeddatasource="rgResult_NeedDataSource" 
                    onitemcommand="rgResult_ItemCommand"   
                    OnDetailTableDataBind="rgResult_DetailTableDataBind" 
                    AllowPaging="True" PageSize="15" Allowsorting="true"> 
Pavlina
Telerik team
 answered on 06 Jul 2009
1 answer
112 views
Hi
    I hav a problem i while reordering a column. I hav Group footer too.
The problem is while reordering a column which has the groupFooter value is not moving accoring to the the position where i placed ot reordered  any column, it reamain constant only column is reordering.


Plz help me t catch the point

Regards
Appu
 
Pavlina
Telerik team
 answered on 06 Jul 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?