Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
77 views
Hi,
below i wrote a code according to my condition with the Window.Confirm function.
this method is called on the RadButton  clientcliked event.
I want to know how same thing can be done with RadConfirm method.

 function rbReturnToData_Clicked(button, args) {
            debugger;                 
            var pending = document.getElementById("<%= lblChangesPending.ClientID %>");
            var lblTitleFilter = document.getElementById("<%= lblTitleFilter.ClientID %>");
            var rfGridFilter = document.getElementById("<%= rfGridFilter.ClientID %>");

            if (pending != null) {
              if (pending.innerHTML != "") {
                  if (window.confirm("You have pending filter changes.  Apply them?")) {
                     
                      button.set_commandName('Apply')                                                            
                      button.set_autoPostBack(true);
                    }
                    else {                       
                        button.set_commandName('Cancel')    
                        button.set_autoPostBack(true);                        
                    }
                }
                else
                    CollapseToolsPane();
            }
            else {
                CollapseToolsPane();
            }            
        }
Gimmik
Top achievements
Rank 1
 answered on 17 May 2011
1 answer
84 views
Hi,
I want to format a sql server float type value to the format: ###,###
How can I do this? 
I noticed that the format {0:c} doesn't work for float types and anyways I don't want any $ sign.
Any help would be appreciated.
As an example:

<radG:GridBoundColumn DataField="VarianceVal" UniqueName="VarianceVal" HeaderText="Value Variance Rule Result"
DataFormatString="{0:c}"></radG:GridBoundColumn>



										
Gimmik
Top achievements
Rank 1
 answered on 17 May 2011
2 answers
96 views
Hi
I've added this tag to a page :

 

 

        <telerik:RadScriptManager ID="RadSkinManager1" runat="server">
            <Scripts>
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
            </Scripts>
        </telerik:RadScriptManager>

 

 

 

 

 

 

 


but javascript intellisenes doesn't work
(I'm working with VS2010)
Please tell me wath should I do?
Thanks for your feedbacks
reza
Top achievements
Rank 1
 answered on 17 May 2011
8 answers
125 views
Hello

I want to modify the EditorDialogs that I can find here : C:\Program Files\Telerik\RadControls for ASP.NET AJAX Q2 2010\EditorDialogs
Specifically, I need to change the RadFileExplorer1.Configuration.ContentProviderTypeName in the FileBrowser dialog, so that when it looks for a file, it lists them from the database instead of from the file system.

So, I copied the ascx in the EditorDialogs folder of my project. It seems to work, because if I add "aaaa" in the control, for example, it shows in the resulting html.

However, no server side code seems to work, at all, ever, period. If I add server-side code, then add breakpoints, they do not load (can't reach breakpoint, symbols not loaded)
- I tried to add a Page_Load method : nothing happens, not even if I just try a simple "response.write".
- I tried "<%= "test" %>" somewhere in the usercontrol : nothing shows
- I switched the language of the controls to VB (my project is vb.net, but the controls are in c#), still no luck
- I re-created the control using a code-behind file, still nothing, with either vb or c#

So, any idea on how I can switch the ContentProvider of every FileBrowser of every RadEditor of the project ? (and there are a lot of editors in there...)

Thanks
Thomas B
Top achievements
Rank 1
 answered on 17 May 2011
2 answers
124 views
I have a RadWindow that is used as a dialog. The page in it has a couple of RadColorPickers in it.

When displayed, the colour pickers are always displayed relative to the picker button which causes scrollbars to appear in the dialog, regardless of the size of the window (See this Jing video for an example).

My mark-up looks something like this ...
<telerik:RadColorPicker id="ColBackColour" runat="server" ShowIcon="true" KeepInScreenBounds="true" ShowEmptyColor="false" AutoPostBack="false" PreviewColor="false" Columns="35">
  <telerik:ColorPickerItem title="Light Pink" value="#FFB6C1"/>
  <!-- blah -->
</telerik:RadColorPicker >

I note that whatever I do there is always item level CSS injected to set the top and left of the colour picker. I need to be able to override this to set the position relative to the dialog bounds.

-- 
Stuart


Stuart Hemming
Top achievements
Rank 2
 answered on 17 May 2011
3 answers
175 views
Hi,

How can I create a my own ImageManager? I find som information about the FileManager (Custom Dialog in the LinkManager).
but I will like to do that with the ImageManager.

I'st anyone out there that have a good advice or some examples to share?

Best regards

Rune



Rumen
Telerik team
 answered on 17 May 2011
1 answer
126 views
When will this product be available for purchase?
Sebastian
Telerik team
 answered on 17 May 2011
1 answer
92 views
Hi,
We have an issue in some code for a user control where we are dynamically building up the controls on the page including the AjaxLoadingPanel and AjaxSettings via the AjaxManager.
We have follow the instructions as per http://www.telerik.com/help/aspnet-ajax/ajax-ajax-manager-programmatic-creation.html and http://www.telerik.com/help/aspnet-ajax/ajax-add-ajaxsettings-programmatically.html and placed the code in the relevant event handlers but the loading panel is not displayed. Also the ClientEvents OnRequestStart/End events don't seem to fire.
We don't have any issues in pages where we have declared the controls in markup.
We are using web parts heavily in our application (a CMS), could this have a bearing on the problem?


Tsvetoslav
Telerik team
 answered on 17 May 2011
4 answers
852 views
Hi,

I have a hierarichal grid and I'm trying to change the parent row cell color. The below code is working fine for changing the background color of a cell. But when I click on the expand arrow it is not expanding the detail table. If I comment out this code, it expands fine.

What am I doing wrong? Suggessions please....


protected void RadGridResults_ItemDataBound(object sender, GridItemEventArgs e)
        {
if (e.Item is GridDataItem)
                    {
                        GridDataItem dataItem = (GridDataItem)e.Item;
                        if (dataItem["rpd_cott_ind"].Text == "COTT")
                        {
                            dataItem["rpd_cott_ind"].BackColor = System.Drawing.Color.Brown;
                            dataItem["rpd_cott_ind"].Font.Bold = true;
                        }
                    }
}

Thanks,
PJ.
Tsvetina
Telerik team
 answered on 17 May 2011
3 answers
147 views
We are trying to move our new application up to the server and we are getting this message when we hit the Login.aspx page.  I'm pretty sure it has to do with access to the Telerik Resources, but we can't figure this out.  We've added these lines to our web.config, but it didn't help:

<location path="WebResource.axd">    
<BR><system.web>      
<BR><authorization>        
<BR><allow users="*" />      
<BR></authorization>    <BR></system.web>  
<BR></location>  <BR><location 
path="ScriptResource.axd">    
<BR><system.web>      
<BR><authorization>        
<BR><allow users="*" />      
<BR></authorization>    <BR></system.web>  
<BR></location>  <BR><location 
path="Telerik.Web.UI.WebResource.axd">    
<BR><system.web>      
<BR><authorization>        
<BR><allow users="*" />      
<BR></authorization>    <BR></system.web>  
<BR></location

The server is windows 2003.  We are using ASP.NET 4.0.  Latest version of the Telerik Ajax Controls(Q1, 2001)... 

We have configured it as a Website, not a Virtual Directory.  We are using a hybrid authentication(Windows Auth + Forms Authentication)...don't ask me why...wasn't my call...

I ran Fiddler and I am getting 404 errors when it tries to access the resource files.  I'm pretty sure it's tied to security, but I'm not sure what the fix is.

Help?

Thanks

mark


Tsvetina
Telerik team
 answered on 17 May 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?