Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
160 views
I'm needing to check if there is a current active appointment for the current date and time when using recurrence.
Princy
Top achievements
Rank 2
 answered on 17 Nov 2011
1 answer
63 views
Hello,

Is it possible to customize the height and width of the ribbon bar, group or the button?  I need it to minimize the space taken by the ribbon bar.

Thanks.
Shinu
Top achievements
Rank 2
 answered on 17 Nov 2011
1 answer
93 views
Hi,
I have got two grids, where drag and drop is possible. I am using the event Row drop.

When I drag the row, I want the row drop event to be triggered only when the row is dragged outside that particular grid. Else I don't want to trigger the RowDrop event.
Jayesh Goyani
Top achievements
Rank 2
 answered on 17 Nov 2011
6 answers
139 views
Hi Telerik Team,

I'm using the "Windows7" skin as my default skin for RadGrid.
However, I want to edit the pager style of this skin. For example I want to switch the items counter from right to left, so the pagination will be on right and the items counter on left.
Meanwhile the default position is: Pagination on Left and Items counter on right.

Please do let me know how can I achieve such scenario.

Thanks,
Bilal
Jayesh Goyani
Top achievements
Rank 2
 answered on 17 Nov 2011
1 answer
322 views
I have a reset button outside of the radgrid .... how do i uncheck all checkboxes (GridClientSelectColumn) in radgrid on reset button click.. using Javascript?

thanks
Jayesh Goyani
Top achievements
Rank 2
 answered on 17 Nov 2011
3 answers
152 views
Hi,

I have RadGrid which uses a user control (Companies.ascx) as edit form. User control contains chechboxlist and its items are populated dynamically from DB. Now I have a problem with selecting the correct checkboxlist items when grid row is in edit mode. The following code selects the items in user controls DataBinding event but after that in some phase those selection are "reset".

I have tried many different approaches and the following is just one of my tests. Can you help me with this one.

private object _dataItem;  
 
public object DataItem  
{  
    get 
    {  
        return this._dataItem;  
    }  
    set 
    {  
        this._dataItem = value;  
    }  
}  
 
 
protected override void OnInit(EventArgs e)  
{  
    base.OnInit(e);  
 
    this.DataBinding += new EventHandler(Companies_DataBinding);  
}  
 
 
 
 
protected void Companies_DataBinding(object sender, System.EventArgs e)  
{  
    txtName.Text = DataBinder.Eval(DataItem, "CompanyName").ToString();  
      
    using (DBService dms = new DBService())  
    {  
        cblProducts.DataSource = dms.GetProducts();  
        cblProducts.DataBind();  
    }  
 
 
    // get company's products -> string where products are separated with comma  
    object objProducts = DataBinder.Eval(DataItem, "Products");  
 
    if (objProducts != DBNull.Value)  
    {  
        foreach (string prod in objProducts.ToString().Split(','))  
        {  
            ListItem li = cblProducts.Items.FindByText(prod);  
 
            if (li != null)  
                li.Selected = true;  
        }  
    }  
}   


Regards,
Pete
Thontesh
Top achievements
Rank 1
 answered on 17 Nov 2011
8 answers
779 views
Hi,

My data source returns DateTime.MinValue as null when no date is set by the user. This will be shown as 0001-01-01 00:00:00 in the RadGrid.

Question 1: Is it possible to change the behavior so that DateTime.MinValue will result in EmptyDataText showing?

Question 2: When changing into edit mode... How can I avoid getting exceptions when SelectedDate is DateTime.MinValue?

Best regards,
Pether Wiklander
Shinu
Top achievements
Rank 2
 answered on 17 Nov 2011
1 answer
96 views
im trying to get the value of a combobox when the user types in the value rather than choosing it.

initially the combobox is empty, i type a value but both selectedvalue and text properties are empty in code behind when i want to store the value.

i would have expected the latter to be the way to get at this.

how do i get the typed in values when using the combobox this way?
Princy
Top achievements
Rank 2
 answered on 17 Nov 2011
3 answers
133 views
As the enclosed screenshot shows, I've implemented the RadListBox in order to show listbox items with more than one line of text.  I'm making good progress with it but am stuck on one thing.  Simply put, how do I effect styling on items that are not being hovered or clicked on?

To accomplish what I've done so far I implemented a custom 'ItemTemplate" as follows:

          <telerik:RadListBox ID="radListBoxStopes" runat="server" Width="100%" Height="100%" OnItemCreated="radListBoxStopes_ItemCreated"><br>            <ItemTemplate><br>              <asp:Panel runat="server" style="padding-bottom:0px; border: solid 1px black"><br>                <asp:Label ID="labelStope" runat="server" Text='<%# Eval("Description") %>' CssClass="muckListPrimary" /><br /><br>                <asp:Label ID="labelUnits" runat="server" Text='<%# Eval("Units", "{0:0 units}") %>' CssClass="muckListSecondary" /><br>                <asp:HiddenField ID="hidFieldMaterial" runat="server" Value='<%# Eval("Material").ToString() %>' /><br>              </asp:Panel><br>            </ItemTemplate><br>          </telerik:RadListBox>

The problem with this is that the border around each item actually shows around the Panel inside the item, not the item itself.

In my CSS code I added this code:
<br>.rlbActive <br>{<br>  background: #b3d4f5 !important;<br>  border: 1px solid blue !important;<br>}<br><br>.rlbHovered <br>{<br>  background: #ffff80 !important;<br>  border: 1px solid red !important;<br>}

But, so far, I have not been able to figure out how to identify the inactive items.

Any ideas?

Robert
Robert
Top achievements
Rank 1
 answered on 17 Nov 2011
5 answers
233 views
Hi,

I have a big problem: my RadChart with scroll and zoom have a rendering problem with FireFox and Chrome but run with IE.
This is my scenario:

<asp:UpdatePanel ID="m_upd_MarkerPricesChart" runat="server" UpdateMode="Conditional">
   <ContentTemplate>
      <telerik:RadChart ID="m_rcv_MarketPrices" runat="server" DataSourceID="m_Chart_MarketPricesDataSource"
         ChartTitle-TextBlock-Text="Power Market Prices [EUR/MWh]" SkinID="Prices" OnItemDataBound="m_rcv_MarketPrices_ItemDataBound"
         Width="1140px" Height="380px" DefaultType="Line" IntelligentLabelsEnabled="true"
         Skin="DeepGray" AutoLayout="true">
         <Legend Visible="true">
            <Appearance GroupNameFormat="#SeriesName" />
         </Legend>
         <PlotArea>
            <YAxis MinValue="50" MaxValue="150" Step="10" AutoScale="false" />
            <XAxis AutoScale="false" />
         </PlotArea>
         <ClientSettings ScrollMode="Both" />
         <Series>
            <telerik:ChartSeries DataYColumn="CH - Power Market Price [EUR/MWh]" Name="CH - Power Market Price [EUR/MWh]">
               <Appearance LabelAppearance-Visible="false">
                  <PointMark Visible="True" Dimensions-AutoSize="false" Dimensions-Height="10px" Dimensions-Width="10px">
                     <FillStyle MainColor="186, 207, 141" FillType="solid">
                     </FillStyle>
                  </PointMark>
                  <LineSeriesAppearance Width="3" />
               </Appearance>
            </telerik:ChartSeries>
            <telerik:ChartSeries DataYColumn="IT - Power Market Price [EUR/MWh]" Name="IT - Power Market Price [EUR/MWh]">
               <Appearance LabelAppearance-Visible="false">
                  <PointMark Visible="True" Dimensions-AutoSize="false" Dimensions-Height="10px" Dimensions-Width="10px">
                     <FillStyle MainColor="186, 207, 141" FillType="solid">
                     </FillStyle>
                  </PointMark>
                  <LineSeriesAppearance Width="3" />
               </Appearance>
            </telerik:ChartSeries>
            <telerik:ChartSeries DataYColumn="DE - Power Market Price [EUR/MWh]" Name="DE - Power Market Price [EUR/MWh]">
               <Appearance LabelAppearance-Visible="false">
                  <PointMark Visible="True" Dimensions-AutoSize="false" Dimensions-Height="10px" Dimensions-Width="10px">
                     <FillStyle MainColor="186, 207, 141" FillType="solid">
                     </FillStyle>
                  </PointMark>
                  <LineSeriesAppearance Width="3" />
               </Appearance>
            </telerik:ChartSeries>
            <telerik:ChartSeries DataYColumn="RO - Power Market Price [EUR/MWh]" Name="RO - Power Market Price [EUR/MWh]">
               <Appearance LabelAppearance-Visible="false">
                  <PointMark Visible="True" Dimensions-AutoSize="false" Dimensions-Height="10px" Dimensions-Width="10px">
                     <FillStyle MainColor="186, 207, 141" FillType="solid">
                     </FillStyle>
                  </PointMark>
                  <LineSeriesAppearance Width="3" />
               </Appearance>
            </telerik:ChartSeries>
         </Series>
      </telerik:RadChart>
      <telerik:RadToolTipManager ID="RadToolTipManager1" runat="server" SkinID="Graph"
         ToolTipZoneID="m_rcv_MarketPrices" />
   </ContentTemplate>
</asp:UpdatePanel>
<asp:ObjectDataSource ID="m_Chart_MarketPricesDataSource" runat="server" SelectMethod="ReadAllForGraph"
   TypeName="Zelando.SEM.BLL.MarketPricesManager" OldValuesParameterFormatString="original_{0}">
   <SelectParameters>
      <asp:ControlParameter ControlID="m_Update_hdn_StrategicPeriodID" PropertyName="Value"
         Type="Int32" Name="StrategicPeriodID" DefaultValue="-1" ConvertEmptyStringToNull="false" />
      <asp:ControlParameter ControlID="m_Update_hdn_ShowNumItem" PropertyName="Value" Type="Int32"
         Name="ShowNumItem" DefaultValue="-1" ConvertEmptyStringToNull="false" />
   </SelectParameters>
</asp:ObjectDataSource>


What can I do?


Thanks in advance,

Francesco Balatti
zelando.com
Ramandeep
Top achievements
Rank 1
 answered on 17 Nov 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?