Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
94 views
How to add a radcombobox in the template column dynamically?
aspx:
<telerik:GridTemplateColumn UniqueName="TemplateColumn" ShowFilterIcon="false" HeaderText="Country">
                   <FilterTemplate></FilterTemplate>
 </telerik:GridTemplateColumn>
Shinu
Top achievements
Rank 2
 answered on 21 Feb 2012
3 answers
99 views
Hi,

I bind my scheduler control to a completely custom object. The custom object contains a lot of additional fields in adition to the standard appointment fields.

I subscribe to the OnClientAppointmentEditing event to load my custom edit form. In here I load all the details and allow the user to edit them. I have noticed that in the standard advanced form if you edit an appointment which has a recurrence rule then it loads up a popup asking the user whether they want to edit the series or just this instance.

In my case I am also getting this prompt and once I select one of the options it loads up my custom edit form. However I am not sure on how to handle the recurrence. For example how do I know in my custom form what the user selected in response to the previous prompt? i.e. whether they selected to edit the series or selected to edit just that instance?

Then in my edit form how do I handle each of this scenario?


Plamen
Telerik team
 answered on 21 Feb 2012
1 answer
100 views
I'm working on a project where the user can select a "details view" of an item in the Radgrid.  Upon selection, a new page is displayed with the item's details plus a ListView down the left side of the page with hyperlinks to any of the other items that appeared in the previous RadGrid.  Is it possible to have the ListView autoscroll to the currently selected Item Number?  Please see the attached graphic. 
Veli
Telerik team
 answered on 21 Feb 2012
3 answers
88 views
Hi,
   This is my first time using Telerik controls. I need some input/help in the problem I face with RadGrid. I have a functionality where I have to bind empty data on a asp button control click and rebind the original data on another asp button click. Both the functionality are through same button which I have in my page. When I click the button for the first time, i'm able to bind empty data to the grid. I use below code
grdMember.DataSource = dtMembers.Clone();
grdMember.DataBind();

When I want to bind the original data, I'm not able to. To rebind the original data, I use below code
grdMember.DataSource = dtMembers;
grdMembers.DataBind();

Am I missing something here?

Ananth
Tsvetoslav
Telerik team
 answered on 21 Feb 2012
1 answer
81 views
Hi,

I am facing the following issue. When I use this approach to bind data on clientside, the datalist is rendered on pageload:

<telerik:RadListView ID="ListViewCarImages" runat="server" AllowPaging="false" PageSize="999">
  <LayoutTemplate>
    <div id="listView">
      <div id="items">
      </div>
    </div>
  </LayoutTemplate>
  <ClientSettings>
    <ClientEvents />  
    <DataBinding ItemPlaceHolderID="items">
      <ItemTemplate>
...
      </ItemTemplate>
      <SelectedItemTemplate>
...
          </SelectedItemTemplate>
          <EmptyDataTemplate>
           ...
      </EmptyDataTemplate>
          <DataService Location="~/AluWebService.asmx" DataPath="CarsImagesList" />
        </DataBinding>
  </ClientSettings>
    </telerik:RadListView>


but when I choose this approach, no data is rendered at all though the data is sent over the wire as seen using httpfox:


            <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
                <Scripts>
.....
                </Scripts>
                <Services>             
                <asp:ServiceReference Path="~/AluWebService.asmx" /> 
                </Services>
            </telerik:RadScriptManager>

and

<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
  <script type="text/javascript">
      function pageLoad() {
          listView = $find("<%= ListViewCarImages.ClientID %>");
          var xyz = AluWebService.CarsImagesList();
          listView.set_dataSource(xyz);
          listView.dataBind();
      }
</script>
</telerik:RadCodeBlock>

any idea why the second approach does not work?

Regards,
Ingo

Veli
Telerik team
 answered on 21 Feb 2012
1 answer
136 views
I am using Q2 2011 and having some issues with the images for Tabs.
On Page_Load, I am adding tabs to a RadTabStrip. The TabStrip is in an RadAjaxPanel with EnableAjax set to true.

<telerik:RadTabStrip id="rtsTabs" runat="server" skin="Office2007" AutoPostBack="true"></telerik:RadTabStrip>


For Each warehouse as OrderWarehouse In Destination.OrderWarehouses
 
Dim newTab as New RadTab(warehouse.Name, warehouse.ID)
newTab.ImageURL = "~/DesktopModules/MyModule/Images/ok.gif"
rtsTabs.Tabs.Add(newTab)
 
Next

When the page loads, the tabs look great and the images are displayed correctly. The first tab is selected by default. When I click on another tab, the callback occurs and I handle the TabClick server event. During the callback, the tabs are not modified at all. When the page comes back, the images are now broken and the paths have changed.

So I am on a DNN site, on an edit page. The URL of the page is: http://localhost/MyProject/Orders/tabid/54/ctl/EditOrder/mid/363/Default.aspx

After the page loads, the URL of the image is
http://localhost/MyProject/DesktopModules/MyModule/images/ok.gif

After the callback, the URL of the image is
http://localhost/MyProject/Orders/tabid/54/ctl/EditOrder/mid/363/DesktopModules/MyModule/images/ok.gif

Any reason for the change in the ImageURL when the tabs werent modified during the callback? Am I missing something?

Also, if I disable Ajax, the Images work correctly and the ImageURL does not change.
Dimitar Terziev
Telerik team
 answered on 21 Feb 2012
1 answer
371 views
I've been searching the documentation and the forum for a while for this, but haven't been able to find any solid information...

I have an object which contains some fields and a dictionary - I want to bind each value in the dictionary to a column in a radgrid.  I don't know what these keys/values will be until the item comes back, and they'll change depending on the source of the query.

I can create the columns dynamically without a problem, but I need a way to bind their DataMember to the dictionary...what's the best way to achiever this?

class ItemQueryData
{
    public int ItemId { get; set; }
    public String SomeProperty { get; set; }
    public Dictionary<int, Object> Values;
}

private void AddRefColumns()
{
    foreach (KeyValuePair<int, String> f in HeaderColumns)
         _grid.Columns.Add(new GridBoundColumn() { DataField = "Values[" + f.Key + "]", HeaderText = f.Value });
}
Mathew
Top achievements
Rank 1
 answered on 21 Feb 2012
1 answer
39 views
Hello,
I'm trying to change the colors (palette) of the skin "telerik".
Palette myPalette = new Palette("myPalette", ColorPaletteGenerator.Generate(20, 230).ToArray(), true);
myChart.SkinsOverrideStyles = false;
myChart.CustomPalettes.Add(myPalette);
myChart.SeriesPalette = myPalette.name;
But nothing seems to work.
Any Ideas ?
Yavor
Telerik team
 answered on 21 Feb 2012
1 answer
88 views
Hi all,

I'm a complete beginner with Telerik so I hope I explain this right.  

I have a RadMenu set up where you can mouseover a RadMenuItem and it calls an AJAX method to fetch a description, which then gets displayed in a label at the bottom of the menu.  It's something along the lines of this Telerik demo with the map, except the event is onmouseover and not onclick.  This all works great. 

However, you can imagine if someone is mousing down a menu of say 20 items, you only want the Ajax call to fire when the user rests on a particular menu item e.g. for say at least 0.25 seconds.  That way I'm not sending 20 Ajax calls off unnecessarily.

Is there a way to delay the firing of the Ajax call?
Maria Ilieva
Telerik team
 answered on 21 Feb 2012
6 answers
290 views
Hi,

I have a RadFilter control hooked up to do advanced filtering on a RadGrid. When attempting to apply a filter on a column which contains NULLS in the DB, I get the infamous "Object reference not set to the instance of an object" error. Since I cannot change my database structure, and the Nulls are required, is there anything I can do to allow my RadFilter to filter on these columns?

Best Regards,
Landon
Tsvetoslav
Telerik team
 answered on 21 Feb 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?