Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
71 views
Hello,

Does anyone know of any way to round the corners of the drop-down list in the RadComboBox?  Is it possible?  I'm on version 2010.2.713.35 and I've been beating my head against the wall for days....

Thanks!
Charlie
Top achievements
Rank 1
 answered on 21 Apr 2011
4 answers
131 views
Dear Sir,

I am using radgrid control and get it's column value in javascirpt.

It's working fine with IE and Chrome but it's not working in firefox firsttime.

It's giving error "grid not found" in javascirpt.

After loading firsttime in firefox it will be working fine also.

So please give me proper solution for that.

I giving my javascriot.

------------------- CODE ------------------
<telerik:RadScriptBlock ID="dsf" runat="server">
        <script language="javascript" type="text/javascript">
            function CheckItems() {
                var Message = "<b>" + document.getElementById("<%= txtLabelName.ClientID %>").value + " </b><br />";
                var grid = $find("<%=grdMandatoryInstructions.ClientID %>");
                var MasterTable = grid.get_masterTableView();
                Message += "<ul>"
                for (var i = 0; i < MasterTable.get_dataItems().length; i++) {
                    record = MasterTable.get_dataItems()[i];
                    if (record.findElement("chkItem").checked) {
                        Message += "<li>" + record.findElement("lblDispalyName").innerHTML + "</li>";
                    }
                }
                document.getElementById("<%= lblLabelMessage.ClientID %>").innerHTML = Message + "</ul>";
            }           
        </script>
    </telerik:RadScriptBlock>
------------------------------------------------

Thanking you.
Kishor Dalwadi
Top achievements
Rank 2
 answered on 21 Apr 2011
15 answers
490 views

Hello,
I have a JS fuction that uses the $find function to try and get the selectedItemValue from a radCombobox, but the call returns nothing. Below is the beginning of the function. If I look at the combo var afer the '$find' call it is null

JS Function:
function getCounterFormat() {
debugger
var combo = $find("<%= DisplayCounter1.cboFormat.ClientID %>");
var formatString;
try{
formatString = combo.get_value;
( remainder removed for brevity )

When rendered the line looks like:
var combo = $find("ctl00_contentRight_DisplayCounter1_cboFormat")

in the rendered source this is the combobox id:
<div class="ComboBox_Default" id="ctl00_contentRight_DisplayCounter1_cboFormat"

the getCounterFormat() function is called on OnClientSelectedIndexChanged

Just to test I created a different function:
function setCounterFormat(obj) {
debugger
var formatString = obj.Value;
var newString = getCounterFormat();

This one does return the selecteditem value on the obj.Value call but the getCounterFormat() still returns nothing.

Can you tell me what I am doing wrong?

Helen
Telerik team
 answered on 21 Apr 2011
1 answer
187 views
In my RadGrid I have a template column in which I want a text box for the Edit Item Template, and a drop down list for the Insert Item template.  I know this seems a bit odd - but I'm just wondering if it's possible?  I've spent too much time trying to get it to work.  No matter what I do, the Edit Item template overrides the Insert Item Template.

<telerik:GridTemplateColumn
                  DataField="DocDesc"
                  FilterControlAltText="Filter column column" HeaderText="Document Name"
                  UniqueName="DocList">
                    <EditItemTemplate>
                    <asp:TextBox ID="DocDescTextBox" enabled = "false" runat="server" Text='<%# Bind("DocDesc") %>'></asp:TextBox>                      
                         
                     </EditItemTemplate>
                       
                       
                    <ItemTemplate>
                 <asp:Label ID="DocDescLabel" runat="server" Text='<%# Eval("DocDesc") %>'></asp:Label>
      
                    </ItemTemplate>
                    <InsertItemTemplate>
                        <telerik:RadComboBox ID="RadDocList" Enabled="true" runat="server"
                                  DataSourceID="sqlGetDocList"
                                  DataTextField="DocDesc"
                                  DataValueField="DocNum">
                        </telerik:RadComboBox>
                    </InsertItemTemplate>
             
              </telerik:GridTemplateColumn>
Radoslav
Telerik team
 answered on 21 Apr 2011
1 answer
83 views
Hi
I need to set a Custom Aggregation for a Column. but I do not know how to get grid items placed in each group when calculating aggregated value! in grouping I want my aggregation function only calculate value for items placed in its own current group!

How can I do this ?
Shinu
Top achievements
Rank 2
 answered on 21 Apr 2011
1 answer
107 views
I have my alert button showing, however after the OK is clicked it isn't redirecting the page.

ASPX:

 

<AlertTemplate>

 

 

<div class="windowpopup radalert">

 

 

<div class="dialogtext" style="text-align: center;">

 

{1}

 

</div>

 

 

<div>

 

 

<a onclick="$find('{0}').close(); window.location.href='home.aspx';" class="radwindowbutton"

 

 

href="javascript:void(0);">

 

 

<span class="outerspan">

 

 

<span class="innerspan" style="text-align: center;">##LOC[OK]##</span>

 

 

</span>

 

 

</a>

 

 

</div>

 

 

</div>

 

 

</AlertTemplate>

 

 

<Windows>

 

 

<telerik:RadWindow ID="wdwEmail" runat="server" EnableEmbeddedSkins="False" Skin="DMID"

 

 

Title="" Height="320px" Left="150px" Modal="true" ReloadOnShow="true" Width="300px"

 

 

ShowContentDuringLoad="false">

 

 

</telerik:RadWindow>

 

 

</Windows>

 

 

</telerik:RadWindowManager>


Code Behind:

 

 

 

protected void btnSubmit_Click(object sender, EventArgs e)

 

 

{

 

nBus.SendOrderSubmitNotification(uProfile, oProfile, pProfiles, bList);

 

 

ScriptManager.RegisterStartupScript(this, this.GetType(), "alert", "<script type='text/javascript'>Sys.Application.add_load(function(){radalert('Your Order has been saved');})</script>", false);

 

{

Georgi Tunev
Telerik team
 answered on 21 Apr 2011
3 answers
141 views
Hello Sir/Mam

I'm using 4 radtextbox which are invisible(visible=false). OnClientItemClicking of contextmenu of form i'm tring to store radwindowbounds(x,y,height,width) into radtextbox--- but it show error as  Object doesn't support this property or method

Code :-
  • Javascript Code
            function OnClientItemClicking(sender, eventArgs) {
           
                $find("<%= x.ClientID %>").SetValue(GetRadWindow().getWindowBounds().x);
                $find("<%= y.ClientID %>").SetValue(GetRadWindow().getWindowBounds().y);
                $find("<%= width.ClientID %>").SetValue(GetRadWindow().getWindowBounds().width);
                $find("<%= height.ClientID %>").SetValue(GetRadWindow().getWindowBounds().height);         
     
            }
            
  • ASP Code
 <telerik:RadTextBox ID="x" runat="server" visible="false"   />
 <telerik:RadTextBox ID="y" runat="server" visible="false"  />
 <telerik:RadTextBox ID="width" runat="server" visible="false"   />
 <telerik:RadTextBox ID="height" runat="server"  visible="trfalseue"  />

<Telerik:RadContextMenu id="SavePersonalSetting"  runat="server"  OnClientItemClicking="OnClientItemClicking">
             <Targets>
                    <Telerik:ContextMenuTagNameTarget TagName="form" />
             </Targets>
             <Items>
                 <Telerik:RadMenuItem Text="Save Personal Setting" Value="SPS" />
            </Items>
  </Telerik:RadContextMenu> 

Please help in this regard ,Any help will be greatly appreciated..............


           

Sunil
Top achievements
Rank 1
 answered on 21 Apr 2011
1 answer
65 views
Hi,
 We're currently on version 8.5.0.0 and have noticed a problem when enabling the Rad Editor for List Items feature. Specifically on a Wiki library, we can create the wiki article and save as normal. The problem we have is that any further editing of the wiki article results in the changes not being saved back to sharepoint whatsoever.

 Has this been experienced before and if so, what is the solution? This occurs on the default tools files as well as customised tools files. The editor works fine in any other area used.

Thanks,
Jason.
Stanimir
Telerik team
 answered on 21 Apr 2011
5 answers
580 views
In a typical situation where you have a "Delete" button on the toolbar and the user presses it, you would first want to prompt the user whether they really want to perform the delete. If the user declines, the deletion is canceled. If they choose to delete, code on the server-side needs to be executed to carry out the delete. The toolbar does support the ButtonClick event. Is it possible to call this method from within a javascript function (where my prompting is carried out). Until now I have used the ajaxRequest method to send commands back to the server but I find this kind of ugly. It would be nice to use the method that is associated with the toolbar because some toolbar buttons will cause this event to be executed without going through a javascript function.
Kate
Telerik team
 answered on 21 Apr 2011
2 answers
134 views
Hi I have a aspx page with a radGrid, i use edit mdoe to edit records.
when i click on a ButtobClumn of my grid i redirect user to another page "detailPage.aspx" and the page show the user detailed record.
I need to implement an EditButton in the "detailPage.aspx" to edit the current record. ? how can i do it ?

1) MainPage.aspx
     Grid -> Click on record with id 1 -> Redirect to detailPage.aspx (show detail of record 1)
2) detailPage.aspx (show detail for record 1)
     EditButton->redirect back to MainPage, with grid in edit mode for record with Id 1.

How can i implement edit button in detailPage ?
Francesco Vivaldi
Top achievements
Rank 1
 answered on 21 Apr 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?