Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
94 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
159 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
406 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
47 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
107 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
339 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
1 answer
121 views
Hello

this is the first time use slider so i need help
i ll use slider to make sliding between 2 days, in the first time i load slider, i put the rang of days that i need to be the default but after that i need to change in this range when customer need to see more days by using increasehandler and decreasehandler 

is it possible, please if it possible i need it server side (if can)

Thanks a lot
Mona
 
Slav
Telerik team
 answered on 21 Feb 2012
3 answers
263 views
Hello,

Its really very urgent.

I have a RadpanelBar placed inside <asp:panel>

 

 

<telerik:RadPanelBar ID="RadPanelBar1" Runat="server" Width="195px" BackColor="Transparent">
<Items
 <telerik:RadPanelItem Value="item1" runat="server" Text="Info" Expanded="true" Font-Bold="true"
 <ContentTemplate
 <table cellspacing="0" border="0" cellpadding="0"
 <tr
 <td
 <telerik:RadBinaryImage ID="imgUser" runat="server" AutoAdjustImageControlSize="true" ImageAlign="Middle" 
 Height="154px" Width="195px" /> 
 </td
 </tr
 </table
 </ContentTemplate
 </telerik:RadPanelItem>

I need to set Radpanel bar back color as Transparent to match the <asp:panel> color.
So i set Backcolor="Transparent" in Radpanelbar, it works for the content in radpanelitem, but radpanelitem heading is not changing to transparent color.
I tried CSS, but it doesnt works.

Kindly guide me.

Jayanthi

 

 

 

jayanthi
Top achievements
Rank 1
 answered on 21 Feb 2012
3 answers
90 views
Hi,

I have a RadGrid headercontextmenu enabled and resizing and moving of columns set to true.
When I show the grid these functions are working correct. When I switch to another page of the grid the contextmenu does not appear and I can't move of resize a column.
How can I solve this problem?


<telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="EntityDataSourceChangeLog"
    AllowPaging="True" AllowSorting="True" GridLines="None" CellSpacing="0" EnableHeaderContextMenu="True"
    AllowFilteringByColumn="True" EnableHeaderContextFilterMenu="True" AutoGenerateColumns="False"
    OnItemCommand="RadGrid1_ItemCommand" Width="100%">
    <MasterTableView DataSourceID="EntityDataSourceChangeLog" IsFilterItemExpanded="false"
        DataKeyNames="LogId" UseAllDataFields="True">
        <Columns>
            <telerik:GridBoundColumn DataField="ProjectName" HeaderText="Project" SortExpression="ProjectName"
                UniqueName="ProjectName">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="UserName" HeaderText="User" SortExpression="UserName"
                UniqueName="UserName">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="LogMessage" HeaderText="Log Message" SortExpression="LogMessage"
                UniqueName="LogMessage">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="LogTime" HeaderText="DateTime" SortExpression="LogTime"
                UniqueName="LogTime">
            </telerik:GridBoundColumn>
        </Columns>
        <PagerStyle AlwaysVisible="True"></PagerStyle>
    </MasterTableView>
    <ClientSettings AllowColumnsReorder="true" ReorderColumnsOnClient="true" ColumnsReorderMethod="Reorder">
        <Scrolling UseStaticHeaders="true" AllowScroll="false" />
        <Animation AllowColumnReorderAnimation="false" />
        <Resizing AllowColumnResize="true" AllowResizeToFit="true" EnableRealTimeResize="true"
            ResizeGridOnColumnResize="true" />
    </ClientSettings>
    <PagerStyle AlwaysVisible="true" Mode="NextPrevAndNumeric" />
    <FilterMenu EnableTheming="true">
        <CollapseAnimation Duration="200" Type="InOutQuint" />
    </FilterMenu>
    <ExportSettings ExportOnlyData="true" IgnorePaging="true" OpenInNewWindow="true"
        FileName="FlightMapChangelogExport" Excel-Format="ExcelML">
        <Excel Format="ExcelML"></Excel>
    </ExportSettings>
</telerik:RadGrid>


Paul
Paul Evers
Top achievements
Rank 2
 answered on 21 Feb 2012
1 answer
69 views
hi there this is MANESH,

the problem is that in the Radgrid we can set the visible property to FALSE for the un-wanted columns, so even after setting also its displaying so can anyone please give  me reason
Princy
Top achievements
Rank 2
 answered on 21 Feb 2012
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?