Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
198 views
I would like to have a RadGrid inside a UserControl with Sorting and Paging Events.

I have tried to do it thusfar but cannot understand how to do it.

Would someone please detail how this is done?



Summary:
- Require a RadGrid inside a custom UserControl. The RadGrid must support sorting, paging and export to pdf whilst still inside the UserControl.



Thankyou,
Serban.
Dave
Top achievements
Rank 1
 answered on 21 Apr 2011
1 answer
134 views
I am using tables.  I have 2 colunms 1 80% width of the page and another 20% of the page.  The dockzone in the 20% of the page holds the docks and the main is for viewing the docks.  The main area is blank (All though a picture os something that say drag stuff here would be nice).  When I run the code I have the main zone is a wide skinny area.  I was hope for an 80% X 80% main docking zone.

.Main
    {
         height:80%;
        width: 80%;
    }
.Main
    {
         height:80%;
        width: 20%;
    }
  
<td class="Main">
            <telerik:RadDockZone ID="Main" Runat="server" height="100%" width="100%">
                  
            </telerik:RadDockZone>
        </td>
        <td class="Side">
            <telerik:RadDockZone ID="Side" Runat="server" Height="450px" Width="100%">
                <telerik:RadDock ID="RadDock1" Runat="server" Resizable="True" Text="MAP" 
                    Title="xy" Width="300px" Collapsed="True">
                    <ContentTemplate>
                                            </ContentTemplate>
                </telerik:RadDock>
                <telerik:RadDock ID="RadDock5" Runat="server" Resizable="True" Text="Blog" Collapsed="True"
                    Title="x" Width="300px">
                    <ContentTemplate>
                                            </ContentTemplate>
                </telerik:RadDock>
            </telerik:RadDockZone>
        </td>
Pero
Telerik team
 answered on 21 Apr 2011
1 answer
61 views
Hi,

I want to calibrate Y-axis to display time on it in the hour and min format. I dont want to display time in the equivalent decimal format.

Also same time I want to display in HH:MM in the data-table below the chart. Is it possible to calibrate the Y-axis in time format ?

Evgenia
Telerik team
 answered on 21 Apr 2011
2 answers
68 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
117 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
432 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
168 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
73 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
90 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
127 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?