Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
261 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
120 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
693 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
50 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
85 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
175 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
4 answers
198 views
RadDatePicker does NOT skin correctly with CustomSkins. It appears to be the same issue I had before with RadWindowManager and RadAjaxManager. Please refer to my last topic: http://www.telerik.com/community/forums/aspnet-ajax/skin-manager/custom-skins-radwindow-fails-to-load-css.aspx

If I include the Custom CSS file manually the DatePicker skins correctly.
Cradz
Top achievements
Rank 1
 answered on 17 Nov 2011
1 answer
213 views
Hey Guys,

I have a TreeView which works nicely on FF and IE but on Chrome refuses to render the checkboxes? The list itself and the expanding nodes are all fine, but no checkboxes appear at all.
Is this a known issue or is there something else I need to do to activate them for this browser?

thanks
Simon
Top achievements
Rank 1
 answered on 17 Nov 2011
2 answers
93 views
Hello all,

Is it possible to change the date and time components in the advanced insert template based on another resource (drop down list) value?  Here is the scenario:  a clinic has a predetermined date - we need the users to be able to select the clinic from a dropdownlist in the insert template (which is working) and update the dates and times based on the clinic date (which is not working), regardless of which date they gain access to the insert template.

Any help is appreciated.

JS
Jeffrey Sanford
Top achievements
Rank 2
 answered on 17 Nov 2011
0 answers
90 views
I've implemented a custom provider to support a multiple value resource type which is rendered as the default checkbox list.
Instead, I'd like to implement an AutoComplete Tokenized Input control, not unlike what hotmail does for the address bar. Perhaps I would use something like this http://code.drewwilson.com/entry/autosuggest-jquery-plugin

I would like users to type the first few characters of the resource name, select it from the list, and then it becomes a type of button with a delete x on it so you can remove it. If I go to add another resource, I shouldn't be able to see already added resources from the list.

Has anybody implemented something like this? It would be a great help if somebody has implemented something like this already.

Thanks for all the great samples and demos you make available online here and in the demo section .

Barry Gervin
bgervin@gervin.com

Barry
Top achievements
Rank 1
 asked on 16 Nov 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
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
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?