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

We have been customizing the RadScheduler for our application and it is going very well so far...we're very impressed with its capabilities. We have, however, run into a problem. We are subscribing to the OnClientAppointmentResizing event and we have the need to know the resulting size of the resized appointment during the resizing process, i.e. something like this:

function OnClientAppointmentResizing(sender, eventArgs)
{
// var newStartDate = eventArgs... (?)
// var newEndDate = eventArgs...(?)
// ...do something with these values
}

Now the eventArgs parameter only seems to give access to the appointment object (which doesn't have dynamically changing start and end times) and  to the 'target slot'. The target slot seems to be somewhat useless though...using it alone I don't believe that one can derive the resulting start and end date of the appointment because one doesn't know if the appointment is being resized from above or below.

Am I missing something here? This seems like it should be a straight-forward task. Any help would be appreciated.

Cheers,
Sam



Boyan Dimitrov
Telerik team
 answered on 01 Feb 2013
3 answers
199 views
Hi,

I have a RadGrid control with multiple template columns, most of the template are defined like this

<table class="itemLinkColumnTable">
<tr>
<td class="imageColumn"<img runat="server" id="Icon" class="itemIcon" align="top" /> </td>
        <td<a id="Link" runat="server" class="titleText" href="javascript:void(0);"> </a</td>
</tr>
</table>

The template has an Image and a link next to it.  It works fine when the Grid view is displays in the browser, but when I export this to PDF / Excel or Word by setting this property and clicking on the export button on the browser

RadGrid.MasterTableView.CommandItemSettings.ShowExportToPdfButton = true;<br><span style="font-size: 11px; line-height: 1.4;">RadGrid.MasterTableView.CommandItemSettings.ShowExportToExcelButton = true;</span><br><span style="font-size: 11px; line-height: 1.4;">RadGrid.MasterTableView.CommandItemSettings.ShowExportToWordButton = true;</span>

In the exported data the Template Columns are left as blank.  When on the export settings I set the ExportOnlyData="false"
I see all kinds of garbage being exported. Please have a look at the attached screen shot.

Why is the grid not being exported the way it looks in the browser ? Please let me know how to achieve this.

Thanks
Daniel
Telerik team
 answered on 01 Feb 2013
8 answers
564 views
Hi,
i've a radmenu and this code javascript for open the radwindow:
<telerik:RadMenu ID="RadMenu1" Runat="server" EnableRoundedCorners="True"
OnClientItemClicked="MenuOpenWindow"
EnableShadows="True" Skin="Sunset" style="top: 0px; left: 0px">
.....
function MenuOpenWindow(sender, eventArgs) {
if (eventArgs.get_item().get_text() == "Nuova immagine") {
$find("<%= RadWindowLoadprofile.ClientID %>").show();
return false;
}
}

this code perfect function but when i click on item child, this item is selected instead I do not want this. How can I do?

see the image

Boyan Dimitrov
Telerik team
 answered on 01 Feb 2013
1 answer
106 views
I have a RadGrid that has a hierarchical tables. 

When I use the edit template and save or cancel, the parent expand and edit column disappear.  Any Ideas what is happening?

The Grid is set up like this
DetailTable
DetailTable --> Use one of the edit commands which kicks off an edit template
DetailTable
When I save my work from the edit template, the parent detail table looses the edit and expand buttons


Update:

It appears that when you click on anything from the CommandItemTemplate. If I move the window I can see the top level looses the edit and expand buttons
Thanks.
John Giblin
Top achievements
Rank 1
 answered on 01 Feb 2013
1 answer
46 views
Hello.

I have a problem with the table wizard. I can create and apply a custom css style for the table, but the checkboxes in the "Apply special formats to" section are always disabled (see attached screenshot). No script errors. We are using Version 2009.3, and cannot upgrade at the moment.

Thanks for help.

Steve
Rumen
Telerik team
 answered on 01 Feb 2013
1 answer
148 views
Hi everyone, how can we use PivotGrid control in MVC application?
I'm novice to RadControl and I have tried to use PivotGrid in Asp.Net application.

Can anybody provide the example how to implement it with MVC(aspx view engine).

--
Thanks
PS
Pavlina
Telerik team
 answered on 01 Feb 2013
4 answers
95 views
I have just put a new site to our production server running iis7

http://www.channelmyorders.com.

The default page is default.aspx

It has a log on button which fires an asp:panel with various login controls

The button does nothing.

However ...

if you go to http://www.channelmyorders.com/default.aspx it works fine !!

Has anyone come across this before.

regards

Andy

ToddKC
Top achievements
Rank 1
 answered on 01 Feb 2013
1 answer
52 views
Hi,
i'm using RadFilter and call FireApplyCommand() to rebind grid but grid's current page index is set to 0. How to retain the current page index?

Thanks in advance.
Pavlina
Telerik team
 answered on 01 Feb 2013
5 answers
298 views

Hi there

I have two perfectly working RadComboBoxes - one is single column, the other is a multi-column (using itemtemplate).  Both use LoadOnDemand (ItemsRequested event).

I noticed that the single column combobox highlights text as the user types, but the same does not happen for the multi-column combobox.  I've set HighlightTemplatedItems="true" but this of course only affects the highlighting of the row, not individual letters.

I checked the Q3 2010 demos on my system and they replicate the issue I am having.

But then I noticed that the demo on this site has a working version, but you have not posted the code for it on the page.  For example, type in "ca" in the product combobox and the "Ca" highlights on the two matching items.
http://demos.telerik.com/aspnet-ajax/combobox/examples/overview/defaultcs.aspx

Are you able to post the code for the example on the page above so I can see what I may be missing? Cheers :)

The code i use is as follows.

Markup

<!-- Multi-column RadComboBox -->
<!-- HighlightTemplatedItems property highlights the item row (created by itemtemplate) on mouse hover -->
<!-- OnClientKeyPressing event opens combobox drop down when text is being typed -->
<telerik:RadComboBox ID="RadComboBox1" runat="server" AutoPostBack="true" Height="170px"
    Width="580px" HighlightTemplatedItems="true" EnableLoadOnDemand="True" Filter="Contains"
    NoWrap="True" ShowMoreResultsBox="True" OnItemsRequested="RadComboBox1_ItemsRequested"
    OnSelectedIndexChanged="RadComboBox1_SelectedIndexChanged" OnClientKeyPressing="(function(sender, e) { if (!sender.get_dropDownVisible()) sender.showDropDown(); })">
    <HeaderTemplate>
        <ul>
            <li class="col1">Text Property</li>
            <li class="col2">Value Property</li>
            <li class="col3">InstNumber Attribute</li>
        </ul>
    </HeaderTemplate>
    <ItemTemplate>
        <ul>
            <li class="col1">
                <%# DataBinder.Eval(Container, "Text")%></li>
            <li class="col2">
                <%# DataBinder.Eval(Container, "Value")%></li>
            <li class="col3">
                <%# DataBinder.Eval(Container, "Attributes['InstNumber']")%></li>
        </ul>
    </ItemTemplate>
</telerik:RadComboBox>

C#

protected void RadComboBox1_ItemsRequested(object o, RadComboBoxItemsRequestedEventArgs e)
{
    int recordCount = 0;
    int itemsPerRequest = 100;  // how many items to list in combobox
    int itemOffset = e.NumberOfItems;
    int endOffset = itemOffset + itemsPerRequest;
    string searchValue = e.Text;
  
    // prevent filtering on whitespace
    if (String.IsNullOrWhiteSpace(searchValue))
        searchValue = null;
  
    // get data from database
    InstitutesData records = new InstitutesData();
    records = records.ReadRecordsComboBox(searchValue);
  
    // if there are records
    if (records != null)
    {
        // get count
        recordCount = records.Count;
  
        // add INST_NO to front of INST_NAME (custom functionality)
        for (int i = 0; i < recordCount; i++)
        {
            records[i].INST_NAME = records[i].INST_NO.ToString() + " - " + records[i].INST_NAME;
        }
    }
  
    // ensure offset isnt greater than the number of records available
    if (endOffset > recordCount)
        endOffset = recordCount;
  
    // bind data to combobox
    RadComboBox1.DataTextField = "INST_NAME";    // "123 - Number One School"
    RadComboBox1.DataValueField = "INST_NO";     // 123
    RadComboBox1.DataSource = records;
    RadComboBox1.DataBind();
  
    // populate combobox with items within offsets
    RadComboBox1.Items.Clear();
    for (int i = itemOffset; i < endOffset; i++)
    {
        RadComboBoxItem item = new RadComboBoxItem();
  
        item.Text = records[i].INST_NAME;
        item.Value = records[i].INST_NO.ToString();
        item.Attributes.Add("InstNumber", records[i].INST_NO.ToString());
  
        RadComboBox1.Items.Add(item);
  
        item.DataBind();
    }
  
    // display record count information in results box
    if (recordCount > 0)
    {
        e.Message = String.Format("Items <b>0</b>-<b>{0}</b> out of <b>{1}</b>", endOffset, recordCount);
    }
  
    else
    {
        // display 'no data in database' message
        if (String.IsNullOrEmpty(searchValue))
            e.Message = "No data";
  
        // display 'no matches in database' message
        else
            e.Message = "No matches";
    }
}
  
protected void RadComboBox1_SelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e)
{
    // do something when the selected index is changed
    string selectedValue = e.Value;
}

 

Hristo Valyavicharski
Telerik team
 answered on 01 Feb 2013
8 answers
160 views
Hi,

I have the Table Wizard dialog with CSS selector and pre-defined telerik table layouts as attached PNG.

I cannot fing this anywhere in the current documentation,
Any more information howto implement custom styles in this dropdown?

Marc
Rumen
Telerik team
 answered on 01 Feb 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?