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

Based on a radio button selection, I have to disable a radcombobox on the client side using javascript. how can this be accomplished?

I tried doing it in javascript :(onlick event of the radio button)

var

cmb = document.getElementById("<%= cmbVal.ClientID %>");
cmb.disabled = true;

where cmbVal --> radcombobox

It seems to work fine on IE 7 . But on firefox it doesn't disable at all. Is there a way I can make this work on all browsers.

Thanks.

 

Shinu
Top achievements
Rank 2
 answered on 21 Jan 2009
4 answers
328 views
I have Q2 2008 controls. I have populate grid with data which is using GridGroupByExpression. Kindly give me clientside script which:

1- returns me row collection
2- Controls with in cell of row
Nabil
Top achievements
Rank 1
 answered on 21 Jan 2009
1 answer
161 views
How do I keep the width of the grid constant?

I have specified the width of the grid and the mastertableview and the width of the individual columns. Bo if the item text of a single column increases in length the width of the grid increases thereby introducing a horizontal scroll on my page. Please help.
Thanks in advance.
Shinu
Top achievements
Rank 2
 answered on 21 Jan 2009
3 answers
304 views
Hello,

I'm having trouble with this.
I have a grid that is grouped by date.

I have a column with aggregate marked as sum. This column holds a number in seconds, which I convert to minutes for display during the ItemDataBound Event.

Now in the footer it will sum the values and display as seconds, but I need to show it in minutes. I tried to get at this value in the ItemDataBound event but it seems to grab the value of the final row before the sum calculation on the grouping is performed.

 

if (e.Item is GridGroupFooterItem)

 

{

 

GridGroupFooterItem item = (GridGroupFooterItem)e.Item;

 

 

DataRowView groupDataRow = (DataRowView)e.Item.DataItem;

 

 

 

foreach (DataColumn column in groupDataRow.DataView.Table.Columns)

 

 

//Check the condition and add only the field you need

 

 

if (column.ColumnName == "Stop Idle")

 

{

 

double si = double.Parse(groupDataRow["Stop Idle"].ToString());

 

item.Cells[column.Ordinal].Text = (si / 60).ToString();

}

}

Shinu
Top achievements
Rank 2
 answered on 21 Jan 2009
2 answers
155 views
Hi -

I've seen where you can disable certain dates in the ASPX page by using the SpecialDays tag and setting IsSelectable to false, but how do I do that in the code behind?  We'd like to be able to identify dates for booking a visit based on available dates from the database, so for any given month there may be one or two dozen days that we need to black out.

Thanks,

Rod
Rod
Top achievements
Rank 1
 answered on 21 Jan 2009
6 answers
233 views
After having read dozens of articles in this forum on similar topics, I realized that it just was not there: I'm desparately seeking an answer on how to change the default (Times New Roman, size 3, black) font in the RadEditor for MOSS, when it is deployed in a WSSv3-only scenario.

I am using the latest version of RadEditor MOSS (version 5.1).
I am using (and testing) the editor in a WSS List.

I find it very hard to find helpful information on WSS only deployments - could you please set up a separate hive for that?

dharyl
Top achievements
Rank 1
 answered on 21 Jan 2009
1 answer
155 views
can anyone tell me why Telerik.web.ui.dll is updated everytime I change something in my Designview in Visualstudio on a page where a telerikcomponent is present?

I have now waste almost 7-8 hours today of just waiting and waiting, and if I don't get this problem solved right away, then I need to skip Telerik-components.....

And more funny: When I close my aspx-page and open it again it says: Unknown server tag 'telerik:RadGrid'. then I add a new RadGrid, deletes the new radgrid, and refresh the original radgrid. Then it is shown.

Then I close my aspx-page and open it again, without leaving VS, and the same thing happens again.

FRUSTRATING......

søren
Top achievements
Rank 1
 answered on 20 Jan 2009
8 answers
217 views
Thanks for your support first of all,

I have a textbox to check, the textbox has onBlur="GetRadSpell(spellCheckClientId).startSpellCheck();"
Now if Sydney (which is correct) is typed and go to the next input box, I don't want to display radSpell windows.
But when Sydny is typed then the windows should appear to allow users to be aware.

Is that possible?

Thanks

Toby
burn
Top achievements
Rank 2
 answered on 20 Jan 2009
5 answers
183 views
I've inherited a complex project that we've just upgraded to 2008 Q2. And I've got a stubborn problem. And I'm very new to Telerik altogether so I'm fumbling a lot.

My page setup.aspx has a RadAjaxLoadingPanel. It loads many things under various circumstances; under one special circumstance it loads a custom control tabbed.ascx.  Tabbed.ascx contains a RadTabStrip that shows various RadPageViews. One of those RadPageViews displays two RadEditors, but only some of the time (based on which radio button is selected).

Each of the RadEditors adds a slightly different custom dropdown, which is filled server-side. The purpose of these pulldowns is to enable inserting various kinds of text into the editor box. Previously this was enabled with these client-side javascript blocks:

<script type="text/javascript">
                    if (typeof(RadEditorCommandList) != "undefined")
                        {
                            RadEditorCommandList["Fields"] = function(commandName, editor, oTool)
                            {
                            oValue = oTool.GetSelectedValue();
                            editor.PasteHtml (oValue);
                            };
                        };
</script>

Now, the help file instructs me to use this sort of construction instead:

<telerik:RadEditor ... OnClientCommandExecuting="OnClientCommandExecuting" />
<script type="text/javascript">
            function OnClientCommandExecuting(editor, args)
            {
               var name = args.get_name();
               var val = args.get_value();
               if (name == "Fields")
               {
                   editor.pasteHtml(val);       
                   //Cancel the further execution of the command as such a command does not exist in the editor command list
                   args.set_cancel(true);
               }
            }
</script>

This absolutely would not work, no matter where I put it in tabbed.ascx.  It finally worked when I put it at the top of setup.aspx, which is annoying because setup.aspx really doesn't know anything about the editors and the script should stay close to what uses it. But anywhere in tabbed.ascx, Firefox's error console would report that OnClientCommandExecuting() wasn't defined. So I moved it to setup.aspx, and it seems to be working now.

However, there's still a problem.  In IE, it just works. But in Firefox 3.0, it only works for a while. The first time you cause the page to display those editors, it works. But if you do anything that hides and then recreates the editors, they are frozen solid. You cannot type in them, and neither the custom pulldowns nor any other toolbar control does anything.  If you leave the page completely and come back, you get another chance.

Like I said, in IE7, it just works, any number of times. In Firefox 3.0 it dies after the first time.

Any suggestions?
Ross Presser
Top achievements
Rank 1
 answered on 20 Jan 2009
2 answers
310 views
I have a radGrid that is not kicking off the delete method when using an ImageButton, the LinkButton and PushButton work fine..

I have tried creating the column manually and also auto generating with code on columncreate that changes it to an imagebutton and neither work. Please help.

<telerik:RadGrid ID="RadGrid1" runat="server" AllowFilteringByColumn="True"   
    AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False"   
    GridLines="None" ShowGroupPanel="True" Skin="WebBlue"   
        ondeletecommand="RadGrid1_DeleteCommand" AutoGenerateDeleteColumn="True"   
        oncolumncreated="RadGrid1_ColumnCreated1" > 
<HeaderContextMenu> 
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
</HeaderContextMenu> 
 
<MasterTableView> 
    <Columns> 
        <telerik:GridHyperLinkColumn DataNavigateUrlFields="FilePath"   
            DataTextField="FileName" HeaderText="Attachments" UniqueName="column2">  
        </telerik:GridHyperLinkColumn> 
        <telerik:GridBoundColumn DataField="AttachType" HeaderText="Attachment Type"   
            UniqueName="column1">  
        </telerik:GridBoundColumn> 
    </Columns> 
</MasterTableView> 
 
    <ClientSettings AllowDragToGroup="True">  
    </ClientSettings> 
 
<FilterMenu> 
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
</FilterMenu> 
<PagerStyle NextPageText="Next" PrevPageText="Prev" Mode="NextPrevAndNumeric">  
                </PagerStyle> 


        protected void RadGrid1_DeleteCommand(object source, GridCommandEventArgs e)  
        {  
            blSharePoint spFiles = new blSharePoint(spPath);  
 
            GridDataItem filePath = (GridDataItem)e.Item;  
            HyperLink test = (HyperLink)filePath["column2"].Controls[0];  
 
            spFiles.DeleteDocFromProposalFolder(test.NavigateUrl.ToString());  
 
            RadGrid1.DataSource = spFiles.ListFileCollectionFromProposalFolder(CurrentLocation, "Proposal Documents", CurrentProposalNumber, "Attachment Type");  
            RadGrid1.DataBind();  
        }  
 
 
        protected void RadGrid1_ColumnCreated1(object sender, GridColumnCreatedEventArgs e)  
        {  
            if (e.Column.UniqueName == "AutoGeneratedDeleteColumn")  
            {  
                GridButtonColumn btncol = (GridButtonColumn)e.Column;  
                btncol.ButtonType = GridButtonColumnType.ImageButton;  
            }  
        } 
Chet Watkins
Top achievements
Rank 1
 answered on 20 Jan 2009
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?