Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
54 views
I seem to do this to 90% of my databound combos

    protected void Combo_DataBound(object sender, EventArgs e) { 
        ((RadComboBox)sender).Items.Insert(0, new RadComboBoxItem(""null)); 
    } 

Could that perhaps become a property on the control?...
RadComboBox1.InsertNullFirstItem or something...?


Simon
Telerik team
 answered on 18 Jun 2010
2 answers
91 views
Hi,

In this example here:
http://demos.telerik.com/aspnet-ajax/grid/examples/hierarchy/autogeneratedhierarchy/defaultcs.aspx
the expansion column ( the one with the + sign ) is always the first one.
Is it possible the expand column to be let's say the 4th column.
Imagine this:

CustomerID Name Orders +Column

I have played with the sample code and added another column before CustomerID, but the expansion column is always the first one before any other column.


Princy
Top achievements
Rank 2
 answered on 18 Jun 2010
1 answer
78 views

Hi,
I am facing problem in folder selection event :
I am calling this function for this File Explorer from client-side event to do some processing on dblevel in serverside : 

OnClientFolderChange

 

="controlPermissions"

function

 

 

 

controlPermissions()

 

 

 

 

var oAjaxPanel = $find("<%= AjxPanelGFP.ClientID %>");

 

oAjaxPanel.ajaxRequest(

 

"NodeSelected"); // Call the RadAjaxPanel1_AjaxRequest function on the server ;

 

}

In Server side I wrote the function for the above ajax request :

 

protected

 

 

void AjxPanelGFP_AjaxRequest(object sender, AjaxRequestEventArgs e)

 

{

 

string

 

 

UserCommand = e.Argument;

 

 

 

switch (UserCommand)

 

{

 

 

 

 

case

 

 

"NodeSelected":

 

strFolderPath = FileExplorer1.TreeView.SelectedNode.FullPath.ToString();

 

 

if (!PortalSecurity.IsInRole("Administrators"))

 

{

 

 

bool blnViewFolder;

 

 

 

bool blnCreateFolder;

 

 

 

bool blnRenameFolder;

 

 

 

bool blnDeleteFolder;

 

 

 

bool blnFullControl;

 

GetFolderPermissions(strFolderPath,

 

out blnViewFolder, out blnCreateFolder, out blnRenameFolder, out blnDeleteFolder, out blnFullControl);

 

 

 

if (blnFullControl == true)

 

{

 

 

FileExplorer1.VisibleControls = Telerik.Web.UI.FileExplorer.

 

FileExplorerControls.Toolbar;

 

FileExplorer1.VisibleControls = Telerik.Web.UI.FileExplorer.

 

FileExplorerControls.ContextMenus;

 

pnlSecurity.Style.Add(

 

"display", "block");

 

}

 

 

else

 

 

 

 

 

 

{

FileExplorer1.ToolBar.Visible =

 

false;

 

pnlSecurity.Style.Add(

 

"display", "none");

 

}

}

 

 

break;

 

}

 

 

}

while, i am clicking the particular folder, I need to check the permissions for those selected one in serverside. Its firing, but the GridView is contineously showing the AjaxLoading Panel... After refreshing the page only.. Its releasing....

Please provide your support

Thanks,
Sheik

 

 

 

 

 

Fiko
Telerik team
 answered on 18 Jun 2010
2 answers
135 views
When i place parameters in my datasource that i am using with my RadCombo, these parameters do not reflect the changes i make on the client.

For Example if i type in a textbox that is a paramter of the datasource linked to my combo, the server-side never gets this value ?


Is there any way to remedy this, has anyone use parameters with EnableAutomaticLoadOnDemand  ?


Thanks
Simon
Telerik team
 answered on 18 Jun 2010
3 answers
136 views
Hello,

I have a RadComboBox that is being created programmatically, as part of a templated grid pager.  No matter which skin I choose for the combo box, when I hover the mouse pointer over the arrow cell, the arrow cell changes to a white box with a black border, with no arrow image visible within.

I have a feeling that the problem has to do with the background-position of the rcbHovered classes, but I am not that familiar with image sprites and positioning within a sprite.  Obviously, something is getting messed up with the styles, when the combo box is created programmatically, or else when the combo box is embedded within another control (like a RadGrid GridPagerItem).

Does anybody know of a reason why the image would get blanked out when hovering over the arrow cell?

Note, the attached files are screenshots of the grid pager with the RadComboBox, normal, and when the mouse pointer is hovering over the arrow cell.

Thanks for any help.
Yana
Telerik team
 answered on 18 Jun 2010
2 answers
120 views
I receive the following error when I add the ONDetailTableBind to  the attributes for the grid.

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: CS1061: 'ASP.radgridmasterdetaildisplay_aspx' does not contain a definition for 'GetTrans' and no extension method 'GetTrans' accepting a first argument of type 'ASP.radgridmasterdetaildisplay_aspx' could be found (are you missing a using directive or an assembly reference?)

Source Error:

Line 13:     <asp:ScriptManager ID="sm" runat="server" />
Line 14:     
Line 15: <telerik:RadGrid ID="demoGrid" runat="server" OnNeedDataSource="GetData" Line 16:          AutoGenerateColumns="false" PageSize="20" OnDetailTableDataBind="GetTrans"
Line 17:         AllowPaging="true"   RegisterWithScriptManager="true">

Source File: c:\Documents and Settings\...\TelerikDemo\RadGridMasterDetailDisplay.aspx    Line: 15

Any ideas?

The problem goes away wne the OnDetailTableDataBind attribute is removed.
Luke Templin
Top achievements
Rank 1
 answered on 18 Jun 2010
2 answers
158 views
Hello,

I need, in the month view, the appointment height to be a lot bigger than it is; currently, the appointment height is 21 px but I need it to be more like 60 px because I can barely see the appointment information.  What do I need to set to enlarge the appointment height?

Thanks.
Brian Mains
Top achievements
Rank 1
 answered on 18 Jun 2010
1 answer
169 views

Hi,

I am developing a web page in which a rad grid displays the list of exams. I included a template column which shows count down timer when the exam is going to expire.

Code is as given below:

 <telerik:RadGrid ID="radGrid" runat="server" AutoGenerateColumns="false">
       
<MasterTableView>
           
<Columns>
 
<telerik:GridTemplateColumn HeaderText="template" DataField="Date">
                   
<ItemTemplate>
                       
<script language="JavaScript" type="text/javascript">
                           
TargetDate = '<%# Eval("Date") %>';
                           
BackColor = "white";
                           
ForeColor = "black";
                           
CountActive = true;
                           
CountStepper = -1;
                           
LeadingZero = true;
                           
DisplayFormat = "%%D%% Days, %%H%% Hours, %%M%% Minutes, %%S%% Seconds.";
                           
FinishMessage = "It is finally here!";
                       
</script>

                       
<script language="JavaScript" src="http://scripts.hashemian.com/js/countdown.js" type="text/javascript"></script>

                   
</ItemTemplate>
               
</telerik:GridTemplateColumn>
           
</Columns>
       
</MasterTableView>
   
</telerik:RadGrid>

I am giving DataTable as datasource to this grid. But my problem is , the template column is showing data only for the first record and the value taken is from the last row in the DataTable.

For Ex: If I give data as given below, I can see 3 records but with only the first record displaying the counter with last value(10/10/2010 05:43 PM).

02/02/2011 01:00 AM
08/09/2010 11:00 PM
10/10/2010 05:43 PM

Could you please help in this??

Thanks,

Mahesh

Yavor
Telerik team
 answered on 18 Jun 2010
1 answer
158 views
Hi telerik,

I have errors when using RadAjaxManager with UpdatePanel in below code

ASPX:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"
<head runat="server"
    <title></title
</head> 
<body> 
    <form id="form1" runat="server"
    <div> 
        <asp:ScriptManager ID="ScriptManager" runat="server" /> 
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"
            <AjaxSettings> 
                <telerik:AjaxSetting AjaxControlID="Button1"
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl ControlID="TextBox1"></telerik:AjaxUpdatedControl> 
                    </UpdatedControls> 
                </telerik:AjaxSetting> 
            </AjaxSettings> 
        </telerik:RadAjaxManager> 
         
        <asp:UpdatePanel ID="UpdatePanel1" runat="server"
            <ContentTemplate> 
                <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server"
 
                    <script type="text/javascript" language="javascript"
                        function AjaxRequestButton(arguments) { 
                            var ajaxManager = $find("<%= RadAjaxManager1.ClientID %>"); 
                            ajaxManager.ajaxRequestWithTarget('<%= Button1.UniqueID %>', ''); 
                        } 
                    </script> 
 
                </telerik:RadCodeBlock> 
                 
                <asp:Button ID="Button1" runat="server" Text="Button AjaxManager" OnClick="Button1_Click"></asp:Button> 
                 
                <asp:Button ID="Button2" runat="server" Text="Button PostBack" OnClick="Button2_Click"
                </asp:Button> 
                 
                <br /> 
                <asp:TextBox ID="TextBox1" runat="server" Width="100%"></asp:TextBox> 
            </ContentTemplate> 
        </asp:UpdatePanel> 
    </div> 
    </form> 
</body> 
</html> 

Code-behind
        protected void Button1_Click(object sender, EventArgs e) 
        { 
            TextBox1.Text = "Button Ajax has been clicked"
        } 
 
        protected void Button2_Click(object sender, EventArgs e) 
        { 
            TextBox1.Text = "Button PostBack has been clicked"
        } 

When click Button AjaxManager then click Button PostBack, it have an error occurred below but not often
Webpage error details 
 
Message: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled. 
Details: Error parsing near 'Telerik.Web.UI 2010.'. 
Line: 4723 
Char: 21 
Code: 0 
URI: http://localhost:10956/ScriptResource.axd?d=25viXrHNq8PHOF300A5rNLFxBJoONHwrIidSkSN-ZqB_-VYBht_Zy2ADVs_3NtVl4UXYPXO49gST9fKJiXe9_bvHaHgalpS_ozIgi-6XdgE1&t=ffffffffec2d9970 
 
 


Please help me fix it, thanks



Iana Tsolova
Telerik team
 answered on 18 Jun 2010
7 answers
171 views
Hi,

We have built a MOSS2007 intranet site with custom MasterPages, PageLayouts, CSS Stylesheets etc. We are using RadEditor 4.5.4.0 for a rich text editor and we've also integrated it into the MOSS Blog and Wiki sites.

Unfortunately for some reason the toolbars of the RadEditor disappear in IE 6, 7 and 8 (in every "X-UA-Compatible" mode) in the MOSS Blog and Wiki when out custom MasterPage is used. It seems that the RadEditor script does not behave as expected and inserts an inline-style "display: none;" (see below) for the toolbars effectively hiding them and making it impossible to use the editor.

<table class="RadEToolbar" id="ctl00_m_g_0044a7d2_c45e_4d42_b9ca_e2c24a7655ec_ctl00_ctl04_ctl01_ctl00_ctl00_ctl04_ctl00_ctl00_RadTextFieldToolbar1" style="display: none; cursor: default;" border="0" cellSpacing="0" cellPadding="0" sizcache="7" sizset="27" unselectable="on">

The funny thing is that not only the toolbars disappear but the scroll bar of the editor text area moves up and down automatically!

We've tried to go through all our custom code trying to isolate the problem but with no success yet. The bug does not reproduce itself on publishing content pages nor even in every blog site.

We are using a Strict Document Type <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> but during testing we noticed that the toolbars show when the browser is forced into Quirks Mode.

I tried to override the display: none inline style within our CSS-file. It works but IE crashes/hangs while trying to load a resource it never gets. I also tried to do this with JavaScript but the RadEditor scripts are alway executed last on the page (Any ideas how delay script execution past them using jQuery for example?) overriding my code.

Has anyone ever encountered this kind of issue? We've got several years of experience in building custom sites with MOSS2007 and RadEditor and to my knowledge we have not seen this issue before.

In which circumstances (normally) does the editor hide itself? When it detects an unsupported browser? If so why the detection fails here and is there away fix/hack it?


Any ideas or help are most welcome! Thanks!


Pirkka
Pirkka
Top achievements
Rank 1
 answered on 18 Jun 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?